how can we easily align text with respect to referencing point?

卫博 shared this question 2 years ago
Answered

Assuming segment(A,B) is divided by 5, we want to add some text indication the length between below the A, C,D,E,F,B points with its value.

How can i easily align the text vertically and horizontally?

Or if I want the text be placed in middle point of A,C; CD; DE; EF; FB how to align them good without manually adjustment?

You can see here following it is not good result since manually is always not a good idea for such kind of job.

https://www.geogebra.org/m/R72MgRDk

Comments (8)

photo
1

You need to specify the position of the text in the Position tab of the text Properties window.

Right click on the text, select Settings, then the Position tab, and type the name of the point to which you want to attach the text, or select it from the dropdown list. You can also use commands.

So, if you want a text in the Midpoint of AC, type


Midpoint(A,C)


Manual adjustment is sometimes needed if your construction is dynamic and particularly complex.

photo
1

This is your file, where I've positioned the texts as described above.

Automatic positioning places the text above the point itself. Drag it in the position you want and save.

Now try to drag points A and B in your construction.

You'll see that the related texts are placed accordingly.

photo
2

Right click on the text in this example, and open the Position tab in the Properties window of the text.

As you can see I've typed the command Midpoint(A,B) in the Position box.

Drag A and B in the construction to see how the text stays at the midpoint of A,B.

photo
1

thanks for your proposal and demo. Can we adjust vertically(Not on the point, but below the point, and not manually adjustment but give a command?) position also with command? More point is: Can we take into account the text length also in positioning the text? Because if the text is a little longer, the position not looks good.

I understand in some complex cases, we must manually adjust

photo
photo
1

thanks, the link provides perfect solution, but seems over-skill.

photo
1

but seems over-skill.


then see this

Files: foro.ggb
photo
1

I can see all points are at the same distance from previous point. Maybe you should learn how to do a Sequence of points and then a Sequence of texts. It will save you a lot of time.https://wiki.geogebra.org/e...

photo
© 2021 International GeoGebra Institute