Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I've been doing something similar, and it looks like you've managed to solve a problem I've been unable to: how did you get theorem and section numbering to work right?


Nothing special; here is the pandoc command I use to transform tex without tikz:

  for input in *.tex; do
   pandoc "${input}"                      \
          --from latex                    \
          --to html                       \
          --pdf-engine=latexmk            \
          --css="styles/texstyle.css"     \
          --standalone                    \
          --mathjax                       \
          --toc                           \
          --number-sections               \
          --output="${input%".tex"}.html" ;
  done
My pandoc version is:

  pandoc 3.1.9
  Features: +server +lua
  Scripting engine: Lua 5.4


Not the OP but I use pandoc-crossref for this: https://lierdakil.github.io/pandoc-crossref/




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: