## Tuesday, August 6, 2013

### Rendering math in blogs

To render LaTeX-style mathematical formulae in blogs, use MathJax, as shown here. Once set up, you can do
• $$<math text>$$ for inline math
• $<math text>$ for equations

## Friday, August 2, 2013

### LaTeX to HTML

To generate a HTML version of a TeX document:
• First ensure that all metadata files are up-to-date (e.g. if you have references in the tex file, run latex; bibtex; latex; latex to ensure that the .bbl file is ok).
• Run latex2html -split +1 -show_section_numbers -no_footnode myfile.tex. This will create a directory myfile containing myfile.html (among other things).
• -split +1 causes all subsections within a section to be in a single page (-split 0 will cause the whole document to be in a single page)
• -no_footnode causes footnotes to be included in the same page where they are referenced.
• See man latex2html for more options.