gpt4 book ai didi

mathjax - 我可以在 Gitbook.com 中使用 MathJax 吗

转载 作者:行者123 更新时间:2023-12-05 05:24:22 24 4
gpt4 key购买 nike

我在 gitbook.com 中有一本 gitbook 电子书:here .但是mathjax插件在编辑器中表现良好,而数学表达式在在线版本中看不到?需要设置什么吗?

最佳答案

Math & TeX

GitBook supports math equations and TeX thanks to plugins. There are currently 2 official plugins to display math: mathjax and katex.

Enable a math plugin:

To enable math support, you need to add one of these plugins to your book.json:

{
"plugins": ["mathjax"]
}

Differences between MathJax and KaTeX

The mathjax and katex plugins are different implementations of TeX equation rendering, backed by their respective Open Source libraries: KaTeX and MathJax. MathJax supports the entire TeX syntax, but the output is not perfect on ebooks (PDF, ePub and Mobi). KaTeX renders perfectly on all formats (web and ebooks), but doesn't yet support all the syntax.

Add math to your content:

Here is some inline math: $$a \ne 0$$

A block of math should begin with a new line:

Here is a block of math:

$$
a \ne 0
$$

发件人:http://help.gitbook.com/format/math.html

关于mathjax - 我可以在 Gitbook.com 中使用 MathJax 吗,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35008828/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com