Wyrównanie tekstu

anka1 shared this question 3 years ago
Answered

Czy jest jakaś opcja pozwalająca na wyrównanie tekstu do góry?

Chodzi o zapis liczb: 15,3 i 21000,2 na tej samej wysokości (w tym samym wierszu)

Best Answer
photo

Hi, try something like :


  1. lista7 = Sequence("\phantom{8}", k, 1, Max(0, Length(lista6b) - Length(lista6a)) + 1)
  2. lista8 = Sequence("\phantom{8}", k, 1, Max(0, Length(lista6a) - Length(lista6b)) + 1)
  3. tekst_{ra1} = TableText({{TableText(lista6a, "|01000r"), TableText({lista7}, "v")}}, "v")
  4. tekst_{rb1} = TableText({{TableText(lista6b, "|01000rl"), TableText({lista8}, "v")}}, "v")

with LaTeX, \phantom{abc} is (for the vertical as horizontal alignment and place) as we write abc, but it's not displayed

Comments (4)

photo
1

Maybe some use of \phantom{} to force the alignment?

photo
1

Albo źle wpisuję, albo nie działa. :(

photo
2

Hi, try something like :


  1. lista7 = Sequence("\phantom{8}", k, 1, Max(0, Length(lista6b) - Length(lista6a)) + 1)
  2. lista8 = Sequence("\phantom{8}", k, 1, Max(0, Length(lista6a) - Length(lista6b)) + 1)
  3. tekst_{ra1} = TableText({{TableText(lista6a, "|01000r"), TableText({lista7}, "v")}}, "v")
  4. tekst_{rb1} = TableText({{TableText(lista6b, "|01000rl"), TableText({lista8}, "v")}}, "v")

with LaTeX, \phantom{abc} is (for the vertical as horizontal alignment and place) as we write abc, but it's not displayed

photo
1

Bardzo dziękuję.

© 2021 International GeoGebra Institute