How to Enter Formulas in the Open Author Editor
Overview
Open Author Editor gives an opportunity to write beautiful equations and symbols easily in your document.
This posting contains several examples of how to enter formulas with TeX/LaTeX commands in the Open Author Editor.
Mathematics in TeX
How to enter formulas?
Using 'Mathematics in TeX' , hit the icon in the toolbar and type a formula using TeX syntax, for example for the quadratic formula we type
x= \dfrac{-b \pm \sqrt{b^2-4ac}}{2a},
and click OK :
\(x = {-b \pm \sqrt{b^2-4ac} \over 2a}\)
Display mode and Inline mode
The same quadratic formula can be entered in between dollar characters
$$ \$\$ ~your ~ formula~\$\$ $$
or like this
$$ \backslash [ ~your ~formula ~\backslash] $$
or like this
$$ \backslash ( ~your ~formula ~\backslash) $$
The first two formulas are in the display mode and are centered; they can be pulled to the left using \hspace{50 in}.
The third formula is in the inline mode and left-aligned.
For example, this
$$ \backslash(x= \backslash dfrac \{-b \backslash pm \backslash sqrt \{b^2-4ac\}\}\{2a\} \backslash)$$
gives us the result very similar to 'Mathematics in TeX'
\( x= \dfrac{-b \pm \sqrt{b^2-4ac}}{2a} \)
The option $$ \backslash [ ~your ~formula ~\backslash] $$
in some cases gives better quality than 'Mathematics in TeX'.
Compare
\[ \int_a^b f(x) dx \]
and
\[ \lim_{x \to a} f(x)=f(a) \]
with this
\(\int_a^b f(x) dx\)
and this
\(\lim_{x \to a} f(x)=f(a) \)
Boxed and enlarged formulas
A formula can be framed (or boxed)
$$ \backslash( \backslash boxed \{~x= \backslash dfrac \{-b \backslash pm \backslash sqrt \{b^2-4ac\}\}\{2a\} \} \backslash)$$
with the result:
$$ \boxed{x= \dfrac{-b \pm \sqrt{b^2-4ac}}{2a}}$$
and enlarged
$$ \$\$ \backslash Large \{ a \backslash times ~b \} \$\$ $$
with the result
$$\Large { a \times b } $$
Using fonts
There are dosens, if not hundreds of fonts available. Place the font name like this
$$\$\$ \backslash fontname \{your ~text\} \$\$ $$ or like this
$$ \backslash[ \backslash fontname \{your ~text \} \backslash]$$
in the display mode, and like this
$$\backslash( \backslash fontname \{your ~text\} \backslash) $$
in the inline mode.
Foe example:
\mathit
\[\mathit{ABCDEFGHIJKLMNOPQRSTUVXYZ}\]
\(\mathit{ABCDEFGHIJKLMNOPQRSTUVXYZ}\)
\mathsf
\[\mathsf{ABCDEFGHIJKLMNOPQRSTUVXYZ}\]
\(\mathsf{ABCDEFGHIJKLMNOPQRSTUVXYZ}\)
\mathrm
\[ \mathrm{ABCDEFGHIJKLMNOPQRSTUVXYZ} \]
\(\mathrm{ABCDEFGHIJKLMNOPQRSTUVXYZ} \)
\mathcal
\[ \mathcal{ABCDEFGHIJKLMNOPQRSTUVXYZ} \]
\(\mathcal{ABCDEFGHIJKLMNOPQRSTUVXYZ} \)
\mathfrack
$$ \mathfrak{ABCDEFGHIJKLMNOPQRSTUVXYZ}$$
\( \mathfrak{ABCDEFGHIJKLMNOPQRSTUVXYZ}\)
Matrices
Matrices can be displayed very well, for example
$$ \$\$ M= \backslash left[\backslash begin \{array\} \backslash\backslash a\& b \& 1 \backslash\backslash c \& d \& 2 \backslash end\{array\} \backslash right] \$\$$$
with the result
$$M=\left[\begin{array} \\ a & b &1 \\ c & d & 2 \end{array} \right] $$
Using colors
This example shows how to chage the formula color to green
$$\$\$ \backslash color \{green \} \{ a+b=c \} \$\$ $$
$$\color{green} { a+b=c } $$
Text in the math mode
A text can be embedded in the math mode like this:
-the display mode
$$ \backslash[ \{ \backslash text \{ \text { Actually Nothing Else } \}\} \backslash] $$
-the inline mode
$$ \backslash( \{ \backslash text \{ \text { Actually Nothing Else } \}\} \backslash) $$
with the following results:
-the display mode
\[ \text{ Actually Nothing Else }\]
-the inline mode
\( \text{ Actually Nothing Else } \).
Otherwise tildas ~ are needed to sepate words
$$\backslash[\{word 1~ \sim word 2~\sim word 3 \}\backslash]$$
with the result
\[{word 1~word 2~word 3 }\].