I was stunned by the elegant appearance of the Tau manifesto page, for which the source is in LaTeX. The author used a home-made tool that he calls PolyTeXnic, but which he is not willing to release.

How difficult would it be to reproduce his result? I'm leaning towards using PlasTeX as the base tool.

Edit I was not referring to the contents of the Tau manifesto page :-) but rather to its general appearance: nice cross references, equations, figures, tables, cross-references to them, footnotes, bibliographical references, etc. The maths is actually what worries me the least, thanks to MathJax. I was rather thinking on all the other aspects of the document, and whether PlasTeX might be up to the task.

  • 9
    It's all in the CSS. I would add a screenshot but it'd be simpler just to show you. The easy part of LaTeX-to-WebPage is converting LaTeX to (X)HTML. The hard part is making it look nice - not because of anything inherent in LaTeX but just because that's the hard part of any webpage. Commented Mar 20, 2012 at 9:25
  • 1
    Wow, I'm not sure about the tools you're asking about, but the content of that page sure is cranky!
    – qubyte
    Commented Mar 20, 2012 at 9:27
  • 1
    The fact that the idea originates with Bob Palais prevents me from completely agreeing with Mark, but while I can see the argument for pi not being the angle, clearly τ = π/2 and so it is the quarter circle that is the one true angle. Commented Mar 20, 2012 at 9:37
  • 3
    I don't think we should discuss \pi-or-\tau here or we will get into serious war, that is, moreover, more suited for Math.SX. For this reason, I won't include my opinion on the topic. As for the question: it's a matter of very fine tuning as @AndrewStacey has already mentioned. You may contact the author of the webpage and ask him for some advice.
    – yo'
    Commented Mar 20, 2012 at 9:54
  • 1
    Regarding your edit, take a look at our TeX-SX blog and in particular this article: tex.blogoverflow.com/2011/07/getting-latex-on-to-the-web/… everything that I've written on the blog has been written in LaTeX and converted. I also write nLab pages in LaTeX and convert them. If that sounds interesting, drop by and I'll show you how it's done. Commented Mar 20, 2012 at 16:44

5 Answers 5


Let me answer myself to myself: one of the most reliable ways to convert LaTeX into html is definitely TeX4ht, because it uses TeX as the underlying engine.

TeX4ht takes care of the cross references, the figures, footnotes, bibliography, and more. The math parts are transformed into MathML which is then beautifully rendered using MathJax.

  • 1
    Certainly not the only. Perhaps the most complete (as in can cope with the most variation in input). Commented Oct 10, 2012 at 13:54
  • I meant the only reliable way (in fact, following your many comments on that topic!). Is there another package capable of coping with arbitrary custom command definitions, for instance?
    – Olivier
    Commented Oct 10, 2012 at 14:10
  • Sort of. Some external (ie using another language) methods work by allowing you to define custom extensions that will handle those custom command definitions. My TeX class works by using tex as the interpreter so it can handle custom stuff so long as it resolves to something sensible in the output. Commented Oct 10, 2012 at 15:05
  • @AndrewStacey what is this "TeX class" you are mentioning? I'd be very glad to stay away from TeX4ht, so if you know of another reliable method, I'd like to test it.
    – Olivier
    Commented Oct 10, 2012 at 15:20
  • The problem is that it isn't very reliable yet! I've been using it, but as I wrote it then I know how to work with it and its foibles. A description and a slightly old version is at math.ntnu.no/~stacey/HowDidIDoThat/LaTeX/internet.html Sometime very soon I'll put up an alpha release but there are one or two important implementation issues that I want to fix first. Commented Oct 10, 2012 at 15:33

In the meantime the author of the Tau manifesto page has published his homemade PolyTeX tool. Have a look at

These tools should help you to reproduce his results.


It all depends on the type and length of document/html you want to produce. The http://tauday.com/tau-manifesto shows that all the maths are rendered via MathJax, which is easily incorporated in the html code. The way I see it you have two choices one:

  1. If what you are aiming is as simple as the tau pages I would have done it manually via a CMS that I am comfortable with.
  2. If there are many pages the PlasTeX idea is very good and it wouldn't be too difficult to adapt the style and or code to what you have in mind.

Give it a try on a page or two first.

  • 1
    Obligatory warning on non-TeX converters (from the PlasTeX site): "While plasTeX makes a valiant effort to expand all LaTeX macros, it isn’t TeX and may have problems if your macros are complicated." Commented Mar 20, 2012 at 9:53
  • @AndrewStacey My honest opinion is not to use any processing here, the work will be in the CSS and and the CMS. Personally I would have done it using a Wordpress or Drupal CMS and hardcoded the code (possibly 2-3 evenings works) versus hacking code and TeX endlessly.
    – yannisl
    Commented Mar 20, 2012 at 10:04
  • I agree (see my comment on the original question). I added that comment in case anyone thought that PlasTeX (or any other TeX-to-HTML converter) were a "magic bullet" that could convert any document into a webpage. Commented Mar 20, 2012 at 10:15
  • Yiannis, would you consider the tau page as simple? There are footnotes, internal references, external references, figures, refs to figures.. is that so easy with a CMS? I should think that it would entail a significant wading through spaghetti code... Anyway, I'll give PlasTeX+tau page css a shot.
    – Olivier
    Commented Mar 20, 2012 at 14:10
  • @Olivier It all depends on what you want to do. In general if you are not going to have static content then a CMS is a must. The footnotes and references is not a very difficult problem for HTML + javascript, a lot of CMSs have plugins. I must sayI like the tau page style.
    – yannisl
    Commented Mar 20, 2012 at 14:53

I have tried them all, and I like plastex the best. Probably the most complicated things I do with them are my annual reports, which are here: http://fedibblety.com/annualReports

there are links to the source code if you are interested (I generate pdf and html from the same source)

  • Another vote for plastex, although it's a little hard to work with. I use it to generate wordpress posts for this site: greedyalgs.info . A few more details about that are here: greedyalgs.info/blog/plog.
    – Neal Young
    Commented Nov 14, 2013 at 11:18

Maybe you could use DocOnce to create a similar elegant HTML page :

DocOnce is a modestly tagged (Markdown-like) markup language targeting scientific reports, software documentation, books, blog posts, and slides involving much math and code in the text. From DocOnce source you can generate LaTeX, Sphinx, HTML, IPython notebooks, Markdown, MediaWiki, and other formats. This means that you from a single source can get the most up-to-date publishing technologies for paper, tablets, and phones.

Some example HTML pages generated are e.g.:

For more examples, see https://hplgit.github.io/teamods/writing_reports/index.html .

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .