Math & ScienceAlignat: number group of equations as one

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
kunigami
Posts: 9
Joined: Mon Feb 16, 2009 8:27 pm

Alignat: number group of equations as one

Post by kunigami »

Hi all,

I'd like to know if I can number all the equations in alignat as one.

The default behaviour is number each line:

Code: Select all

\begin{alignat}{3}
	a & \quad b & \quad c \\
	d & \quad e & \quad f \\
	g & \quad h & \quad i    
\end{alignat}
Researching here at the forum I found a way to number only the last equation:

Code: Select all

\begin{alignat}{3}
	a & \quad b & \quad c \notag \\
	d & \quad e & \quad f \notag \\
	g & \quad h & \quad i    
\end{alignat}
But I'd like to place the number in the middle of this group, using a more elegant way than using \notag.

Thanks!

Recommended reading 2024:

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

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

phi
Posts: 577
Joined: Tue Oct 21, 2008 8:10 pm

Alignat: number group of equations as one

Post by phi »

Use the alignedat environment instead:

Code: Select all

\begin{equation}
  \begin{alignedat}{3}
    a & \quad b & \quad c \\
    d & \quad e & \quad f \\
    g & \quad h & \quad i   
  \end{alignedat}
\end{equation}
kunigami
Posts: 9
Joined: Mon Feb 16, 2009 8:27 pm

Re: Alignat: number group of equations as one

Post by kunigami »

Exactly what I needed!

Thanks,
Post Reply