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

tex macro for MathJax3 #1427

Closed
ianqsong opened this issue Oct 3, 2020 · 1 comment
Closed

tex macro for MathJax3 #1427

ianqsong opened this issue Oct 3, 2020 · 1 comment

Comments

@ianqsong
Copy link
Contributor

ianqsong commented Oct 3, 2020

I found tex macro for MathJax2 on #532. But my guess for MathJax3 failed as follows.

makedocs(
    ...
    format = Documenter.HTML(
        mathengine = MathJax3(Dict(
            :loader => Dict("load" => ["[tex]/physics"]),
            :tex => Dict(
                "tags" => "ams",
                "packages" => ["base", "ams", "autoload", "physics"],
                "macros" => Dict(
                    :ket => ["|#1\\rangle", 1], 
                ),
             ...

There are no warnings/errors to run make.jl but it just stop rendering tex code part. It wouldn't work using "Macros" either.

@ianqsong
Copy link
Contributor Author

ianqsong commented Oct 3, 2020

After 2-hour effort I found I should use other CDN for MathJax3 instead of https://cdnjs.cloudflare.com/ajax/libs/mathjax/3.0.5/es5/tex-svg.js. So it might just be an version issue for MathJax. However on Documenter.jl side I suggest a little change #1428.

@ianqsong ianqsong closed this as completed Oct 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant