Formula Macro

The Formula macro renders as image a mathematical formula written in TeX markup.  

Usage

{{formula imageType="<png|gif|jpg>" fontSize="<fontSize>"}}
//LaTeX mathematical formula
{{/formula}}

Parameters

NameOptionalAllowed valuesLaTeX correspondentDescriptionDefault value
imageTypeYes
  • png
  • gif
  • jpg
The image formatpng
fontSizeYes
  • tiny
  • very_small
  • smaller
  • small
  • normal
  • large
  • larger
  • very_large
  • huge
  • extremely_huge
  • tiny
  • scriptsize
  • footnotesize
  • small
  • normalsize
  • large
  • Large
  • LARGE
  • huge
  • Huge
Font sizes corresponding to LaTeX font sizesnormal

Examples

Example 1

{{formula}}
\begin{math}\int\frac
{d\theta}{1+\theta^2} = \tan^{-1}
\theta+ C\end{math}
{{/formula}}

will display

\begin{math}\int\frac 
{d\theta}{1+\theta^2} = \tan^{-1} 
\theta+ C\end{math}

Example 2

{{formula}}
\begin{align}
\cos^2\psi+\sin^2\psi & = 1, \\
\cosh^2\omega-\sinh^2\omega &=1.
\end{align}
{{/formula}}

will display

\begin{align}
\cos^2\psi+\sin^2\psi & = 1, \\
\cosh^2\omega-\sinh^2\omega &=1.
\end{align}

Related Pages

Search this space