Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Table of Contents

Summary

MathJax is an open-source JavaScript display engine for LaTeX, MathML, and AsciiMath notations that works in all modern browsers. It will allow you to write and display mathematical notation on web browsers. MathJax can generate output in several formats, including HTML with CSS styling, or scalable vector graphics (SVG). For more information about MathJax, you can find in the following page.


Accessing MathJax

There are two options on how to access MathJax configurations:

...

  • An alternative option is to select Latex Configurations from the side Navigation bar in the Confluence Administrator section.

...

Configurations

Default configurations

After the Latex add-on will be installed, MathJax configurations will have default pre-configured settings. These will allow you to use MathJax engine without additional configurations to render the macros.

...

If needed the default MathJax settings can be changed by configuring one of the following options:

Local Network

...

The Local Network option requires the actual MathJax JS file to be located on the local server. Then in the MathJax Path field requires a full path to the stored JS file on the local network. Please note the following two points:

...

E.g. if Confluence instance is configured to be accessed via HTTPS protocol then the according to local network needs to configured to use the same protocol, otherwise, it will not allow to saving the local network URL path.

Internet (CDN)

...

The Internet option will give the ability to choose one of the provided CDN’s and corresponding version. Once the CDN and version are selected and saved; below in the table appears full generated URL pointing to the external JS file, which will be accessed during displaying the macro in the Space page.

Local File

...

Local file option gives the ability to upload the actual MathJax JS file and to be stored under Confluence-home directory > shared-home > latex-mathjax. It will create and store the JS file content in the file named ppl-mathjax.js. Once the file is uploaded successfully; the info of that file will appear in the table indicating the original file name, size, uploaded date and it will give the ability to delete the file.

Usage

Using MathJax you have the availability to display your macro in two ways either as Block or Inline.

Info

Please note, that prefixes and suffixes of the block and inline macros are precoded, therefore you should not include them in your macro.

Inline macro

You can access inline macro in two ways either via page editor directly using a shortcut { mathjax and select inline macro

...

The final result on the page:

...

Macro as a Block

You can access block macro in two ways either via page editor directly using a shortcut { mathjax and select block macro

...

The final result on the page:

...

Combination of Inline and Block macros

In this example has been used 2 inline macros and 1 block:

...

result of it

...

Files

In order to obtain the actual MathJax JS files, please review the following documentation - Hosting Your Own Copy of MathJax as a guide.
Once the steps are completed to get JS files, you will be able to see different types of JS file under mathjax/es5 directory.

...