my Latex and Tex4ht cheat sheet
my Latex cheat sheet - 12000.org
my Latex cheat sheet - 12000.org
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
cd $HOME<br />
tree texmf<br />
texmf<br />
|___+ scripts<br />
|___lua<br />
|___make4ht-master<br />
|-- lapp-mk4.lua<br />
|-- make4ht<br />
|-- make4ht-lib.lua<br />
|-- mkparams.lua<br />
|-- mkutils.lua<br />
|-- README.md<br />
4. make sure you have convert, if not do sudo apt-get install imagemagick<br />
5. make sure you have lua, if not do sudo apt-get install lua5.2 (may be not needed)<br />
6. the comm<strong>and</strong> to build latex to html is<br />
make4ht foo.tex "nma.cfg,htm,charset=utf-8" " -cunihtf -utf8"<br />
"-dfoo"<br />
where nma.cfg is currently here nma.cfg<br />
7. in the latex files, I include one file in the preamble which has all the packages to use. Here it is<br />
commonlatex.tex<br />
8. example latex file will then be as this<br />
\documentclass[]{article}<br />
\input{commonlatex}<br />
\begin{document}<br />
\end{document}<br />
9. when first installing, need to fix tex4ht.env so that .png images are better quality. See http://tex.<br />
stackexchange.com/questions/43772/latex-xhtml-with-tex4ht-bad-quality-images-of-equations<br />
Use the by erasing the space before it <strong>and</strong> add space before the section.<br />
71