From GeoGebra Manual
Jump to: navigation, search

In GeoGebra you can write formulas as well. To do so, check the box LaTeX formula in the dialog window of the Mode text.svg Text Tool and enter your formula in LaTeX syntax.

Note: In order to create text that contains a LaTeX formula as well as text you may enter the text inside \text{}, while LaTex Formula is activated.
Example: \text{The length of the diagonal is } \sqrt{ 2 }
Note: You can also use the FormulaText Command to enter your formula within quotes.
Example: FormulaText["\text{The length of the diagonal is } \sqrt{ 2 }"]

Note: You can simply obtain a LaTeX text containing the value of an object listed in the Menu view algebra.svg Algebra View by dragging that object in the Menu view algebra.svg Algebra View and dropping it in a selected location of the Menu view graphics.svg Graphics View .

You can find the syntax for common formula symbols from the drop-down menu next to the LaTeX checkbox (GeoGebra Desktop Version) or in the Advanced menu below the input field (GeoGebra Web and Tablet Apps Version). This inserts the corresponding LaTeX code into the text field and places the cursor in between a set of curly brackets. The Symbols drop-down menu contains a list of common math symbols, Greek letters and operators. If you would like to create dynamic text within the formula, you need to select the relating objects from the GeoGebra 48.png Objects drop-down list, causing GeoGebra to insert their names 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 \mathrm{\mathsf{ a \cdot b }}
\frac{a}{b} \mathrm{\mathsf{ \frac{a}{b} }}
\sqrt{x} \mathrm{\mathsf{ \sqrt{x} }}
\sqrt[n]{x} \mathrm{\mathsf{ \sqrt[n]{x} }}
\vec{v} \mathrm{\mathsf{ \vec{v} }}
\overline{AB} \mathrm{\mathsf{ \overline{AB} }}
x^{2} \mathrm{\mathsf{ x^{2} }}
a_{1} \mathrm{\mathsf{ a_{1} }}
\sin\alpha + \cos\beta \mathrm{\mathsf{ \sin\alpha + \cos\beta }}
\int_{a}^{b} x dx \mathrm{\mathsf{ \int_{a}^{b} x dx }}
\sum_{i=1}^{n} i^2 \mathrm{\mathsf{ \sum_{i=1}^{n} i^2 }}

It is also possible to enter nicely formatted chemical formulas, using syntaxes \ce, \mathchoice, \mskip, \lower, \raise, \mkern.

Please refer to this document for further information.

See also


Note: While the most common LaTeX commands used in the context of mathematics and text styling are working in GeoGebra, GeoGebra itself just supports a subset of LaTeX. More advanced and powerful features are therefore not working, e.g. you can't include additional packages.
© 2019 International GeoGebra Institute