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.

Usage

  1. Go to the form you wish to edit.

  2. Click Edit.

  3. Click Insert More Content, and select Other Macros.

  4. After arriving at the Macro Browser, search and select the LaTeX Formatting Macro from the list.

    The Macro Browser with the LaTeX Formatting macro available.
  5. Complete the desired fields.

    ParameterDescriptionTypeDefaultRequired

    Block Equation Alignment

    Specify the alignment of block equations on the page

    enum

    center

    Text Alignment

    Specify the alignment of text/inline equations on the page

    enum

    left

  6. Once the LaTeX Formatting Macro has been added to a page, any mathematical LaTeX entered inside the macro will be displayed on page load.

    1. Multiple LaTeX formulas or equations can be included inside a single macro, and multiple macros can be included within a page.

      The placeholder for a LaTeX Formatting macro.

      Due to a Confluence limitation, the Export to PDF functionality does not work for content created with the LaTex Formatting macro. 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.

Block vs Inline Formatting

There are two ways in which LaTeX can be displayed on the page using this macro. These are Block and Inline. In order to display, for example, an Inline equation, a single dollar sign must be placed either side of the LaTeX within the macro.

Inline

A LaTeX Formatting macro placeholder with an inline equation.

The above LaTeX code shows some inline text, between the single dollar signs, and an inline equation, following the backslash. This will be displayed as seen below.

A rendered, in-line LaTeX Formatting macro.

Block

A LaTeX Formatting macro placeholder with an block equation.

The above LaTeX code shows a block equation. This will be displayed as seen below.

A rendered, block LaTeX Formatting macro.

Examples

Using the LaTeX Formatting Macro

Below are the parameters that can be set for the macro.

The Edit LaTeX Formatting Macro screen.

To use the macro, simply include it on a page and insert the LaTeX to be displayed, as shown below using Matrix and Array examples.

A LaTeX Formatting macro placeholder with a matrix and an array.

A rendered LaTeX Formatting macro with a matrix and an array.

Color Formatting

Styling of LaTeX and regular text within the macro can be done using the following technique.

This will be displayed as seen below.

Packages

To provide extra functionality for the LaTeX Formatting Macro, a number of LaTeX packages have been included.

These include the following: Unit, mhChem, and Physics.

Below are some examples of using these packages.

Unit Package:

A LaTeX Formatting macro placeholder with an example Unit package.

A rendered LaTeX Formatting macro with the Unit package from above.

mhChem Package:

A LaTeX Formatting macro placeholder with an example mhChem package.

A rendered LaTeX Formatting macro with the mhChem package from above.

Physics Package:

A LaTeX Formatting macro placeholder with an example Physics package.

A rendered LaTeX Formatting macro with the Physics package from above.