Skip to end of metadata
Go to start of metadata

Description

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.

Please note that this macro requires some previous knowledge of using LaTeX (see here) and LaTeX mathematics (see here). 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 (see here). 


Usage

Click Insert > Other Macros.

This will take you to the Macro Browser, where you can search and select the LaTeX Formatting Macro from the list. 

Parameters 

There are three parameters that can be set for the Restful Table Macro. These are as follows:

ParameterDescriptionType

Default

Required?
Block Equation Alignment

Specify the alignment of block equations on the page

enum

center

(error)

Text Alignment

Specify the alignment of text/inline equations on the page

enumleft(error)


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

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

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

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. 

_____________________________________________________________________________________________


_____________________________________________________________________________________________

Block

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

____________________________________________________________________________________________

____________________________________________________________________________________________

Example

Using the LaTeX Formatting Macro

Below are the parameters that can be set for the macro


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. 



____________________________________________________________________________________________

____________________________________________________________________________________________

____________________________________________________________________________________________

____________________________________________________________________________________________

Colour 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:

mhChem Package:


____________________________________________________________________________________________

____________________________________________________________________________________________

Physics Package:

____________________________________________________________________________________________

____________________________________________________________________________________________




  • No labels