Math & ScienceAlignment in a multi-line Equation

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
erictamlam
Posts: 8
Joined: Sun Apr 29, 2012 7:41 am

Alignment in a multi-line Equation

Post by erictamlam »

Hi all,

I want to type an equation as attached in the image, but not sure which equation environment can achieve the exact outcome, split, align, {eqnarray}, {array}?

Anyone knows? Thanks in advance. :D
Attachments
20130107134607.png
20130107134607.png (3.4 KiB) Viewed 3723 times

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

Alignment in a multi-line Equation

Post by Stefan Kottwitz »

I would use an align environment if both equations should be numbered, align* if there should not be a number, split within an {equation} environment if both lines should get one number together.

For the expression with the brace, you could use cases.

Stefan
LaTeX.org admin
User avatar
svend_tveskaeg
Posts: 478
Joined: Sun Jul 12, 2009 5:31 am

Alignment in a multi-line Equation

Post by svend_tveskaeg »

Here is a MWE based on Stefan's suggestions.

Code: Select all

\documentclass{article}

\usepackage{amsmath}

\begin{document}

\begin{align}
A &= B\\
  &=
\begin{cases}
      C,  & \text{D},\\
\text{E}, & \text{F}.
\end{cases}
\end{align}

\end{document}
Attachments
The output.
The output.
output.jpg (5.78 KiB) Viewed 3706 times
``In the game of chess, you can never let your adversary see your pieces.''
-- Zapp Brannigan, Futurama (season 1, episode 4)
Post Reply