I have the following test case:
\documentclass[12pt]{article}
\usepackage{amsmath}
\begin{document}
\section{Test}
\paragraph{Group A:}
\begin{align*}
E &= mc^2\\
E &= \hbar\omega
\intertext{\paragraph{Group B:}}
F &= ma\\
F &= mv\frac{dv}{dx}
\end{align*}
\end{document}
I would expect this to produce the paragraph title "Group A:", followed by two energy expressions, followed by the paragraph title "Group B:", followed by two force expressions.
When I use two align* blocks instead of intertext then this works, but in my actual document (where the equations are more complicated), the equations are obviously not aligned across the blocks.
If I remove the \paragraph from the \intertext, then I get the expected result (but the "Group B:" text is obviously not formatted as I want).
The specific output that I get from TexMaker looks as follows:
Log:
LOG FILE :
This is pdfTeX, Version 3.1415926-1.40.10 (MiKTeX 2.8) (preloaded format=pdflatex 2013.7.16) 16 JUL 2013 15:42
(etc)
Output:
1 Test
Group A:
E = mc²
E = hw
Group A:
F = ma
F = mv dv/dt
Group A:
...which is obviously not what I want!
Solution (thanks to egreg):
Prelude:
\newcommand{\group}[1]{\noalign{\noindent\textbf{#1}}}
Document:
E &= mc^2\\
E &= \hbar\omega\\
\group{Group B:}\\
F &= ma\\
F &= mv\frac{dv}{dx}

\paragraph, in my opinion. Why not just\noindent\textbf{Group A:}? – egreg Jul 16 '13 at 14:51\paragraphs and twoalign*blocks. I'll try that\noindent\textbfway now. Thanks! – Mark K Cowan Jul 16 '13 at 14:53\paragraphis actually the name for the sectional level below\subsubsection. You can define your own macro, say\newcommand{\group}[1]{\par\noindent\textbf{Group #1:}}and use\group{A}instead of specifying formatting instructions in the document. – egreg Jul 16 '13 at 14:55\noalignworked! Thanks! – Mark K Cowan Jul 16 '13 at 14:56\paragraph? -- ah just seen your answer, thanks! – Mark K Cowan Jul 16 '13 at 15:05=. – Mark K Cowan Jul 16 '13 at 15:13