my Latex and Tex4ht cheat sheet
my Latex cheat sheet - 12000.org
my Latex cheat sheet - 12000.org
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
\documentclass[12pt]{article}<br />
\usepackage{fancyvrb}<br />
\begin{document}<br />
\begin{Verbatim}[frame=single,framerule=.8pt]<br />
text<br />
\end{Verbatim}<br />
\end{document}<br />
3.27 How to use tex4ht with SVG for math <strong>and</strong> images<br />
This is the best configuration to use. It makes the math use .svg for images instead of png, <strong>and</strong> also supports an<br />
includes pictures as svg.<br />
First thing is to edit tex4ht.env<br />
sudo vi /usr/local/texlive/2014/texmf-dist/tex4ht/base/unix/tex4ht.env<br />
<br />
G.png<br />
Gdvipng -T tight -x 1400 -D 110 -bg Transparent -pp %%2:%%2 %%1 -o %%3<br />
G.gif<br />
Gdvipng -T tight -x 1400 -D 110 -bg Transparent -gif -pp %%2:%%2 %%1 -o %%3<br />
G.<br />
%echo "dbg: got to dvi to png via dvipng"<br />
Gdvipng -T tight -x 1400 -D 72 -bg Transparent -pp %%2:%%2 %%1 -o %%3<br />
%--------- let's not use convert, to simplify mactex.<br />
% G.<br />
% Gdvips -Ppdf -mode ibmvga -D 110 -f %%1 -pp %%2 > zz%%4.ps<br />
% Gconvert -crop 0x0 -density 110x110 -transparent '#FFFFFF' zz%%4.ps %%3<br />
% Grm zz%%4.ps<br />
G.svg<br />
Gdvisvgm -n -p %%2 -c 1.2,1.2 -s %%1 > %%3<br />
<br />
Add in these 2 lines above.<br />
There were not there before<br />
The next step is to edit your .cfg <strong>and</strong> make it like this<br />
\Preamble{ext=htm,charset="utf-8",p-width,pic-align}<br />
\Configure{VERSION}{}<br />
\Configure{DOCTYPE}{\HCode{\Hnewline}}<br />
\Configure{HTML}{\HCode{\Hnewline}}{\HCode{\Hnewline}}<br />
78