Results 1 to 3 of 3
Like Tree3Thanks
  • 2 Post By ebaines
  • 1 Post By ILikeSerena

Math Help - How to put a box around multiple equations on multiple lines?

  1. #1
    Junior Member
    Joined
    Apr 2013
    From
    Green Bay
    Posts
    68
    Thanks
    16

    How to put a box around multiple equations on multiple lines?

    I want to put one box around 5 equations where each equation is on a separate line and the equations are aligned. Also, outside of the box and on the right side of the page (sort of center from the box, say five equations I like the label to be on the same line as the third equation) I would like a tag like (EUL).

    Please help me understand the code too because simply telling me to "use BLAH BLAH BLAH" does not help me at all. Thanks.
    Follow Math Help Forum on Facebook and Google+

  2. #2
    MHF Contributor ebaines's Avatar
    Joined
    Jun 2008
    From
    Illinois
    Posts
    1,097
    Thanks
    317

    Re: How to put a box around multiple equations on multiple lines?

    Try this LaTeX code:

    \begin{matrix} \begin{array}{|l|} \hline equation_1 \\ equation_2 \\ equation_3 \\ equation_4 \\ equation_5 \\ \hline \end{array} & (EUL) \end{matrix}

    yields:

     \begin{matrix} \begin{array}{|l|} \hline equation_1 \\ equation_2 \\ equation_3 \\ equation_4 \\ equation_5 \\ \hline \end{array} & (EUL) \end{matrix}

    This is a 1x2 matrix with the first cell consisting of an array that has been defined with vertical and horizontal lines, and the second cell is the tag that you specified.
    Thanks from topsquark and HallsofIvy
    Follow Math Help Forum on Facebook and Google+

  3. #3
    Super Member ILikeSerena's Avatar
    Joined
    Dec 2011
    Posts
    733
    Thanks
    121

    Re: How to put a box around multiple equations on multiple lines?

    Alternatively:

    \boxed{ \begin{aligned} a+b &= 3 \\ a &= 5 \\ 2a+3b &= c + 3 \end{aligned} } \qquad (EUL)

    \boxed{\begin{aligned} a+b &= 3 \\ a &= 5 \\ 2a+3b &= c + 3 \end{aligned}} \qquad (EUL)

    \boxed{...} puts a box around what's between the braces.
    \begin{aligned}...\end{aligned} defines a stack of equations that are aligned.
    The & in the equation specifies where to align it.
    The \\ begins a new line for the next equation.
    And \qquad puts some spacing in.

    Latex also supports equation labels that align to the right, but that doesn't work on a forum. It works only in an actual latex document.
    Last edited by ILikeSerena; May 29th 2013 at 01:52 PM.
    Thanks from topsquark
    Follow Math Help Forum on Facebook and Google+

Similar Math Help Forum Discussions

  1. Replies: 3
    Last Post: September 13th 2012, 04:43 PM
  2. Multiple simultaneous equations
    Posted in the Advanced Algebra Forum
    Replies: 2
    Last Post: March 18th 2010, 05:57 AM
  3. multiple angle equations
    Posted in the Trigonometry Forum
    Replies: 4
    Last Post: November 23rd 2009, 10:15 PM
  4. Multiple Simultaneous Equations
    Posted in the Algebra Forum
    Replies: 12
    Last Post: October 4th 2009, 06:31 PM
  5. Parentheses spanning multiple lines?
    Posted in the LaTeX Help Forum
    Replies: 4
    Last Post: July 30th 2009, 05:56 AM

Search Tags


/mathhelpforum @mathhelpforum