Cannot get latex / maths symbols to display in 'published' books
Everything looks fine in edit mode. But in 'published' books, just see raw characters e.g. $$y = ax +b$$
https://drewbuchan.gitbooks.io/test-markdown-and-latext/content/
what am i doing wrong?
Hi,
Could you paste your book.json content?
Imre
Hi Imre
I think this is it. Thanks Andrew
On Mon, Jun 6, 2016 at 8:45 AM, nagim [email protected] wrote:
Hi,
Could you paste your book.json content?
Imre
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/GitbookIO/gitbook/issues/1356#issuecomment-223889489, or mute the thread https://github.com/notifications/unsubscribe/APPzlzsUT2CTWKw2acigaEnN1fOJ4cjeks5qI9AvgaJpZM4ItkBg .
Don't see anything, must be left out?
I thought I had emailed a copy to you... Maye I sent wrong file. Where should I be getting this book.json file from?
You have a file name book.json in your book repo. Could you please open it and copy-paste the content? On Jun 6, 2016 2:17 PM, "thacker7" [email protected] wrote:
Sorry, you've lost me now. What else can I do to illustrate the problem?
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/GitbookIO/gitbook/issues/1356#issuecomment-223942359, or mute the thread https://github.com/notifications/unsubscribe/APdFOyV3NmR7KuB0wkLP35TYlaNDIzTOks5qJA_QgaJpZM4ItkBg .
Okay, here it is. It is one of the plug-ins on your site.
{ "plugins": [ "autocover" ], "pluginsConfig": {} }
OK, depending on what syntax your're using, you must add the mathjax or katex plugin to your book config (book.json):
"plugins": [
"autocover",
"mathjax"
],
"pluginsConfig": {}
}
Run a build with the new config, it should be fine.
same issue here.
Well, seems some equation cannot be generated successfully in pdf, but can be shown in the html page content.
Like $$\frac{a}{b}$$.
Same issue here - any update on this?
books.json:
{
"plugins": [
"mathjax",
"include-codeblock",
"ace"
],
"pluginsConfig": {
"include-codeblock": {
"template": "ace",
"unindent": true,
"theme": "monokai"
}
}
}
Math looks great in edit mode, but in regular mode, all math is omitted.
I think I figured out that if you do Command R to refresh without cache in chrome, then it reloads the math in the published version, so maybe mathjax is using a cache.
I have same issue as @codekiln - latex does not display immediately in chrome but it appears on refresh.
Are there any updates here? Same issue, latex renders beautifully in edit mode, but not in read mode or pdf (not even refreshing)
@thacker7 please could you tell us how did you got rendered math expressions in your book?
Same issue. I even couldn't find book.json file on the website. new to gitbook
Same issue in published book, just see raw math expressions, but edit/read mode is ok.
I had the same issue and solved it by editing the book.json file to include "mathjax" into the plugins array.
book.json
{
"plugins": ["autocover", "mathjax"],
"pluginsConfig": {}
}
Is there still updated? I have the similar issue. And I find when I use "gitbook build" and "gitbook install" in my local repo, it never recognizes my book.json whatever it includes.
Here is my book.json
{
"plugins": [
"mathjax"
],
"pluginsConfig": {}
}
But I clone a repo from user athacker, when I use “gitbook build”, it reminds me to install mathjax.
Here is his book.json
{
"plugins": [
"mathjax"
],
"pluginsConfig": {}
}
I nearlly give up. I have waste much time on it. Damn.