[texhax] Quick question on \hline
Philip G. Ratcliffe
philip.ratcliffe at fastwebnet.it
Wed Aug 2 12:15:13 CEST 2006
> 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?
Luckily, my crystal ball just came back from the cleaners, so I had no
problem realising you're using the tabularx package ;^).
Try this, it may be sufficient for your purposes:
\begin{tabular*}{\textwidth}
{l>{$}l<{$}>{$}l<{$}}
\\
\hline\\
. . .
\\
\hline\\
\end{tabular*}
More information about the texhax
mailing list