Math & Science ⇒ Equation numbers running out of the page
Equation numbers running out of the page
- Attachments
-
- problem2.jpg (14.79 KiB) Viewed 11619 times
-
- problem1.jpg (8.07 KiB) Viewed 11619 times
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
- Stefan Kottwitz
- Site Admin
- Posts: 10358
- Joined: Mon Mar 10, 2008 9:44 pm
Re: Equation numbers running out of the page
I recommend to break the wide equation earlier, making several lines. The other options, such as making the margins smaller or reducing the font size of the equations are probably not so good.
Stefan
Re: Equation numbers running out of the page
For problem2, is there a way to move the (18) to the right?
- Stefan Kottwitz
- Site Admin
- Posts: 10358
- Joined: Mon Mar 10, 2008 9:44 pm
Equation numbers running out of the page

I guess you don't want to see any other equation where the tag (18) is pushed to the right, but your equation with your settings.

Stefan
Re: Equation numbers running out of the page
\begin{eqnarray}
-\frac{A_0}{2}g_z + \sum_{k=-N}^N [-\frac{g_z}{2} - \frac{(\bar z_{0} + z_q)(2 \pi k f_0 )^2}{2} ] (A_k - j B_k) e^{2\pi jkf_0 t} \label{equation18} \nonumber \\
= \frac{a_0}{2} + \frac{1}{2} \sum_{k=-N}^N (a_k - jb_k) e^{2\pi jkf_0 t
\end{eqnarray}
- Stefan Kottwitz
- Site Admin
- Posts: 10358
- Joined: Mon Mar 10, 2008 9:44 pm
Equation numbers running out of the page
- There cannot be an empty line within a math environment, because this means a paragraph break for TeX.
- A closing brace is missing in the last expression
e^{2\pi jkf_0 t
So the tag is at the right, there's no problem with this code you showed, once the mentioned errors are fixed.
I strongly recommend to avoid eqnarray though, because there are known problems. Use an environment of

Stefan
Re: Equation numbers running out of the page
\begin{eqnarray}
-\frac{A_0}{2}g_z + \sum_{k=-N}^N [-\frac{g_z}{2} - \frac{(\bar z_{0} + z_q)(2 \pi k f_0 )^2}{2} ] (A_k - j B_k) e^{2\pi jkf_0 t} \label{equation18} \nonumber
= \frac{a_0}{2} + \frac{1}{2} \sum_{k=-N}^N (a_k - jb_k) e^{2\pi jkf_0 t}
\end{eqnarray}
- Attachments
-
- new problem.jpg (7.26 KiB) Viewed 11604 times
- Stefan Kottwitz
- Site Admin
- Posts: 10358
- Joined: Mon Mar 10, 2008 9:44 pm
Equation numbers running out of the page
\\
. I said remove the empty line.Stefan
- Stefan Kottwitz
- Site Admin
- Posts: 10358
- Joined: Mon Mar 10, 2008 9:44 pm
Equation numbers running out of the page
Code: Select all
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{multline}
\label{equation18}
-\frac{A_0}{2}g_z + \sum_{k=-N}^N [-\frac{g_z}{2} - \frac{(\bar z_{0} + z_q)(2 \pi k f_0 )^2}{2} ] (A_k - j B_k) e^{2\pi jkf_0 t} \\
= \frac{a_0}{2} + \frac{1}{2} \sum_{k=-N}^N (a_k - jb_k) e^{2\pi jkf_0 t}
\end{multline}
\end{document}
Stefan