0

I almost always use

\begin{equation} 
\begin{split} 
your equation here // equation in next line
\end{split} 
\end{equation}

and I get a really bad aligning in which the text is going outside the border on the right. How can I fix it?

enter image description here

5
  • 1
    Could you please add an example? Btw, it should be your equation here \\ equation in next line instead of your equation here // equation in next line.
    – user156344
    Mar 28, 2019 at 8:00
  • 2
    split is intended to use wit ampersands which determine where equation should be aligned. as far i understood your question, try to replace split with gathered.
    – Zarko
    Mar 28, 2019 at 8:49
  • Would you please add the code for the big display so that we can play with it and perhaps suggest something to get a better appearance?
    – egreg
    Mar 28, 2019 at 9:57
  • @egreg I will do it the moment I have access to my computer . Mar 28, 2019 at 11:31
  • 1
    When you are getting squeezed for space this badly, there aren't a lot of options. First, you cold move the equation number to the last line using align and \notag instead of equation and split. You should align the equstions using &= and, if not enough room, split of part off the equation using &\quad+ (for example). Mar 28, 2019 at 15:46

1 Answer 1

4

if i correctly understood your question you looking for alignment showed in the second equation:

enter image description here

\documentclass{article}
\usepackage{amsmath}

\begin{document}
\begin{equation}
\begin{split}
\text{your equation here} \\ 
\text{equation in the next line}
\end{split}
\end{equation}

\begin{equation}
\begin{gathered}
\text{your equation here} \\
\text{equation in the next line}
\end{gathered}
\end{equation}
\end{document}

if i understood you correctly than your use of split is wrong. it is intended for use in cases similar to the following:

\documentclass{article}
\usepackage{amsmath}

\begin{document}
\begin{equation}
\begin{split}
y & = \text{your equation here} \\      % observe ampersands
  & = \text{equation in the next line}  % <---
\end{split}
\end{equation}
\end{document}

enter image description here

You must log in to answer this question.

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