←back to thread

235 points volemo | 1 comments | | HN request time: 0.262s | source
Show context
oh_my_goodness ◴[] No.43517392[source]
Uh ... where is it written that LaTeX can only provide pdf output?

Turn that around. Thought experiment. Say we work like pigdogs for 5 years and we completely replace all of Latex except the part that produces pdf. What value have we provided to users at that point?

replies(1): >>43518141 #
xworld21 ◴[] No.43518141[source]
The article talks about converting LaTeX to HTML, which is feasible today, if only buggy and fragile. This is the textbook the author talks about, which is written in LaTeX (but compiled with LaTeXML instead of pdflatex): https://forallx.openlogicproject.org/html/
replies(1): >>43519590 #
oh_my_goodness ◴[] No.43519590[source]
It does. But why can't LaTex produce png or something? Why does it have to be either pdf or pretty much abandon the idea of typesetting? Or am I misunderstanding?
replies(2): >>43519963 #>>43522578 #
goosedragons ◴[] No.43519963[source]
You can. Compile to DVI then use dvipng. There's not much reason to do it anymore. PDFs take up less space, you can copy the text, do hyperlinks.
replies(2): >>43520372 #>>43522782 #
oh_my_goodness ◴[] No.43520372[source]
So what's so bad about pdfs?
replies(2): >>43520698 #>>43522830 #
1. xworld21 ◴[] No.43522830[source]
Even after properly tagging your PDF and using Acrobat Reader to reflow the text, you cannot achieve this level of flexibility: https://forallx.openlogicproject.org/html/

Note how Richard's book adapts to any screen size, can change fonts and color schemes, system settings such as 'high contrast' will affect the rendering of the page, and you could even use browser extensions to restyle the page to e.g. use a more dyslexic friendly font of your choice.

This kind of functionality is not afforded by Adobe Reader. Even the official Adobe's example of reflowing that was posted in another thread is quite bad: https://helpx.adobe.com/uk/acrobat/using/reading-pdfs-reflow... The reflowed PDF is just stacking all text and removing all non-text visual cues. For example, pairs of name/role are separated by whitespace in the PDF, but after reflowing they are undisguishable from each other (who would be the senior VP, Sunny or Daniel?). In HTML, reflowing would preserve semantically relevant whitespace out of the box.