Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support both MathJax and KaTeX + allow configuration #1097

Merged
merged 11 commits into from
Aug 23, 2019
Merged

Conversation

mortenpi
Copy link
Member

Add the mathengine argument to HTML which allows the math rendering engine to be specified and support both MathJax and KaTeX (the latter is the default).

Furthermore, you can also pass custom configuration to the rendering engine. E.g. to add global LaTeX command definitions, you can set mathengine to:

mathengine = Documenter.MathJax(Dict(:TeX => Dict(
    :equationNumbers => Dict(:autoNumber => "AMS"),
    :Macros => Dict(
        :ket => ["|#1\\rangle", 1],
        :bra => ["\\langle#1|", 1],
    ),
)))

Builds on top of #1092. Close #981 .

@mortenpi mortenpi added this to the 0.24.0 milestone Aug 15, 2019
@mortenpi mortenpi changed the base branch from mp/jsapi to master August 18, 2019 10:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Format: HTML Related to the default HTML output Type: Enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Switch to KaTeX
1 participant