[comp.text.tex] Display Math in figure bug

mconlon@holly.stat.ufl.edu (Mike Conlon) (05/17/91)

We have recently installed TeX3.14t3 and have noticed that figures
containing display math are now treated incorrectly in LaTeX 2.09
(24 May 89), article style (16 Mar 88).

Any attempt to use display math in a figure results in the display
math being typeset in place, not in a floating figure. The \begin{figure}
is ignored, and any \caption, and \label are also ignored. That is,
no entry is made in the list of figures, and references to the label remain
undefined since no \newlabel is written to the aux file.

A simple example illustrating the problem is given below:


\documentstyle{article}
\begin{document}
Figure \ref{f:nomath} is okay.
\begin{figure}
This is a no math figure.
\caption{\label{f:nomath} No-math figure.}
\end{figure}
Figure \ref{f:math} is a problem.
\begin{figure}
$$
f(x)=x^2
$$
\caption{\label{f:math} Math figure.}
\end{figure}
What do you think of that?
\end{document}


Display math in figures worked fine in TeX 2.991/LaTeX 2.09.

Has anyone seen this problem? Is there a patch to either TeX or
LaTeX that corrects this?


-- 
Michael Conlon                  
Department of Statistics               
University of Florida