How to align a sequence of texts to the right?
I have this sequence of texts:
I3=Sequence(Text("\begin{array}{r}" + (5i) + "\end{array}", l4(i + 1), true, true), i, 0, 25)
which refers to this sequence of points:
I4=Sequence((-2.1, k / 25 * 15 + 0.5), k, 0, 25, 5)
but it's actually intended to be the labels of these points:
I1=Sequence((0, k / 25 * 15), k, 0, 25, 5)
You can see that first 2 values have only one digit, and the others have 2 digits. This is a problem concerning text position. I have selected the I4 positions considering the 2 digit numbers, and so the others are not properly written.
I want the 1 digit numbers to be closer to points, so that they look like labels for this points (I am actually builiding an y-axis drawing, to be exported and put into a video - regular GeoGebra y axis is too small to be legible in the video).
What I need is to align the sequence to the right, not each point separatedly. Maybe a TableText can do that - I'm not familiar with its Syntax yet. I have read this article:
https://wiki.geogebra.org/e...
but I get confused about how to keep the relationship text-points AND add the TableText syntax at the same time.
OK
Use this version (for explor to understand) with Sequence() instead of Zip()
this?
sequence02=one line text per point
sequence03=multiline text per point
--------------------------------------
the text is horizontal shift leftwards from the anchor point
the multiline-text is right-justified in itself ( independently of the location of the anchor point)
It makes no sense to adjust single-line text in itself.
------------------------------------------------------
used commands:
Text()
TableText()
Zip()
Corner()
para alinear un texto debe referirse a varias lineas una bajo otra pues en GG no tiene sentido alinear una sola linea de texto
esto se hace igual que haciamos con una matriz array en Latex o un tabletext() pero usando la letra r en lugar de la letra c segun hablamos en el post de centrar
otro asunto es el posicionar el texto respecto a un punto, esto se hace con los dos ultimos parametros del comando texto() que debe valer -1,0,1 segun se refiera a que el texto se posiciona a izq centro o der del punto, tal como estuvimos usandolo en dicho post
Comments have been locked on this page!