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

 

Most popular tags

Failed to execute the [groovy] macro
  1. access rights
  2. activity stream
  3. annotation
  4. attachment
  5. comment
  6. Document Tree Macro
  7. export
  8. Extension Manager
  9. Flamingo skin
  10. global user
  11. Groovy event listener
  12. group
  13. nested page
  14. search
  15. skin
  16. syntax
  17. user
  18. user profile
  19. velocity macros
  20. wiki
  21. wysiwyg
  22. XWiki Applications
  23. xwikiattachment_archive table
  24. xwikiattachment table
  25. xwikiattrecyclebin table
  26. xwikiproperties table

[Display all tags from this space]