3

I would like to start writing in math display mode, and then continue on the next line, from the exact same . Something like this:

abc = defg on this line
                       and i continue on the next line

This will be used inside \frac.

What would be the best way to achieve this? Preferably without using any packages (I'm sure there must be a way to get this done directly in LaTeX)...

If this were in text mode I could save the current horizontal position, then do a \newline, and then restore the position, maybe, but it's math mode.

Werner
  • 603,163
Jay
  • 2,895
  • 2
  • 27
  • 38

2 Answers2

3

This is fairly trivial to obtain with just an array:

enter image description here

\documentclass{article}

\begin{document}

\[
  \setlength{\arraycolsep}{0pt} % May be needed, depending on your requirements
  \begin{array}{ l l }
    abc = defg &       \\
               & hijkl
  \end{array}
\]

\end{document}
Werner
  • 603,163
  • Yes -- of course! An array will work just fine (I'll check if no problems arise, but I thin it's perfect). Thank you! – Jay Jul 07 '17 at 16:58
3

Quite simple with align (or aligned):

\documentclass{article}
\usepackage{mathtools}

\begin{document}

\begin{align*}
  abc = defg\text{ on this line} & \\
                        & \text{and I continue on the next line}
\end{align*}

\end{document} 

enter image description here

Bernard
  • 271,350