\hline used outside a tabular - not allowed
Brought to you by:
starselbrg
It seems that html2latex translates <hr> to \hline. But some LaTeX installations choke on this. Apparently, \hline is for use only within the tabular environment.
http://groups.google.com/groups?hl=en&lr=&safe=off&ic=1&th=a5eaa237998393eb&thn=Horizantal+line%3F&seekd=957073592#957073592
describes the same problem as I had with the code that html2latex generated. The fix is to use
\rule{\linewidth}{1pt}
instead of \hline. I can confirm that this works.
Logged In: NO
\rule{\linewidth}{1pt} works, but doesn't look so good. If LaTeX
thinks it's in a new paragraph, it'll indent the line, which looks
ugly. I have found that the following works:
\begin{center}
\begin{tabular*}{.85\textwidth}{c} % or linewidth?
\hline
\end{tabular*}
\end{center}
Since it chokes on \hline while not in a tabular environment, put it
in a tabular environment. This also leaves a nice space above
and below the line.