In a two-column document with figure*
floats, where the preview
package is set up to preview floats, compilation seems to fail if the fixltx2e
package is loaded:
\documentclass[twocolumn]{article}
\usepackage{fixltx2e}
\usepackage[active,floats]{preview}
\begin{document}
\begin{figure*}Test\end{figure*}
\end{document}
The first error message seen reads:
! Extra }, or forgotten \endgroup.
\@endfloatbox ...pagefalse \outer@nobreak \egroup
\color@endbox
l.7 \begin{figure*}Test\end{figure*}
?
The error vanishes if fixltx2e
is not loaded or if the figure
environment is used.
My goal is to "preview" all figures in a two-column document, so that \linewidth
is set up correctly within the environments. What am I doing wrong? Is there a way to "fix" this while retaining fixltx2e
? Is this package needed at all in a recent LaTeX installation?
\@endfloatbox
, which is modified byfixltx2e
; the code ofpreview
relies on the original kernel definition of\@endfloatbox
. So I'm afraid it's a problem that should be solved on thepreview
side.