Dynamic Text and LaTeX
Static and dynamic text
To insert text, choose the Insert Text tool , then
click anywhere in the graphics view. If you want to show text displaying the value
of an object, click on the menu
Objects and pick an object. This object is shown inside a small box in the
edit area. When the value of the chosen object is changed, by dragging points, the displayed value in the text box is also
changed, the displayed text is dynamic.
LaTeX in GeoGebra
The most well-known way to write mathematics is to use LaTeX and TeX-syntax for formulas. LaTeX is used by GeoGebra and you don't have to know TeX-syntax in order to use it. Check the LaTeX-box and choose the formula you want to display, then exchange the default characters to the character you want in your text-box.
If you do know TeX-syntax however, you can just write it between the $-signs:
Regular text and LaTeX
When writing a mathematical formula i LaTeX, characters are written in italics and spaces are ignored. For that reason, checking the LaTeX-box may not give you the result you want.
When you want to mix regular text and formulas, the easiest way to do it is to enclose the text you want to format within $-signs.
Dynamic text and LaTeX
In order to demonstrate numerical equalities, you must sometimes write dynamic text inside formulas. In the
applet demonstrating Pythagoras' theorem on the previous page, dynamic numerical values are written inside a
LaTeX-formula. Thanks to the
Objects menu, it is easy to use dynamic text inside formulas.
Use the LaTeX-menu to make the formula,
then change the default characters to objects using the
Expressions of objects
On the previous page, the value of the sum of the squares of the smaller sides was stored in a variable v2. You don't have to store values in variables if you are showing them using dynamic text, the expressions can be entered directly in the text edit window, enter them inside a box containing object values, as in the picture below.
by Malin Christersson under a Creative Commons Attribution-Noncommercial-Share Alike 2.5 Sweden License