2

I consider these simple MWE

\documentclass[12pt,leqno]{article}
\usepackage{amsmath}
\begin{document}
\begin{equation}
     x^n + y^n = z^n
\end{equation}
\end{document}

With the option leqno we know that LaTeX puts the progressive number of the equation on the extreme left. With the option reqno at the extreme right of the page.

\documentclass[12pt,reqno]{article}
\usepackage{amsmath}
\begin{document}
\begin{equation}
     E=mc^2
\end{equation}
\end{document}

But when I have, for example a code with align option, knowing that the number can be either on the first or second equation, how come the leqno option is not active and the number is always put on the right?

enter image description here

\documentclass[12pt,leqno]{article}
\usepackage{amsmath}
\begin{document}
\begin{align}
a &= b+c \nonumber\\
e &= f+g
\end{align}
\end{document}

enter image description here

  1. How do I put the number of the equation between the two equations in the middle or at left or at right?
  2. Are there only leqno and regno options with LaTeX? But is there, for example, the ceqno option, i.e. the possibility of placing the number next to the equation (at the centre to be clearer) or that it is always at the centre but in the middle of the two equations?
5
  • 2
    why do you say "how come the leqno option is not active and the number is always put on the right?" the equation number appears on the left when leqno is used. Commented Apr 28, 2019 at 20:44
  • @DavidCarlisle Why leqno is not active with align?
    – Sebastiano
    Commented Apr 28, 2019 at 20:53
  • it is active, you get the number on the left Commented Apr 28, 2019 at 20:58
  • 1
    The code is in the question not the answer so I added the image for leqno to your answer, you only showed the default right number. (there is no regno option) Commented Apr 28, 2019 at 21:09
  • @DavidCarlisle I have deleted my previous comment after your edit.
    – Sebastiano
    Commented Apr 28, 2019 at 21:10

1 Answer 1

4

If you want a single number for the display, use equation not align enter image description here

Note that there is no reqno option, equation numbers on the right is the default.

\documentclass[12pt,leqno]{article}
\usepackage{amsmath}
\begin{document}
\begin{equation}
\begin{split}
a &= b+c \\
e &= f+g
\end{split}
\end{equation}
\end{document}
6
  • But can the number (1) be placed closer to the two equations always in the middle?
    – Sebastiano
    Commented Apr 28, 2019 at 20:54
  • @Sebastiano equation numbers are always placed at the margin Commented Apr 28, 2019 at 20:58
  • @Sebastiano if you really wanted to change the margins you could use a minipage for example Commented Apr 28, 2019 at 21:00
  • I asked myself this question when I remember seeing a book of Physics in English that had the number of formulas nearby.
    – Sebastiano
    Commented Apr 28, 2019 at 21:05
  • 2
    if you surround the display with say \begin{minipage}{.5\textwidth} then the number is only moved half way across the page (although using a minipage has other issues) @Sebastiano Commented Apr 28, 2019 at 21:43

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .