Text Tool

From GeoGebra Manual
Revision as of 14:34, 27 October 2010 by Zbynek (talk | contribs) (moved to Manual)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


With this tool you can create static and dynamic text or LaTeX formulas in the Graphics View (also see section Text Commands).

At first, you need to specify the location of the text in one of the following ways:

  • Click in the Graphics View to create a new text at this location.
  • Click on a point to create a new text that is attached to this point.

Then, a dialog appears where you may enter your text.

Note: You may specify the position of a text as absolute on screen or relative to the coordinate system on tab Basic of the Properties Dialog.
Static text
does not depend on any mathematical objects and is usually not affected by changes of the construction.
Dynamic text
contains values of objects that automatically adapt to changes made to these objects.
Mixed text
is a combination of static and dynamic text. In order to create a mixed text you may enter the static part of the text using the keyboard (e. g., Point A =). Then, click on the object whose value you want to display in the dynamic part of the text.
Note: GeoGebra automatically adds the syntax ("Point A = " + A ) necessary to create your mixed text: quotation marks around the static part of the text and a plus (+) symbol to connect the different parts of the text.
Input Description
This is static text Static text
A Dynamic text (if point A exists)
"Point A = " + A Two-part mixed text using the value of point A
"a = " + a + "cm" Three-part mixed text using the value of number a
Note: If an object with the name xx already exists and you want to create a static text using the object’s name, you need to enter it with quotation marks ("xx"). Otherwise, GeoGebra will automatically create a dynamic text that gives you the value of object xx instead of its name. However, you can type any text that doesn’t match any existing object’s name without the quotation marks.
Note: Within a mixed text, the static part needs to be in between a pair of quotation marks. Different parts of a text (e. g., static and dynamic parts) need to be connected using plus (+) symbols. LaTeX Formulas

In GeoGebra you can write formulas as well. To do so, check the box LaTeX formula in the dialog window of the mode_text_16 Insert Text tool and enter your formula in LaTeX syntax.

Note: In order to create text that contains a LaTeX formula as well as static text you may enter the static part of the text and then add the LaTeX formula in between a set of dollar symbols ($).

Example: The length of the diagonal is $\sqrt{ 2 }$.


You can select the syntax for common formula symbols from the drop-down menu next to the LaTeX checkbox. This inserts the corresponding LaTeX code into the text field and places the cursor in between a set of curly brackets. If you would like to create dynamic text within the formula, you need to click on an object causing GeoGebra to insert its name as well as the syntax for mixed text.

Some important LaTeX commands are explained in following table. Please have a look at any LaTeX documentation for further information.

LaTeX input Result
a \cdot b a \cdot b
\frac{a}{b} \frac{a}{b}
\sqrt{x} \sqrt{x}
\sqrt[n]{x} \sqrt[n]{x}
\vec{v} \vec{v}
\overline{AB} \overline{AB}
x^{2} x^{2}
a_{1} a_{1}
\sin\alpha + \cos\beta \sin\alpha + \cos\beta
\int_{a}^{b} x dx \int_{a}^{b} x dx
\sum_{i=1}^{n} i^2 \sum_{i=1}^{n} i^2

Comments

© 2024 International GeoGebra Institute