Skip to content

Conversation

Morriar
Copy link
Member

@Morriar Morriar commented Jun 20, 2018

This PR is a follow up of #2720 and introduces a LaTeX/Maths mode for lib/markdown2.
The goal is to handle #791 when it will be merged with the documentation tools.

The maths mode, when enabled, uses the tex2im tool to render LaTeX equations as images and includes them into the HTML output.

So one can write:

This is a LaTeX equation: $\\psi_{tot}(x,-t_0,r) = \\frac{1}{(2\\pi)^2}$.

And the output will be:

<p>This is a LaTeX equation: <img alt="\\psi_{tot}(x,-t_0,r) = \\frac{1}{(2\\pi)^2}" src="b123b75db5eb96ac4496d017a18633b5.png" /> baz</p>

Where the image will be: b123b75db5eb96ac4496d017a18633b5

To work this PR requires tex2im to be installed and added to the path.

Signed-off-by: Alexandre Terrasa <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant