HTML or PDF?
Thursday, October 21st, 2010 12:00![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
I'm planning to write a short introduction/quick reference to LaTeX (with a particular emphasis on “what corresponds to this HTML element?”, and actually explaining the core syntax rather than just examples of particular cases), as another page on my web site. Should I write it as HTML or LaTeX (rendered to PDF)? Using LaTeX means I can embed rendered examples without each one being an image (which I don't really want to deal with), but the result being a PDF rather than HTML means that the document would have a fixed line width, and possibly require download/be unviewable depending on the particular browser/platform/installed plugins. (It could still have hyperlinks.)
(In case you're wondering, there are several LaTeX-to-HTML conversion tools, and the last time I looked they all either didn't run, accepted a far-too-small subset of LaTeX, or produced too-low-quality or obviously broken output. I used one of them for this post and had to hand-edit black bars out of every image and trim the margins, and the antialiasing is poor.)
What would you prefer?
(no subject)
Date: 2010-10-21 17:20 (UTC)Googling quickly I found this example of the genre: http://www.fourmilab.ch/etexts/etset/
(no subject)
Date: 2010-10-21 18:14 (UTC)If you are on a mac, you can use LaTeXiT to quickly produce pictures from your examples, by the way (http://www.apple.com/downloads/macosx/math_science/latexit.html). Of course, if you wanted something makefile-compatible, I suppose you can use a pdf-to-image converter to generate includable pictures.
Go for PDF
Date: 2010-10-21 18:18 (UTC)(no subject)
Date: 2010-10-21 18:36 (UTC)http://tobi.oetiker.ch/lshort/lshort.pdf
I've found it extremely useful despite its not-so-shortness.
(no subject)
Date: 2010-10-21 20:42 (UTC)markdown + pandoc
Date: 2010-10-21 22:13 (UTC)Expose the mardown as a versioned document, in a repo on github or bitbucket so that readers can track changes. Provide all the scripts and LaTeX classes / CSS needed for the export along with the markdown document.
-- Paul
Re: markdown + pandoc
Date: 2010-10-23 09:27 (UTC)(no subject)
Date: 2010-10-22 07:20 (UTC)