Boxes and Color (In both modes)

1. Text and Math in Color

The colors supported directly by JLaTeXMath can be found in The 68 standard colors known to dvips  You can use the command: \textcolor{color}{...} Example 1: \text{\textcolor{WildStrawberry}{Geo}\textcolor{blue}{G}\textcolor{red}{ebra}}\,\textcolor{green}{\oldstylenums{4.2} 1.1 Adding Colors If you need to create new color, you can use the command: \definecolor{mycolour}{rgb}{a,b,c} the numbers a, b and c must be between 0 and 1, can be a slider, for example: Example 2: \definecolor{a}{rgb}{0.63,0.39,0.17} \definecolor{b}{rgb}{0.63,0.17,0.39} \definecolor{c}{rgb}{0.39,0.63,0.17} \definecolor{d}{rgb}{0.39,0.17,0.63} \definecolor{e}{rgb}{0.17,0.63,0.39} \definecolor{f}{rgb}{0.17,0.39,0.63} \text{\textcolor{a}C\textcolor{b}O\textcolor{c}L\textcolor{d}O\textcolor{e}U\textcolor{f}R}

2. Frame Boxes

For simple frame boxes (no colors) use: \boxed{2012\text{ is now!} or \fbox{2012\text{ is now!}



3. Color Boxes

A. For a color box, same color in border and background, use: \colorbox{red}{2012\text{ is now!}

B. For a color box, diferent color in border and background, use: \fcolorbox{blue}{red}{2012\text{ is now!}

4. Rotate Boxes

If you need to rotate a box (or whatever) use: \rotatebox{angle}{...} Example: \rotatebox{45}{\fcolorbox{blue}{red}{2012\text{ is now!}}

5. Reflect Boxes

If you need to reflect a box (or whatever) use: \reflectbox{...} Example: \reflectbox{\fcolorbox{blue}{red}{2012\text{ is now!}}

6. Phantom Boxes

Sometimes it is necessary to have these phantom boxes, for systems, control the height under a root, alignment on a formula, etc. It has these three commands:
\phantom{XXX}space as wide and high as three X’s
\hphantom{XXX}space as wide as three X’s; height 0
\vphantom{X}space of width 0, height = height of X
Example:  \sqrt{b}+\sqrt{\vphantom{b}a} I think that's all for now, in the future (if I have time) will write a little about tables and matrices. JLaTeXMath supports many mathematical environments (whitout *) I recommend reading the Short Math Guide for LATEX. If other GeoGebra users wish to contribute with examples (math environments) would be great. Just post your contribution in the GeoGebra Reddit Forum.