1

I'm trying to get a name for the equation (AA) in the same line. Unfortunately it appears one line below.

\usepackage{amsmath}
\usepackage{amssymb}

% 
 \begin{eqnarray*}
 x  & \geq & y+z \\
 \Leftrightarrow x -z & \geq & y  \end{eqnarray*}  \hfill (AA)
 %

But I want the AA to occur in the same line as the last equation. Can someone tell me how to get this result? Many thanks in advance!

1
  • Welcome to TeX.SX! Please help us (and also you) and add a minimal working example (MWE), that illustrates your problem. Reproducing the problem and finding out what the issue is will be much easier when we see compilable code, starting with \documentclass and ending with \end{document}.
    – Bobyandbob
    Jun 9 '17 at 15:02
2

Don't use eqnarray. Use the align environment from the amsmath package, and use the \tag command for the custom label.

\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{align}   
 x  & \geq  y+z \nonumber \\ 
 \Leftrightarrow x -z & \geq  y \tag{AA}
\end{align}
\end{document}

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.