jupyter-book
jupyter-book copied to clipboard
pdf TOC does not render with dollarmath because "You can't use `\spacefactor' in math mode"
Describe the problem
When compiling the book to pdf, if there is math inserted with dollarmath
(i.e. inside $$
), the TOC/Contents page at the beginning of the book is not rendered.
I managed to solve this by reverting the _build
cache to a state where the index compiled (using git) and the index builds, but this does not solve the problem. The complete error message is:
! You can't use `\spacefactor' in math mode.
\@->\spacefactor
\@m {}
l.186 ...2020) to convert the code into a \(\LaTeX
\) publication, thanks to ...
?
See full log attached. jupyter_book.log
Link to your repository or website
https://github.com/baggiponte/thesis-forecasting
Steps to reproduce
- Insert math in a chapter using dollar notations
- run
jupyter book build --builder=pdflatex .
inside the book directory
The version of Python you're using
3.9.7
Your operating system
macOS 12.0.1
Versions of your packages
Jupyter Book : 0.12.0
External ToC : 0.2.3
MyST-Parser : 0.15.2
MyST-NB : 0.13.1
Sphinx Book Theme : 0.1.6
Jupyter-Cache : 0.4.3
NbClient : 0.5.5
Additional context
Book directory in my repo is here.
Thanks for opening your first issue here! Engagement like this is essential for open source projects! :hugs:
If you haven't done so already, check out EBP's Code of Conduct. Also, please try to follow the issue template as it helps other community members to contribute more effectively.
If your issue is a feature request, others may react to it, to raise its prominence (see Feature Voting).
Welcome to the EBP community! :tada:
Thanks for reporting this @baggiponte -- looks like an interesting thesis :-).
@AakashGfude any idea what might be causing this?
Hi @baggiponte, sorry for getting to this one so late. Do you still have this issue? It seems to be running well on my end.
What I did was:
- clone your repo
- Add in
capitulos/marco-teorico/modelo-estandar
$$
\gamma = 0.5
$$
- run
jb build --builder=pdflatex .
in tesis folder.