# [tex4ht] (no subject)

William F Hammond gellmu at gmail.com
Fri Mar 29 00:44:26 CET 2013

nma writes:

==================================================
When generating HTML from this file
----------------------
\documentclass{article}%
\usepackage{hyperref}
\begin{document}
$% \begin{tabular}[c]{|l|}\hline \href{http://www.google.com}{web site}\\\hline \end{tabular}$
\end{document}
----------------------
using the command
htlatex foo.tex
the generated HTML file has an image of the table, hence
the link is lost and one can't click on it. This is the html generated.

One can see that the table is a png image.
==================================================

That is because the tabular environment has been enclosed in
a displaymath environment ($...$), and htlatex converts math to images.
Instead enclose the tabular environment in a "center" environment,
i.e., \begin{center} ... \end{center}.

-- Bill

P.S.  This is an excellent example of why formally profiled LaTeX is a
good idea.  Under a normal profile tabular would not be allowed in
displaymath.  See my talk at TUG 2010
http://www.tug.org/tugboat/tb31-2/tb98hammond.pdf

--
William F Hammond
http://www.albany.edu/~hammond/
Email: gellmu at gmail.com