News for hackers. Stuff that matters.
Re:Lwarp – Converts LaTeX to HTML by fastball on Wednesday February 21, 2024 @12:28AM (#39450462)
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/

Re:Lwarp – Converts LaTeX to HTML by venice_benice on Wednesday February 21, 2024 @12:46AM (#39450557)
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.

Re:Lwarp – Converts LaTeX to HTML by djaouen on Wednesday February 21, 2024 @02:59AM (#39451219)
Emacs already does this lmao
Re:Lwarp – Converts LaTeX to HTML by merelysounds on Wednesday February 21, 2024 @03:34AM (#39451418)
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.

Re:Lwarp – Converts LaTeX to HTML by delta_p_delta_x on Wednesday February 21, 2024 @10:30AM (#39454994)
> Is there a demo?

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

Re:Lwarp – Converts LaTeX to HTML by Mylloon on Wednesday February 21, 2024 @05:25AM (#39452138)
There is also hevea(1) who do that

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