LaTeX Formatting
The LaTeX Formatting macro can be used to convert LaTeX (a document preparation system) mathematical language to HTML. This can be useful for displaying mathematical/scientific equations on a page, or formatting in a certain style.
Add LaTeX to your page
The LaTeX Formatting macro can be used to convert LaTeX (a document preparation system) mathematical language to HTML. This can be useful for displaying mathematical/scientific equations on a page, or formatting in a certain style.
This macro requires some previous knowledge of using LaTeX and LaTeX Mathematics. It may also be useful to review the documentation for MathJax, which enables the conversion between LaTeX and HTML and provides a range of informative examples on using the language.
Block vs inline formatting
There are two ways in which LaTeX can be displayed on the page using this macro: Block and Inline.
Inline
To display an Inline equation, a single dollar sign must be placed on either side of the LaTeX within the macro,
Published Result![]()
Block
To display a block equation, a double dollar sign must be placed either side of the LaTeX within the macro, e.g.
Published Result
Examples
Matrix and array
\begin{array}{lcl}
z & = & a \\
& = & a \\
f(x,y,z) & = & x + y + z
\end{array}Published Result
\begin{bmatrix}
\alpha& \beta^{*}\\
\gamma^{*}& \delta
\end{bmatrix}Published Result
Color formatting
Styling of LaTeX with color can be achieved by using a color parameter, e.g.
Published Result
Packages
To provide extra functionality for the LaTeX Formatting macro, a number of LaTeX packages have been included. These include mhChem, and Physics.
mhChem package
For more guidance on using this package check the package documentation.
Published Result
Physics Package
For more guidance on using this package check the package documentation.
Published Result
Export LaTeX to PDF
Due to a Confluence limitation, the Export to PDF functionality does not work for content created with the LaTeX macros. If you want to preserve your content in PDF format, we recommend that you use your browser's built-in functionality to print to PDF.