[texhax] Quick question on \hline
Herbert Voss
Herbert.Voss at alumni.TU-Berlin.DE
Wed Aug 2 10:47:46 CEST 2006
James Smith wrote:
> as advised, I'm using the \tabular environment for my psuedo code
> listings which works fine. I want to enclose each listing with a
> horizontal line that goes right across the page. I've tried this...
>
> \begin{tabular}
> {l>{$}l<{$}>{$}l<{$}}
> \\
> \hline\\
> .
> .
> .
> \\
> \hline\\
> \end{tabular}
>
> ...but the hline only goes as far across as the code itself, not all the
> way across.
>
> Is there a way around this?
\begin{tabular*}{\linewidth}
{@{}l>{$}l<{$}>{$}l<{$}@{}}
\\
\hline\\
.
.
.
\\
\hline\\
\end{tabular*}
Herbert
--
http://PSTricks.de/
http://TeXnik.de/
http://www.dante.de/CTAN/info/math/voss/mathmode/Mathmode.pdf
http://www.dante.de/faq/de-tex-faq/
http://www.tex.ac.uk/cgi-bin/texfaq2html?introduction=yes
More information about the texhax
mailing list