w &z &t
w+w+w+w &z+z+z+z &t+t+t+t

On their own, these are going to have differently aligned columns. Is there a way to keep at least some of the alignment across different align environments the same?

  • 3
    You can use \intertext{<text>} to interrupt an align environment. Is this what you want or do you want to align equations that are very far apart? Commented Jan 2, 2019 at 23:57
  • I have already used for some text, but I want different align environments for completely different text sections, though I want the equation alignment to remain consistent.
    – user14554
    Commented Jan 3, 2019 at 0:00
  • 1
    @user14554: So you have a "big piece of text" between the two alignments?
    – Werner
    Commented Jan 3, 2019 at 0:00
  • I have two large and distinct text sections with their own titles and such yes. I do not want them altered and intertext will not solve anything. As far as I know there is possibly some way to use fleqn.
    – user14554
    Commented Jan 3, 2019 at 0:01
  • I'm sure there's a way to use fleqn and subequations, I just haven't found it yet.
    – user14554
    Commented Jan 3, 2019 at 0:25

1 Answer 1


If you're unable to use \intertext, you need to identify the widest element around each alignment. And the easiest way to capture these "widest elements" is using eqparbox. Below I define \eqmathbox[<tag>][<align>]{<stuff>} that puts its contents <stuff> in a box of widest width across all of the same <tag> with a specific <align>ment.

enter image description here



% https://tex.stackexchange.com/a/34412/5764
\NewDocumentCommand{\eqmathbox}{o O{c} m}{%


  \eqmathbox[left][r]{w} &\eqmathbox[centre][l]{z} & \eqmathbox[right][r]{t}
  \eqmathbox[left][r]{w+w+w+w} & \eqmathbox[centre][l]{z+z+z+z} & \eqmathbox[right][l]{t+t+t+t}


The alignment choice matches that of the R&L & R&L ... style of align.

Since eqparbox uses TeX's \label-\ref-like system in order to manage the lengths, you'll need to compile at least twice with every change in the widest element per <tag>.

You must log in to answer this question.

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