4 ms·
I am writing a book, but it is a active learning book. Half the content and tasks in the book are coding based, and the other math based. Due to the coding bas
by abdullahkhalids 3y ago
I am writing a book, but it is a active learning book. Half the content and tasks in the book are coding based, and the other math based.
Due to the coding based, I am writing the book in Jupyter notebooks. But, writing the content in Jupyter is quite limiting. The main problems are the lack of automatic numbering of equations and automatic referencing.
There used to be an extension for Jupyter notebooks that does this [1] but is no longer actively maintained and doesn't work on Jupyterlab.
[1] https://github.com/jfbercher/jupyter_latex_envs https://github.com/jfbercher/jupyter_latex_envs
- jmhammond 3y agoYour probably are avoiding pretext, but if you were interested, you could have <sage/> blocks that specify your language (say, Python, much like a jupyter kernel). You’d then write around your code blocks, just as you’re doing now, but heavy markup gives you the choices like referring to equations and such. https://pretextbook.org/doc/guide/html/overview-sage.html https://pretextbook.org/doc/guide/html/overview-sage.html