Results 1 to 4 of 4

Math Help - Lining up the equals sign on several lines of workings.

  1. #1
    Junior Member
    Joined
    Jun 2011
    Posts
    37

    Lining up the equals sign on several lines of workings.

    Hi all,

    How do I get the equals sign to line up under each other like they would when writing by hand.

    Example:

    1000x=100y
    10x=y

    Another example:

    x=10-8
    =2

    It would be nice if the equals were lined up.

    Cheers all.
    Follow Math Help Forum on Facebook and Google+

  2. #2
    MHF Contributor

    Joined
    Aug 2006
    Posts
    18,605
    Thanks
    1574
    Awards
    1

    Re: Lining up the equals sign on several lines of workings.

    [tex]\begin{align*} \cos (2x) &= \cos^2(x)-\sin^2(x) \\ &=1-2\sin^2(x) \\ &= 2\cos^2(x)-1 \end{align*}[/tex]
    gives

    \begin{align*}  \cos (2x) &= \cos^2(x)-\sin^2(x) \\   &=1-2\sin^2(x)  \\ &= 2\cos^2(x)-1  \end{align*}
    Follow Math Help Forum on Facebook and Google+

  3. #3
    Junior Member
    Joined
    Jun 2011
    Posts
    37

    Re: Lining up the equals sign on several lines of workings.

    Hi there,

    I had a little trouble getting your method to work for me. I was however able to achieve it using the tabbing environment. Once I get a bit better with LaTeX I will return to your suggested method, but for now I can carry on with the tabbing method.

    Many thanks.
    Follow Math Help Forum on Facebook and Google+

  4. #4
    MHF Contributor

    Joined
    Aug 2006
    Posts
    18,605
    Thanks
    1574
    Awards
    1

    Re: Lining up the equals sign on several lines of workings.

    Quote Originally Posted by Srengam View Post

    1000x=100y
    10x=y

    Another example:
    x=10-8
    =2
    [tex]\begin{align*} 1000x &= 100y \\ 10x &=y\end{align*}[/tex]
    \begin{align*}  1000x &= 100y \\  10x  &=y\end{align*}

    [tex]\begin{align*} x &= 10-8 \\ &=2\end{align*}[/tex]
    \begin{align*}  x &= 10-8 \\    &=2\end{align*}
    Follow Math Help Forum on Facebook and Google+

Similar Math Help Forum Discussions

  1. Vertical equals sign
    Posted in the LaTeX Help Forum
    Replies: 4
    Last Post: May 6th 2010, 10:59 AM
  2. Need some help on the workings.
    Posted in the Pre-Calculus Forum
    Replies: 3
    Last Post: January 16th 2010, 03:17 AM
  3. clarification on differential equation workings
    Posted in the Differential Equations Forum
    Replies: 2
    Last Post: October 24th 2009, 11:31 PM
  4. Lining Up Systems of Equations
    Posted in the LaTeX Help Forum
    Replies: 2
    Last Post: July 12th 2009, 12:02 AM
  5. matrices workings
    Posted in the Advanced Algebra Forum
    Replies: 0
    Last Post: November 14th 2006, 07:41 AM

Search Tags


/mathhelpforum @mathhelpforum