It seems that endfloat and ctable are incompatible:
\documentclass[a4paper]{article}
\usepackage{endfloat}
\usepackage{ctable}
\begin{document}
\ctable[caption = Queries available, pos = H, center, botcap]{ll}
{% notes
}
{% rows
\FL
search ``by='' & purpose
\ML
abstract & search terms in the publication abstract
\\\noalign{\medskip}
author & match authors in the publication
\\\noalign{\medskip}
id.taxon & Taxon identifier number from TreeBase
\\\noalign{\medskip}
tree & The title for the tree
\LL
}
Gives the error:
! Undefined control sequence.
\\ ->\let \reserved@e
\relax \let \reserved@f \relax \@ifstar {\let \reserv...
l.21 }
Is there any way to work around this problem? Either
- an alternative to
endfloatthat works forctable, - or at least a way to make
endfloatignore thectableinstead of error?
Edit:
I'm looking for a solution that still uses ctable for the table. Ideally some option that I can set in the preamble to resolve the conflict, or create endfloat-style behavior without the endfloat package? (Editing the table itself isn't in the spirit of the endfloat package, since I could equally well move the table to the end manually, but that is not a good programmatic solution to apply over many documents.)
\newenvironment{foo}{...\begin{table}...}{...\end{table}...}; there's a command\DeclareDelayedFloatFlavor...; ctable does exactly that embedding game, so\DeclareDelayedFloatFlavor{ctable}{table}may solve your problem. – wasteofspace Jun 27 '12 at 9:56\DeclareDelayedFloatFlavor{ctable}{table}to the preamble, which results in a different error:Runaway argument? ! File ended while scanning use of \efloat@xfloat.– cboettig Jun 28 '12 at 0:06