Title

LaTeX mathematical notations are popular, but they are not siupported in HTML
format.
Weaver package uses MathJax
JavaScript to render LaTeX Mathematical notations in the HTML dynamic document.
You can read more about rendering LaTeX notations in HTML in the link below.

MathJax LaTeX Math Documentation

Writing mathematical notations

To write LaTeX mathematical notations in Weaver log (in both HTML ot LaTeX),
the notation must be written in txt
command which is in charge of writing text in Weaver log. The mathematical notation
also must be separated from the rest of the text. If the notation is meant to
be rendered within the text paragraph, it must being with "\(" and end with "\)".
In order to render the notations on a separate line,
in the center of the document, The notation should begin with "\[" and end with "\]"

Note that for writing mathematical notations in the LaTeX log, the single "$"
and double "$$" can also be used for generating inline and centered notations
respectively. Writing notations with dollar sign in the HTML log can damage the document

Markup Description

\( LaTeX notation \) render mathematical notation within text paragraph

\[ LaTeX notation \] render mathematical notation in the center of a separate line

Example of mathematical notations

You want to write the formula of a simple linear regression with a single predictor and you want to
discuss it within the text paragraph, using LaTeX mathematical markup notation, this
formula will be rendered identically in both HTML and LaTeX log files:

. txt \( \widehat{\mu} (x) = \beta + \beta x \)

and to render the same notation in the center of the document, on a separate line, type:

. txt \[ \widehat{\mu} (x) = \beta + \beta x \]

Related Packages

Weaver : Creating HTML and PDF dynamic documents