[OS X TeX] Tex4ht Problem?
Herbert Schulz
herbs at wideopenwest.com
Wed Jun 22 09:12:30 EDT 2005
Howdy,
I used to get a nicely formatted table using htlatex on the source
below. The compile options (i.e., first option list after the file
name) to compile was "html, pic-m, pic-tabular, pic-fbox" (as in the
commented out \usepackage) and it was compiled via CLI. Of course
the table and all of its contents were really graphical images but
they looked nice on the screen. Somewhere along the line things went
bad and with the latest 2005 gwTeX the image of the table isn't even
built. If I leave out the options or change $...$ to \(...\) I get
something but it's really ugly.
---------- snip ----------
%!TEX TS-program = htlatex
\documentclass[11pt]{article}
%\usepackage{tmmtmx}
%\usepackage[html, pic-m, pic-tabular, pic-fbox]{tex4ht}
\begin{document}
\noindent This is a fancy table from the \TeX Book written in \LaTeX
\ which includes mathematics within it:
\begin{center}
\setlength\fboxrule{0.7pt}%
\setlength\fboxsep{0pt}%
\newcommand\tblstrut[2][0 pt]{\rule[-#1]{0 pt}{#1}\rule{0 pt}{#2}}%
\newcommand\erf{\mathop{\mathrm{erf}}}%
\fbox{%
\begin{tabular}{l|r@{$\displaystyle{}={}$}l}
\tblstrut[9 pt]{14 pt} \textit{Name} &
\multicolumn{2}{c}{\textit{Definition}} \\
\hline
\tblstrut[15 pt]{20 pt} Gamma & $\displaystyle\Gamma(z)$ & $
\displaystyle\int_0^\infty\!\!t^{z-1}e^{-t}\,dt$ \\
\hline
\tblstrut[15 pt]{20 pt} Sine & $\displaystyle\sin(x)$ &
$\displaystyle\frac1{2i}(e^{ix} - e^{-ix})$ \\
\hline
\tblstrut[15 pt]{20 pt} Error & $\displaystyle\erf(z)$ &
$\displaystyle\frac2{\sqrt\pi}\int_0^z\!\!e^{-z^2}\,dz$ \\
\hline
\tblstrut[15 pt]{20 pt} Bessel & $\displaystyle J_0(z)$ &
$\displaystyle\frac1{\pi}\int_0^\pi\!\!\cos(z\sin\theta)\,d\theta$ \\
\hline
\tblstrut[15 pt]{20 pt} Zeta & $\displaystyle\zeta(s)$ &
$\displaystyle\sum_{k=1}^\infty k^{-s}\quad(\Re s>1)$
\end{tabular}}
\end{center}
\end{document}
---------- snip ----------
Good Luck,
Herb Schulz
(herbs at wideopenwest.com)
--------------------- Info ---------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
& FAQ: http://latex.yauh.de/faq/
TeX FAQ: http://www.tex.ac.uk/faq
List Post: <mailto:MacOSX-TeX at email.esm.psu.edu>
More information about the MacOSX-TeX
mailing list