Skip to content

Commit 5d5b195

Browse files
Enable MathJax to fix the Latex prints
Fixes #1772
1 parent c87aaad commit 5d5b195

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

docs/make.jl

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,16 @@ using Documenter, ModelingToolkit
22

33
include("pages.jl")
44

5+
mathengine = MathJax3(Dict(:loader => Dict("load" => ["[tex]/require", "[tex]/mathtools"]),
6+
:tex => Dict("inlineMath" => [["\$", "\$"], ["\\(", "\\)"]],
7+
"packages" => [
8+
"base",
9+
"ams",
10+
"autoload",
11+
"mathtools",
12+
"require",
13+
])))
14+
515
makedocs(sitename = "ModelingToolkit.jl",
616
authors = "Chris Rackauckas",
717
modules = [ModelingToolkit],
@@ -16,6 +26,7 @@ makedocs(sitename = "ModelingToolkit.jl",
1626
],
1727
format = Documenter.HTML(; analytics = "UA-90474609-3",
1828
assets = ["assets/favicon.ico"],
29+
mathengine,
1930
canonical = "https://mtk.sciml.ai/stable/",
2031
prettyurls = (get(ENV, "CI", nothing) == "true")),
2132
pages = pages)

0 commit comments

Comments
 (0)