1

Is there a way to flush some equation lines to the left and flush other linesto the right?

In the following example, I want the first line to be flushed to the left, while the second line to be flushed to the right so that neither line is cropped while still utilizing the full width of the paper.

\documentclass{article}
\usepackage{amsmath}
\usepackage{lipsum}

\begin{document}
\begin{align*}
  \text{\lipsum[1][1]}\\
  &&=\text{\lipsum[1][1]}\\
\end{align*}
\end{document}

I also tried using flalign but could not achieve this result.

1
  • I have math symbols rather than lipsum, I just use it as a placeholder instead of writing random math characters until I reach the needed width. I could break the equation into two math environments and use your suggestion, but this would be problematic when labelling the equation.
    – Tohiko
    Jul 28, 2022 at 11:27

1 Answer 1

1

That's what multline is for:

enter image description here

\documentclass[twocolumn]{article} % twocolumn for smaller snapshot

\usepackage{amsmath}

\begin{document}

Text text text text text text text text text text
text text text text text text text text text text
\begin{multline*}
a+b+c+d+e+f+g+h\\i+j+k+l+m+o+p+q
\end{multline*}
Text text text text text text text text text text
text text text text text text text text text text

\end{document}

enter image description here

1
  • Image of text should be avoided. References, however, are encouraged.
    – Gqqnbig
    Jun 1, 2023 at 8:05

You must log in to answer this question.

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