Using {ieee}[2000/01/11].cls (via Formatting IEEE Papers in LaTeX2e), I have a problem with the following minimal code (which builds fine for \documentclass{article} - using pdflatex to compile):
\documentclass[%
%draft,
%submission,
%compressed,
%final,
%
%technote,
%internal,
%submitted,
%inpress,
%reprint,
%
%titlepage,
notitlepage,
%anonymous,
narroweqnarray,
inline,
%twoside,
]{ieee}
% \documentclass{article}
\usepackage{xcolor}
\usepackage{graphicx}
\usepackage{hyperref}
\usepackage{cite}
\usepackage{caption}
\begin{document}
Test ...
\begin{figure}
\end{figure}
\end{document}
It fails with:
! Too many }'s.
\color@endbox ->\color@endgroup \egroup
l.33 \end{figure}
? X
No pages of output.
Transcript written on test.log.
This error is discussed in LaTeX Community • View topic - color package incompatible with figures?, and indeed, ieee.cls does define \@xfloat - but I'm trying the following things:
\makeatletter
% \undef\@xfloat % no work :)
% http://joonidea.blogspot.com/2010/04/how-to-undefine-command-in-latex.html
% \let\@xfloat\@undefined % undefine \@xfloat
% no work, fails with:
%% ! Undefined control sequence.
%% \@xfloat #1[#2]->\caption@ORI@xfloat
%% {#1}[#2]\caption@settype {#1}
%% l.49 \end
%% {figure}
% http://www.latex-community.org/forum/viewtopic.php?f=4&t=507&p=1978
% the below has no effect:
% \let\latex@xfloat=\@xfloat
% \def\@xfloat #1[#2]{%
% \latex@xfloat #1[#2]%
% \def \baselinestretch {1}\@normalsize %% GT: need \@normalsize?
% \normalsize
% }
\makeatother
... but obviously, cannot get it to work.
Is it somehow possible to have \figure with this {ieee}[2000/01/11] class, such that I override its behavior in the tex file, instead of hacking the .cls file?
Many thanks in advance for any answers,
Cheers!
ieeeclass is ancient. You really should be using the currentIEEEtranclass. – Joseph Wright Sep 19 '11 at 19:33IEEEtran; but I'd still be interested in an answer to the OP, in case it turns out people insist on the "old" layout... Cheers! – sdaau Sep 19 '11 at 19:36IEEEtran:ieee.clscommands like\authorinfoor\journalare not present inIEEEtran, which also ignores the\documentclass[...]arguments as given above (and insists on twocolumn layout). – sdaau Sep 19 '11 at 19:45\documentclass[12pt,onecolumn]{IEEEtran}. Moreover, as far as I know, all IEEE journals are converted toIEEEtranclass maybe except the IEEE computer society and other few journals. So whoever is forcingIEEE.cls, simply does not follow IEEE regulations. – percusse Sep 19 '11 at 20:28ieee.clsto be forced! Cheers! – sdaau Sep 19 '11 at 20:37ieee.clshas passed and you shouldn't spend your precious effort on obsolete tools. – percusse Sep 19 '11 at 20:46