Occasionally, the width of a minipage environment seems to be ignored. I've not kept accurate records of when this has happened. But below is purely illustrative code that shows the issue.
\documentclass[12pt]{article}
\usepackage{amsmath,calc}
\usepackage{lipsum}
\pagestyle{empty}
\begin{document}
\noindent
The next two boxes came out as I expected them to.\\[\baselineskip]
%%
\noindent
\fbox{\begin{minipage}[t]{0.4\textwidth-2\fboxrule-2\fboxsep}
The contents of the next line are too long to fit within this box.
\begin{align}
\arctan(x/a) &= \frac{1}{a} \int_0^\infty \sum_{n=0}^{\infty} \left(-t^2/a^2\right)\mathrm{d}t
\end{align}
I did not use \texttt{notag} and the width of the box has \textbf{NOT} been altered.
\end{minipage}}%
\fbox{\begin{minipage}[t]{0.6\textwidth-2\fboxrule-2\fboxsep}%
\raggedright{}
\lipsum[22]
\end{minipage}}%
\vspace{1cm}
\noindent
The first box below does not have the width I desired.\\[\baselineskip]
%%
\noindent
\fbox{\begin{minipage}[t]{0.4\textwidth-2\fboxrule-2\fboxsep}
The contents of the next line are too long to fit within this box.
\begin{align}
\arctan(x/a) &= \frac{1}{a} \int_0^\infty \sum_{n=0}^{\infty} \left(-t^2/a^2\right)\mathrm{d}t
\notag
\end{align}
I used \texttt{notag} and the width of the box has been altered.
\end{minipage}}%
\fbox{\begin{minipage}[t]{0.6\textwidth-2\fboxrule-2\fboxsep}%
\raggedright{}
\lipsum[23]
\end{minipage}}
\end{document}

Can someone please explain what's going on here? How can I force the first box of the second example to have the width I expect it to have?
minipage. I'll try to find that example to further illustrate. – A.Ellett Nov 24 '12 at 17:56alignresets the\hsizeinside the secondminipage. – egreg Nov 24 '12 at 18:04\hsizeis not changed, actually. I believe that, when a number has to be placed under the equation,alignboxes the equation at the correct width, while it doesn't bother to when no number is requested. When the\vboxconnected to theminipageis wrapped up, it takes as its width the maximum width of the boxes inside (at the first level). – egreg Nov 24 '12 at 18:09\vboxwhat width I actually want? Am I going to have to do something TeXy like\setbox0=...., and then manually set the box width with\wd0=....I hope not because that just seems prone to a huge headache (particularly when the width of the box is calculated in some complex way). – A.Ellett Nov 24 '12 at 18:33