简体   繁体   English

Gitbook 遥控器不在阅读模式下呈现数学

[英]Gitbook remote not rendering maths in reading mode

I'm writing up a Gitbook and there's some maths involved.我正在写一个 Gitbook,其中涉及到一些数学。 Great, given there's KateX support !太好了,因为有KateX 支持

With the Gitbook Editor , all is fine, maths get rendered alright, as can be seen here使用Gitbook 编辑器,一切都很好,数学可以很好地呈现,如下所示

在 Gitub 编辑器上

Same for when I'm on the remote repo and I use the editor mode.当我在远程仓库并且使用编辑器模式时也是如此。

But, on the reading mode in remote, I get this instead但是,在远程阅读模式下,我得到了这个

在阅读模式远程

I've tried seen if by any means some plugin had to be chosen in the settings, but nothing.我试过看看是否必须在设置中选择一些插件,但什么都没有。

What's going on?这是怎么回事?

Have you added "plugins": ["katex"] to your book.json file?您是否在book.json文件中添加了"plugins": ["katex"]

Rendering will work in the editor even if you haven't added it.即使您尚未添加渲染,也可以在编辑器中进行渲染。

If you haven't made or edited a book.json file, add one in your book's root directory, and put the following in it:如果您还没有制作或编辑book.json文件,请在您的书的根目录中添加一个,并将以下内容放入其中:

{
    "plugins": ["katex"]
}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM