Math & ScienceAdjusting equation numbering

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
lnsam22
Posts: 28
Joined: Thu Jan 13, 2011 6:47 pm

Adjusting equation numbering

Post by lnsam22 »

Hi! to anyone who can help.
I'm currently writing up a paper and whenever I have a long equation the number of that equation automatically ends up in line with its first line (see code below).

I would like to set it so that the equation number prints in line with the final line of the equation. Can anyone help? It'll be super greatly appreciated.

Code: Select all

\documentclass[a4paper]{article}%

\usepackage{amsmath}%
\usepackage{amsfonts}%
\usepackage{amssymb}%

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\begin{document}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{align}
\frac{\partial}{\partial t_1}G_{s_1s_2}(x_1,x_2) &= \left( \frac{\nabla^2}{2m} + \mu \right)G_{s_1s_2}(x_1,x_2) +\delta_{s_1s_2}\delta(\textbf{r}_1-\textbf{r}_2)\delta(t_1-t_2) \\
\nonumber
&-g\left<T_t \left[\psi^\dag_{s_3}(x_1)\psi_{s_3}(x_1)\psi_{s_1}(x_1)\psi^\dag_{s_2}(x_2)\right]\right>
\label{negf19}
\end{align}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\end{document}
Last edited by lnsam22 on Wed Feb 09, 2011 7:04 pm, edited 1 time in total.

Recommended reading 2024:

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

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

Frits
Posts: 169
Joined: Wed Feb 02, 2011 6:02 pm

Adjusting equation numbering

Post by Frits »

You should call the '\nonumber' command before the linebreaking with '\\'

So

Code: Select all

\begin{align}
\frac{\partial}{\partial t_1}G_{s_1s_2}(x_1,x_2) &= \left( \frac{\nabla^2}{2m} + \mu \right)G_{s_1s_2}(x_1,x_2) +\delta_{s_1s_2}\delta(\textbf{r}_1-\textbf{r}_2)\delta(t_1-t_2) \nonumber \\
&-g\left<T_t \left[\psi^\dag_{s_3}(x_1)\psi_{s_3}(x_1)\psi_{s_1}(x_1)\psi^\dag_{s_2}(x_2)\right]\right>
\label{negf19}
\end{align}
howtoTeX.com - Your LaTeX resource site (Tips, Tricks, Templates and more!)
Follow howtoTeX on twitter
Montag
Posts: 340
Joined: Wed Jul 15, 2009 9:25 am

Re: Adjusting equation numbering

Post by Montag »

Since you are using amsmath, you could also use the aligned-environment.
OS: Win 7 64-bit LaTeX: MikTeX 2.9 64-bit Editor: TXC 1 RC1
lnsam22
Posts: 28
Joined: Thu Jan 13, 2011 6:47 pm

Re: Adjusting equation numbering

Post by lnsam22 »

Wow! that was easy. Thanks :)
Post Reply