-
Notifications
You must be signed in to change notification settings - Fork 482
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
Defining LaTeX commands in a single location for use throughout the docs #532
Comments
Any update on this issue with the latest Documenter.jl? :) |
No but it is trivial to implement if you want to. |
Do we have support for this in the new Documenter.jl? |
Yes, we actually do. You can configure KaTeX & MathJax in makedocs(...,
format = Documenter.HTML(...,
mathengine = MathJax(Dict(
:TeX => Dict(
:equationNumbers => Dict(:autoNumber => "AMS"),
# Custom Tex commands:
:Macros => Dict(
:defd => "≝",
:ket => ["|#1\\rangle", 1],
:bra => ["\\langle#1|", 1],
)
)
))
)
) I'll downgrade this to a documentation issue. |
Nice to have this feature 👍 |
It seems that defining new LaTeX commands like this works only for MathJax. Is there an equivalent for KaTeX? |
@wsshin Yes, it should be possible, although I do not have a snippet on hand. But you can pass a configuration dict to |
As discussed on gitter, currently we have to retype
\newcommand
on every markdown file to get a notation that is consistent across documentation pages.It would be interesting to have a single place where one can define all the LaTeX syntax in the docs.
The text was updated successfully, but these errors were encountered: