[texhax] basic question on LaTeX code (fwd)

Nathan Rollins nhr2 at ee.byu.edu
Thu Jul 14 19:42:51 CEST 2005

If anyone has an explanation for the error explained below I would 
greatly appreciate your help!  Thanks!


Nathan Rollins
Brigham Young University
rollins at ee.byu.edu
work: (801)422-7206

---------- Forwarded message ----------
Date: Thu, 14 Jul 2005 09:24:47 -0600 (MDT)
From: Nathan Rollins <nhr2 at ee.byu.edu>
To: Christopher W. Ryan <cryan at binghamton.edu>
Subject: Re: [texhax] basic question on LaTeX code


Thank you for your willingness to help.  In the *.cls file I'm using is 
the following definition:
\def\@xfloat#1[#2]{\ifhmode \@bsphack\@floatpenalty -\@Mii\else
  \else\@next\@currbox\@freelist{\@tempcnta\csname ftype@#1\endcsname
    \@tfor \@tempa :=#2\do
    {\if\@tempa h\advance\@tempcnta \@ne\fi
      \if\@tempa t\advance\@tempcnta \tw@\fi
      \if\@tempa b\advance\@tempcnta 4\relax\fi
      \if\@tempa p\advance\@tempcnta 8\relax\fi
  \hsize\columnwidth \@parboxrestore}

Without including the 'color' package things compile just fine.  When I 
include the color package I have problems with the first figure/table in 
my latex code.  For example, the first figure I include is:

\caption{Test design: an array of 72 8-bit incrementers}

In the log file I get these errors:

File: figs/incr72.eps Graphic file (type eps)
! Too many }'s.
\color at endbox ->\color at endgroup \egroup 
l.176 \end{figure}
? q
OK, entering \batchmode...

! LaTeX Error: \begin{document} ended by \end{figure}.

! Extra \endgroup.
<recently read> \endgroup 
l.176 \end{figure}

If I comment out that definition in the *.cls file, everything works 
properly.  I have no idea what that definition is doing that causes these 
errors, or why the color package makes it choke.  Do you know what the 
problem might be?  Thanks!


On Thu, 14 Jul 2005, Christopher W. Ryan wrote:

> I think this TEXHAX your place!  (Not that I could answer your question, 
> being just a novice too.  But I've found the people on the list to be 
> very helpful and knowledgeable.)  Ask away!

Nathan Rollins
Brigham Young University
rollins at ee.byu.edu
work: (801)422-7206

More information about the texhax mailing list