Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
..
Failed to load latest commit information.
.gitignore
README.md
conf.py.sample
localkatex.js
localkatex.plugin
localkatex.py
package-lock.json
package.json

README.md

A plugin that renders math using a local KaTeX install.

Requirements

  • node.js installed, in $PATH, accessible as the node command
  • KaTeX accessible by Node (run npm install in this plugin’s folder)
  • USE_KATEX = True in config

You may also edit math_helper.tmpl to remove the KaTeX JavaScript includes (which are now unused).

Examples:

Inline:

Euler’s formula: {{% raw %}}{{% lmath %}}e^{ix} = \cos x + i\sin x{{% /lmath %}}{{% /raw %}}

Display:

{{% raw %}}{{% lmath display=true %}}\int \frac{dx}{1+ax}=\frac{1}{a}\ln(1+ax)+C{{% /lmath %}}{{% /raw %}}
{{% raw %}}{{% lmathd %}}\int \frac{dx}{1+ax}=\frac{1}{a}\ln(1+ax)+C{{% /lmathd %}}{{% /raw %}}

Alternate name:

{{% raw %}}{{% localkatex %}}e^{ix} = \cos x + i\sin x{{% /localkatex %}}{{% /raw %}}

The following options are supported: displayMode, display (alias), throwOnError, errorColor, colorIsTextColor — see KaTeX docs for details.