mrtzh / unbuch

Compile markdown into an html and pdf book based on pandoc.
MIT License
183 stars 21 forks source link

Better optional math support #3

Open mrtzh opened 5 years ago

mrtzh commented 5 years ago

The current is not suitable for very math heavy documents. Additional plugins or filters, such as equation numbers or environment references, would be needed.

boazbk commented 3 years ago

I got into these issues in my book ( https://introtcs.org )

I ended up writing some filters you can find on https://github.com/boazbk/panbook

I used the panflute package http://scorreia.com/software/panflute/

The approach I used is to make the latex aux file the source for label numbers in the html as well.

I have some Python code that converts the aux to yaml and then use this to make the labels in html

Also at some point I gave up on generating chapters independently and just broke up the main pdf book into parts.

mrtzh commented 3 years ago

Very cool. In the most recent update that I just pushed I did something much more basic for cross references. You can take a look at it in filters/crossrefs.py. It was sufficient for what we were doing though. I will leave this issue open, since what I implemented so far is very basic.