A simple latex document with a simple CSS stylesheet that looks good in both PDF and HTML form.
- HTML : http://huyng.github.io/latex-simple-css/
- PDF : http://huyng.github.io/latex-simple-css/example.pdf
- pdflatex - for converting LaTex to PDF
- htlatex - for converting LaTex to HTML
You can get both programs on Mac OSX by installing the MacTex Distribution
# build html
make html
# build pdf
make pdf
# build both
make
# remove auxillary files
make rmaux
# remove all build output
make clean
You can modify all custom styling for the HTML output of htlatex in custom.css . It is appended to the base CSS file generated by htlatex during the document build.