Prologue
With the release of OmniMarkupPreviewer v1.6, you can embed $\LaTeX$ and
MathML equations directly into your Markdown documents. Equations are handled
with the excellent MathJax library.
Usage
Settings
In order to enable MathJax, you have to set "mathjax_enabled" to true in your
OmniMarkupPreviewer settings. MathJax will be downloaded automatically in the
background, so hold on.
OmniMarkupPreviewer.sublime-settings:
1 2 3 | |
NOTE (Linux) For linux users, because ssl module is missing from Linux version of Sublime Text 2, you have to download and extract MathJax library manually:
Download the MathJax archive:
1
| |
Extract to ${packages}/OmniMarkupPreviewer/public/:
1
| |
Create an empty file named .MATHJAX.DOWNLOADED in the plugin folder:
1
| |
After MathJax is installed successfully, you have to reload your browser to apply the changes.
Writing Equations
Inline Equations
Enclose your euqation in $ delimiters to include an inline $\LaTeX$ equation, for example:
1
| |
Alternatively, native MathJax delimiter for inline math (\( and \)) is also
supported.
Display Equations
To include a $\LaTeX$ display equation you have to enclose the equation in $$
delimiters, for example:
1 2 3 4 5 6 7 8 9 | |
The alternative syntax of native MathJax delimiter for display math (\[ and
\]) is also provided.
MathML Equations
You can alsow insert MathML euqations, just wrap your equation inside the standard
<math> tag:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | |