Introduction
GeoGebra uses [i]JLaTeXMath[/i] (a powerful ally) to show mathematical formulas (text and symbols) using LaTeX. The first thing to remember is that LaTeX works in two modes [b]text mode[/b] and [b]math mode[/b]. [br][br]Writing text must be in [b]text mode[/b] and writing mathematics in [b]math mode[/b]. When checking the box "LaTeX formula" the text tool enters in [b]math mode [/b](font in italic).[br][left][img]https://www.geogebra.org/resource/rcsqatrh/6IH837utW98HGicw/material-rcsqatrh.png[/img][/left][br]If we enter text (roman font) must switch to [b]text mode[/b] by typing:[br][br][code]\text{text text text}[br][/code][br]or[br] [br][code]\mbox{text text text}[br][br][/code][left][img]https://www.geogebra.org/resource/j46nyxtc/Noz6VrJKKeiTDrqR/material-j46nyxtc.png[/img][/left]
Remark
This is an attempt to keep alive this post [url=https://web.archive.org/web/20240615043817/http://wiki.geogebra.org/en/Comments:LaTeX-tips_font_size_color_box_and_math#LATEX_environment]Comments:LaTeX-tips font size color box and math[/url], from the old GeoGebra Wiki, available now only in the WayBack Machine. I still find it useful for reference when I am typing LaTeX in GeoGebra. [br][br]I also fixed a few typos, updated some links and images, and included an extra section with tools made by the community. I hope you find it useful. Let me know: [url=https://www.patreon.com/jcponce]Patreon[/url].
LaTeX en GeoGebra
LaTeX también en rótulos
Se puede utilizar LaTeX en los rótulos (por ejemplo de los botones) o dentro de las listas desplegables.[br]Tan solo hay que poner el comando entre símbolos de dólar que es lo que se ha hecho en el botón "Fórmulas [math]\textcolor{brown}{\sqrt{x},\frac{a}{b}}[/math]" , cuyo rótulo es (dólar)\text{Fórmulas \textcolor{brown}{\sqrt{x},\frac{a}{b}}(dólar)
Para más información, visitar la [url=https://wiki.geogebra.org/es/Sobre_LaTeX_-medidas_de_fuentes_-_cajas_de_color_y_matem%C3%A1tica_-]wiki de GeoGebra[/url] sobre LaTeX, o la recopilación de ejemplos [url=https://www.geogebra.org/m/RC7Pnnk5]https://www.geogebra.org/m/RC7Pnnk5[/url], de [url=https://www.geogebra.org/u/michael+borcherds]Michael Borcherds[/url].[br][br]Más nombres de colores en [url=https://en.wikibooks.org/wiki/LaTeX/Colors#The_68_standard_colors_known_to_dvips]este enlace (wikibooks)[/url]. Para usar los colores predefinidos LaTeX, podría hacerse así: \textcolor{ProcessBlue}{Hola}[br][br]En este [url=https://oeis.org/wiki/List_of_LaTeX_mathematical_symbols]enlace de oeis.org[/url] hay una lista de los principales símbolos matemáticos en LaTeX.[br]