Math
Doctave supports mathematical equations via KaTeX to enable rendering mathematical expressions in your documentation.
Visit the KaTeX documentation for a list of supported functions and symbols.
Doctave does not validate the syntax of your mathematical expressions.
Inline syntax
To render inline math, wrap your mathematical expression with double dollar signs ($$
). This renders the math expression within the flow of the text.
Some math here.
Block syntax
If you want to display a mathematical expression on its own line, wrap the expression with double dollar signs ($$
) and place it on a new line.
Here is some math:
What was some math!
Attributes
You can customize the math notation using the following attributes.
Display Mode
Display mode is used for more complex equations that require additional formatting, such as alignment. To enable display mode, set the display_mode
parameter to true
.