$\LaTeX$ Support in OmniMarkupPreviewer
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.sublimesettings
:


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:


Extract to ${packages}/OmniMarkupPreviewer/public/
:


Create an empty file named .MATHJAX.DOWNLOADED
in the plugin folder:


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:


This expression $\sqrt{3x1}+(1+x)^2$ is an example of a $\LaTeX$ inline equation.
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:


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:

