Inserting LaTeX formulas

Using the [img]https://www.geogebra.org/wiki/uploads/thumb/1/14/Mode_text.svg/16px-Mode_text.svg.png[/img] [i]Text[/i] tool, you can insert mathematical formulas into the [img]https://wiki.geogebra.org/uploads/thumb/c/c8/Menu_view_graphics.svg/16px-Menu_view_graphics.svg.png[/img] [i]Graphics View[/i] by using the [i]LaTeX formula[/i] option in the [i]Text [/i]dialog.
How to insert a static LaTeX formula
[table][tr][td]1.[/td][td][icon]https://www.geogebra.org/images/ggb/toolbar/mode_text.png[/icon][/td][td]Select the [i]Text [/i]tool and click in the [img]https://wiki.geogebra.org/uploads/thumb/c/c8/Menu_view_graphics.svg/16px-Menu_view_graphics.svg.png[/img] [i]Graphics View[/i] next to the text [i]Fraction[/i].[/td][/tr][tr][td]2.[/td][td][br][/td][td]In the appearing [i]Text[/i] dialog select [i]Advanced[/i].[i] [/i][/td][/tr][tr][td]3.[/td][td][size=85][size=100][/size][size=100][code]\frac{a}[br][/code][/size][/size] {b}[/td][td]Select tab [i]LaTeX formula[/i] at the bottom of the [i]Text[/i] dialog and choose the fraction [math]\frac{a}{b}[/math] from the list of mathematical expressions.[br][/td][/tr][tr][td][br][/td][td][br][/td][td][b]Hint:[/b] [i]GeoGebra [/i]automatically enters the necessary syntax [code]\frac{a}{b}[/code] into the text box above.[/td][/tr][tr][td]4.[/td][td]LaTeX formula[/td][td]Make sure that the button [i]LaTeX formula[/i] at the top of the [i]Text [/i]dialog window is activated, before you click [i]OK[/i].[/td][/tr][tr][td][/td][td][icon]https://www.geogebra.org/wiki/uploads/thumb/3/30/Menu-options.svg/32px-Menu-options.svg.png[/icon][/td][td][b]Note:[/b] You can edit the fomula in the text's [i]Settings[/i] on tab [i]Text[/i].[/td][/tr][tr][td]5.[/td][td][icon]https://www.geogebra.org/wiki/uploads/thumb/9/92/Stylingbar_object_unfixed.svg/32px-Stylingbar_object_unfixed.svg.png[/icon][/td][td]Move the text to the desired position and fix it using the [img]https://www.geogebra.org/wiki/uploads/thumb/d/db/Stylingbar_icon_graphics.svg/16px-Stylingbar_icon_graphics.svg.png[/img] [i]Style Bar[/i].[br][/td][/tr][/table]
Try it yourself...
How to insert a dynamic LaTeX formula
[table][tr][td]1.[/td][td][icon]https://www.geogebra.org/images/ggb/toolbar/mode_text.png[/icon][/td][td]Select the [i]Text[/i] tool and click in the [img]https://wiki.geogebra.org/uploads/thumb/c/c8/Menu_view_graphics.svg/16px-Menu_view_graphics.svg.png[/img] [i]Graphics View[/i] next to the text [i]Fraction[/i].[/td][/tr][tr][td]2.[/td][td][code]=[br][/code][/td][td]In the appearing [i]Text[/i] dialog enter [code]=[/code] before you select [i]Advanced[/i].[i] [/i][/td][/tr][tr][td]3.[/td][td]\[code]frac{a}{b}[/code][/td][td]Select tab [i]LaTeX formula[/i] at the bottom of the [i]Text[/i] dialog and choose the fraction [math]\frac{a}{b}[/math] from the list of mathematical expressions.[br][/td][/tr][tr][td]4.[/td][td][img]https://www.geogebra.org/wiki/uploads/thumb/4/4e/Geogebra-logo-elipse.svg/32px-Geogebra-logo-elipse.svg.png[/img][/td][td]In the first set of curly braces, delete [i]a[/i]. Click on tab [img]https://wiki.geogebra.org/uploads/thumb/4/4e/Geogebra-logo-elipse.svg/16px-Geogebra-logo-elipse.svg.png[/img] [i]Objects[/i] and select [i]d[/i] from the list of available objects.[/td][/tr][tr][td]5.[/td][td][img]https://www.geogebra.org/wiki/uploads/thumb/4/4e/Geogebra-logo-elipse.svg/32px-Geogebra-logo-elipse.svg.png[/img][/td][td]In the second set of curly braces, delete [i]b[/i]. Click on tab [img]https://wiki.geogebra.org/uploads/thumb/4/4e/Geogebra-logo-elipse.svg/16px-Geogebra-logo-elipse.svg.png[/img] [i]Objects[/i] and select [i]n[/i] from the list of available objects.[/td][/tr][tr][td]6.[/td][td]LaTeX[br]formula[/td][td]Make sure that the button [i]LaTeX formula[/i] at the top of the [i]Text [/i]dialog is activated, before you click [i]OK[/i].[/td][/tr][tr][td]7.[/td][td][icon]https://www.geogebra.org/wiki/uploads/thumb/9/92/Stylingbar_object_unfixed.svg/32px-Stylingbar_object_unfixed.svg.png[/icon][/td][td]Move the text to the desired position and fix it using the [img]https://www.geogebra.org/wiki/uploads/thumb/d/db/Stylingbar_icon_graphics.svg/16px-Stylingbar_icon_graphics.svg.png[/img] [i]Style Bar[/i].[/td][/tr][tr][td]8.[/td][td][icon]https://www.geogebra.org/images/ggb/toolbar/mode_move.png[/icon][/td][td]Select [i]New problem[/i] to generate new numbers for your dynamic fraction.[br][/td][/tr][/table]
Try it yourself...
How to combine the static and dynamic LaTeX formulas
Combine both, the static and the dynamic fraction, in one text.[table][tr][td]1.[/td][td][icon]/images/ggb/toolbar/mode_text.png[/icon][/td][td]Select the [i]Text[/i] tool and click in the [img]https://wiki.geogebra.org/uploads/thumb/c/c8/Menu_view_graphics.svg/16px-Menu_view_graphics.svg.png[/img] [i]Graphics View[/i]. [/td][/tr][tr][td]2.[/td][td][math]\frac{a}{b}=[/math][/td][td]Insert a LaTeX fraction [math]\frac{a}{b}[/math] into the text and enter an equal sign [code]=[/code] next to it.[br][/td][/tr][tr][td]3.[/td][td][img]https://www.geogebra.org/wiki/uploads/thumb/4/4e/Geogebra-logo-elipse.svg/32px-Geogebra-logo-elipse.svg.png[/img][/td][td]Insert another fraction [math]\frac{d}{n}[/math] and replace the variables for the denominator and numerator with objects [i]d[/i] and [i]n[/i] from tab [img]https://wiki.geogebra.org/uploads/thumb/4/4e/Geogebra-logo-elipse.svg/16px-Geogebra-logo-elipse.svg.png[/img] [i]Objects[/i].[/td][/tr][tr][td]4.[/td][td]LaTeX [br]formula[/td][td]Make sure that the button [i]LaTeX formula[/i] at the top of the [i]Text [/i]dialog is activated, before you click [i]OK[/i].[/td][/tr][tr][td]5.[/td][td][icon]https://www.geogebra.org/wiki/uploads/thumb/9/92/Stylingbar_object_unfixed.svg/32px-Stylingbar_object_unfixed.svg.png[/icon][/td][td]Move the text to the desired position and fix it using the [img]https://www.geogebra.org/wiki/uploads/thumb/d/db/Stylingbar_icon_graphics.svg/16px-Stylingbar_icon_graphics.svg.png[/img] [i]Style Bar[/i].[br][br][/td][/tr][/table]

Information: Inserting LaTeX formulas