[texhax] fbox in align environment

Sebastian Canagaratna s-canagaratna at onu.edu
Wed Jun 17 03:47:32 CEST 2009


Thanks, Krishnan, it works fine. Can it be made to work directly with
pdflatex? Right now, we'll have to get the .ps and then convert to pdf.
Not a big problem, but it would be nice, especially if one is using tikz
and pgf.


Sebastian

On Wed, Jun 17, 2009 at 06:24:06AM +0530, E. Krishnan wrote:
> On Mon, 15 Jun 2009, Sebastian Canagaratna wrote:
>
>>  Though I replied to texhax that your solution was OK, I tried the
>> following addition. I added the boxed equation a = b + c+ d, the boxing
>> being done exactly the way you did it. It turns out the start of the
>> hline is dependent on where the previous equation started, so the boxing
>> is not quite OK. Perhaps some modification is required, unless I am
>> doing it wrong.
>
> Sorry. Didn't think of these possibilities. Here's another try, this time 
> using the "pstricks" package:
>
> \newlength{\eqwd}
> \newlength{\eqht}
> \newlength{\eqdp}
>
> \newcommand{\mkeqbx}[1]{%
>   \settowidth{\eqwd}{$#1$}
>   \settoheight{\eqht}{$#1$}
>   \settodepth{\eqdp}{$#1$}
>    \addtolength{\eqwd}{2pt}
>    \addtolength{\eqht}{2pt}
>    \addtolength{\eqdp}{2pt}
>    \psframe(-2pt,-\eqdp)(\eqwd,\eqht)}
>
>
>  \begin{align*}
>     x+y+2    & = 1\\
>     2x+3y-4z & = 2\\
>     \mkeqbx{3x-2y+z=3}%
>     3x-2y+z  & =3\\
>     \mkeqbx{a=b+c+d}%
>     a & = b+c+d\\
>   \end{align*}
>
>
> Pleae check and see if I missed anything
>
>
> -- 
> Krishnan


More information about the texhax mailing list