Here is a quick recipe to get started:
- Get pandoc, to convert LaTeX to HTML. Run this command:
pandoc article.tex -o article.html --bibliography article.bib --mathjax
- Restore the title of the article (use
<h1>) and the author names.
- Restore figures. PDF figures can be converted into SVG images with Inkscape.
- Restore figure captions (you can use
\ref -> \labellinks (use
- Add a link to MathJax:
- Include a CSS stylesheet. You can start with this file.
Not that macros declared with
\newcommand and the
\input command are not supported by pandoc.
- Change the level of the headings (e.g.,
<h1> -> <h2>)
- HTML5: Add
<header>for the title of the article and the author list and
<footer>for the bibliography and the footnotes.
- You can change the citation style by supplying a file in CSL format to pandoc.
- Add links from references in the article to full references in the bibliography.
- In an ideal world, you could write your article directly in Markdown and use pandoc to produce both a LaTeX and an HTML version of it.