\chapter{\latextohtml{} bugs and peculiarities}
\label{bugs_latex2html}
During my work with \latextohtml{}, I have found some things that causes
errors in different ways, and which can be very time consuming to solve.
For the interested reader, they are listed here, together with solutions /
workarounds:
\begin{description}
\item [Tilde in URL:]
	To make a hyperlink to a URL that has a tilde in it,
	one should write ``\verb+~+'' as ``\verb+\~{}+'', e.g.
	\begin{quote}
	\begin{verbatim}
	\htmladdnormallinkfoot{my Web page}
	    {http://www.astro.ku.dk/\~{}milvang/}
	\end{verbatim}
	\end{quote}
\item [Tilde in URL for {\tt $\backslash$htmladdimg}:]
	The above only works for \verb+\htmladdnormallink+ and \linebreak
	\verb+\htmladdnormallinkfoot+, not for \verb+\htmladdimg+.
	I have not found any way to make \linebreak
	\verb+\htmladdimg+ use a URL with
	a tilde in it. A workaround is to use the following instead:
	\begin{quote}
	\begin{verbatim}
	\begin{rawhtml}
	<img src="http://www.astro.ku.dk/~milvang/RelViz/Anim/01/a000.gif">
	\end{rawhtml}
	\end{verbatim}
	\end{quote}
	Note, that when using the {\tt rawhtml} environment, a tilde
	should (of course) just be written as a tilde.
\item [Underscore in URL:]
	To make a hyperlink to a URL that has an underscore in it,
	one should write ``\verb+_+'' as ``\verb+\_+'', e.g.
	\begin{quote}
	\begin{verbatim}
	\htmladdnormallinkfoot{QuickTime}
	    {http://www.astro.ku.dk/\~{}milvang/RelViz/Anim/01/a\_over\_M.qt}
	\end{verbatim}
	\end{quote}
\item [Comments not allowed certain places:]
	The following will give the error ``Runaway argument?'':
	\begin{quote}
	\begin{verbatim}
	\begin{rawhtml} % bar
	foo
	\end{rawhtml} % bar
	\end{verbatim}
	\end{quote}
	The workaround is not to place comments (i.e.\ ``\verb+% bar+'' in the
	example) right there.
\item [Getting text centered also in the HTML version:]
	For some reason, \latextohtml{} seems to ignore the {\tt center}
	command when making the HTML version. A workaround is:
	\begin{quote}
	\begin{verbatim}
	\begin{center}
	\begin{rawhtml}
	<center>
	\end{rawhtml}
	Here goes the text to be centered.
	\begin{rawhtml}
	</center>
	\end{rawhtml}
	\end{center}
	\end{verbatim}
	\end{quote}
\end{description}
