Skip to content

Commit

Permalink
mathjax を手動で導入し,デリミタも手動で設定する
Browse files Browse the repository at this point in the history
  • Loading branch information
Seasawher committed Sep 5, 2023
1 parent 5b0b1c1 commit 77aef32
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
5 changes: 0 additions & 5 deletions book.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,7 @@ multilingual = false
src = "src"
title = "Mathematics in type theory 日本語版"

[preprocessor.katex]
after = ["links"]
command = "mdbook-katex"

[output.html]
mathjax-support = true
git-repository-url = "https://github.com/Seasawher/math-in-type-theory-ja"

# 日本語検索に対応していないため,無効にする
Expand Down
9 changes: 9 additions & 0 deletions theme/header.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script>
<script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script>
<script>
window.MathJax = {
tex: {
inlineMath: [['$', '$'], ['\\(', '\\)']]
}
};
</script>

0 comments on commit 77aef32

Please sign in to comment.