Some people have asked about how to add multiple paragraphs (when \intertext and \shortintertext no longer work), a fix was proposed by Peter Grill here:

He wrote:

My first thought was to hack apart the result of an align and dole out the lines one-by-one wherever you want them. Alas, align produces a list of considerable complexity and it is not worth the effort to unravel it (if that's even possible).

So I made my own alignment environment that, as far as I can tell, does what you'd want align* to do but produces a very simple list. My macro \ALineAgain then picks that list apart and drops the lines one at a time wherever you ask.

Because the lines are not printed where the alignment is actually given, it makes no sense to have an AlignAgain*; it never prints equation numbers. Instead, the \ALineAgain macro takes a star that suppresses the addition of an equation number.

The problem with this code is that the equation numbers seem to be messed up once you try referencing them. Below, I've added only a few lines to Peter's code (notably: \numberwithin{equation}{section}, two section commands, and then a single line at the very end that attempts to reference the two equations).

Rather than printing (1.1) and (1.2), it prints (1.1) and (1.1). There seems to be something wrong with the equations portion of the code. Can anybody spot the problem?

% \usepackage{showframe}


% It's like {align}, but simple!
 \tabskip 0pt plus 1fil\relax
  &\hfil$\displaystyle ##$\tabskip 0pt\relax
  &$\displaystyle {}##$\hfil\tabskip 0pt plus 1fil\relax\cr

% Saves its contents typeset like SimpleAlign.  You can give it a name.
 \expandafter\let\expandafter\AlignAgainBox\csname #1\endcsname

% Prints the lines from {AlignAgain} one-by-one, with or without equation numbers as starred.  If you named the {AlignAgain}, use it here.
 \expandafter\let\expandafter\AlignAgainBox\csname #1\endcsname

% Reboxes a box in the format: {[1][2]...[n]} -> {[1]{[2]{...}[n]}}
% {...} = \hbox
 % To enter internal vertical mode, where \lastbox is valid
   %\box0 is the box currently at the end of #1

% Puts the first box in a nested-box list into the display, saving the rest back in #1
% Optionally places an equation number
 \hbox to \displaywidth{%


\section{First section}
\subsection{A subsection}
 a &= b & c &= d \label{firsteqn} \\
 f(x) &= g(x) & h(x) &= e^{-1/x^2} \label{myeqn} \\

This is a paragraph with a lot of redundant words whose only purpose is to extend it onto a new line or two so it's dramatic when I display this equation:
and then follow it with a bunch more text.

And also a new paragraph, just for good measure.  I wonder if the two equations will line up?  I sure hope so!
This is sort of fun. 

Can we reference equations by section? Try (\ref{firsteqn}) and (\ref{myeqn}).

  • Just came across this for the first time. FYI, above quote is by Ryan Reich, not me... Jul 12, 2016 at 0:50

1 Answer 1


enter image description here

There's no problem in having multiple paragraphs in \intertext you just can't have a \par or blank line, \endgraf is OK though:


\def\a{One two three four. }

para 1 \stuff
Followed by para 2 \stuff}

  • 1
    This works very well, so I've accepted the answer. However, can you add in a word (for future reference by others) as to why \endgraf works within the intertext?
    – TSGM
    Jun 14, 2012 at 15:21
  • 1
    The primitive check on "runaway arguments" built into TeX really checks for tokens called \par so LaTeX (following Plain TeX) defined \endgraf by \let\endgraf\par so it is the same as \par but with a different name. Jun 14, 2012 at 16:09

You must log in to answer this question.

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