[XeTeX] revTeX + xltxtra + figure

Arno Trautmann Arno.Trautmann at gmx.de
Sun Jun 28 09:29:07 CEST 2009


Hi all,

me again …
I have a strange error trying to compile a revTeX4-Document (for
PRL-papers, here for download:
ftp://aps.org/pub/revtex/revtex4.cls
)
using XeLaTeX and xltxtra. The following document:
––
\documentclass{revtex4}
\usepackage{
  xltxtra
%fontspec,
%xunicode
}
\begin{figure}
test
\end{figure}
\end{document}
––
gives me the output:
––
! Missing number, treated as zero.
<to be read again>
                   \aftergroup
l.35 \end{document}
––
However, using fontspec and xunicode directly instead of loading xlxtra
works fine.
Can anybody give me a hint what I am doing wrong?
Fileversions:
––
This is XeTeXk, Version 3.1415926-2.2-0.999.6 (Web2C 7.5.7)
xltxtra.sty    2008/07/29 v0.4 Improvements for the "XeLaTeX" format
––
revTeX4 redefines figure in the following way, maybe this helps:
––
\newenvironment{figure}
               {\@float{figure}}
               {\end at float}

\def\@float#1{%
 \@ifnextchar[{%}]{%Brace-matching klootch
  \@yfloat\width at float{#1}%
 }{%
  \@ifxundefined at cs{fps@#1}{%
   \edef\reserved at a{\noexpand\@yfloat\noexpand\width at float{#1}[\csname
fps@\endcsname]}\reserved at a
  }{%
   \edef\reserved at a{\noexpand\@yfloat\noexpand\width at float{#1}[\csname
fps@#1\endcsname]}\reserved at a
  }%
 }%
}%

\def\end at float{%
 \end@@float{%
  \check at currbox@count
 }%
}%
––

cheers,
Arno

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 260 bytes
Desc: OpenPGP digital signature
URL: <http://tug.org/pipermail/xetex/attachments/20090628/904b30a7/attachment.bin>


More information about the XeTeX mailing list