[texhax] \hline in align environment

Nina Mazumdar nina.mazumdar at gmail.com
Wed Jan 7 05:32:46 CET 2009


On Wed, Jan 7, 2009 at 1:51 AM, Sebastian Canagaratna
<s-canagaratna at onu.edu> wrote:
> Thank you for your suggestion. There are, in fact, only two columns, and
> I was using three. It is interesting that all solutions that have been
> suggested are not latex solutions, since \phantom, \multispan, \rlap etc
> are used in tex, but not usually in latex. The closest I could come
> toward a purely latex solution was this:
>
> \begin {align*}
>      4x+  6y -2z &= -4\\
>       x -y +2z   &=  9\\[-0.15in]
>       \makebox[.8in]{\hrulefill}&\makebox[0.4in]{\hrulefill}\\
>     5x + 5y    &= 5\\
>        x + y &= 1
>  \end {align*}
>
> The disadvantage with this is that  one has to experimentally determine
> the lengths.

How about this?

\begin {align*}
       4x+  6y -2z &= -4\\
        x -y +2z   &=  9\\[-1.4 ex]
       \cline{1-2}
        5x + 5y    &= 5\\
         x + y &= 1
 \end {align*}


Happy TeXing and best regards
-- 
Nina


More information about the texhax mailing list