10

HTML5 allows for great rendering. Crocodoc for example does a great conversion from PDF to HTML5. Is there any tool to convert LaTeX to HTML5? Does tex4ht support HTML5?

Here's an example of what Crocodoc achieves in HTML5, compared to the original PDF:

Crocodoc PDF to HTML5

and an example of a full document in HTML5.

17
  • 1
    Could you be a little more explicit in your question? What do you mean by "great rendering"? I know very little about HTML5 so I have no idea even what sort of thing you mean. When I look at the source of a sample "Crocodoc" document in FireBug then I don't see anything special. There's a lot of CSS controlling the word spacing and line protrusion so I'm not convinced that this is an example of "great conversion". May 13, 2011 at 9:28
  • 2
    In particular, woe betide me if I don't like their choice of font! Changing the font really messes up the page. May 13, 2011 at 9:29
  • 2
    I'm confused: if crocodoc converts PDF to HTML5, why are asking about converting .tex to HTML5? Can you not upload a regular latex-compiled PDF to crocodoc? May 13, 2011 at 9:33
  • 4
    I checked the source code of the provided Crocodoc example and IMHO it's not a HTML5 document, as the doctype explicitly shows XHTML 1.0 Transitional. Besides, I didn't see any new HTML5 tags in the document, just a lot of Javascript and CSS codes (the page contains several errors as well). Probably this is a little confusion with a rich web page (very well designed and rendered, I give you that), but it isn't HTML5 per se. I believe you can achieve something similar with tex4ht, jQuery plugins and CSS. May 13, 2011 at 11:00
  • 1
    The text on the website is misleading. They convert PDFs to HTML and you can visualize them on an HTML5 viwer. That’s why it’s ‘High fidelity HTML5 document rendering'.
    – rberaldo
    May 13, 2011 at 12:03

0

Browse other questions tagged .