13.11.2015 Views

my Latex and Tex4ht cheat sheet

my Latex cheat sheet - 12000.org

my Latex cheat sheet - 12000.org

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

\Css{table {<br />

border-collapse: collapse;<br />

border-spacing: 0;}}<br />

\Css{h4,h5 ,h6,h3,h2{<br />

margin-bottom:5px;<br />

margin-top:5px;<br />

}}<br />

\Css{p.indent{ text-indent: 0em; }}<br />

\EndPreamble<br />

3.11 how to use tikz picture with math in htlatex?<br />

Assuming the latex file is foo2.tex<br />

\documentclass{article}<br />

\ifdefined\HCode<br />

\def\pgfsysdriver{pgfsys-tex4ht.def}<br />

\fi<br />

\usepackage{tikz,graphicx}<br />

%<br />

\usetikzlibrary{trees}<br />

\begin{document}<br />

\begin{tikzpicture}<br />

\node {root}<br />

child {node {$\frac{a}{b}$}};<br />

\end{tikzpicture}<br />

\end{document}<br />

The file is compiled as<br />

htlatex foo2.tex "<strong>my</strong>.cfg,charset=utf-8" " -cunihtf -utf8"<br />

where <strong>my</strong>.cfg is<br />

\Preamble{xhtml,mathml}<br />

\Configure{VERSION}{}<br />

\Configure{DOCTYPE}{\HCode{\Hnewline}}<br />

\Configure{HTML}{\HCode{\Hnewline}}{\HCode{\Hnewline}}<br />

\Configure{@HEAD}{}<br />

\Configure{@HEAD}{\HCode{\Hnewline}}<br />

\Configure{@HEAD}{\HCode{\Hnewline}}<br />

\Configure{@HEAD}{\HCode{\Hnewline}}<br />

\Configure{@HEAD}{\HCode{\Hnewline}}<br />

\Configure{@HEAD}{\HCode{\Hnewline<br />

.MathJax_MathML {text-indent: 0;}\Hnewline<br />

\Hnewline}}<br />

\begin{document}<br />

\EndPreamble<br />

65

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!