Hacker News new | past | comments | ask | show | jobs | submit login
Lwarp – Converts LaTeX to HTML (ctan.org)
40 points by Tomte 8 months ago | hide | past | favorite | 6 comments



Is there a demo?

I’m especially interested in how this approaches page flow - would it keep the concept, or render everything as a single “page”.

For context, in my pet project I wanted to actually keep the pages; I ended up rendering a pdf and then using pdf.js to render that in html.


> Is there a demo?

https://tikz.dev/ is generated from http://mirrors.ctan.org/graphics/pgf/base/doc/pgfmanual.pdf. As someone else says,


Friendly reminder that if you need to convert from {document format} to {other document format}, Pandoc[1] is the the place to go.

Pandoc can convert LaTeX to HTML or HTML to LaTeX!

[1] https://pandoc.org/


pandoc is much less powerful here since it can only parse a subset of LaTeX, as opposed to LaTeXML or lwarp which actually processes the LaTeX/TeX code expanding the macros etc, and then generates the output HTML/XML.

pandoc is nice for simple documents, but it is completely inadequate for many use-cases, which is why ArXiv is using LaTeXML and tikz.dev is using lwarp, rather than the more ubiquitous pandoc.


There is also hevea(1) who do that

1: https://github.com/maranget/hevea


Emacs already does this lmao




Consider applying for YC's W25 batch! Applications are open till Nov 12.

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

Search: