I want to obtain a list of equations aligned on the left, where every equation has the labeling number on the right and it can be done by using align. However I have an equation which takes two lines and I want only one labeling number for the whole equation. How could I do? Thanks
EDIT:
\documentclass[a4paper,twoside,openright]{book}
\usepackage[utf8x]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[pdftex]{color,graphicx}
\usepackage{amsthm, amssymb, amsmath,mathrsfs}
\usepackage{caption}
\usepackage{subfig}
\usepackage{fancyhdr}
\usepackage[italian]{babel}
\usepackage{indentfirst}
\usepackage{microtype}
\usepackage{varioref}
\usepackage{hyperref}
\usepackage{comment}
\usepackage{amsmath}
\begin{document}
\begin{align}
&(\lambda_0,\lambda(t))\neq(0,0) \label{eq:nontriv}\\
&\text{Maximum principle: } u^{\ast}(t) \text { maximizes } \mathcal{H}(x^{\ast}(t),u(t),t), \text { for } u\in U \notag\\
&\text {that is } \mathcal{H}(x^{\ast}(t),u^{\ast}
(t),\lambda(t),t)\ge\mathcal{H}(x^{\ast}(t),u,\lambda(t),t) \label{eq:pmax}\\
(...etc...)
\end{align}
\end{document}
I wanted to enumerate only the first and the third line and now I got it. However I'd also like to gather the second and the third.
\notag
(or\nonumber
) instruction on the line that's not supposed to receive an equation number.\documentclass
and ending at\end{document}
, which reproduces the stuff you have yet, and showing what your problem is.amsmath
I think)