[texhax] Question about caption package and esp. \captionof

Peter Flom flom at ndri.org
Mon Jun 7 15:17:23 CEST 2004


Hello again

Sorry to keep asking questions.....I do try to solve these on my own
before posting.....

Using LiveTex and WinEdt on a Windows machine.

I am having trouble with placement of floats, because I have a lot of
graphics in a document.  Then, in the LaTeX companion (2nd ed) I read
that a) This isn't uncommon and b) There is a package {caption} that can
put captions on nonfloating figures.  Seemed worth a shot.

So, in my preamble I put

\usepackage{caption}[2004/15/16]

and in my \mainmatter

\begin{center}
\fbox{\includegraphics[scale = .6]{pie}}\\
\captionof{figure}{Pie chart of race-ethnicity}
\label{F:pierace}
\end{center}

When I run it, I get an error that there is an undefined control
sequence

I checked the .pdf file for this package, but did not find anything
about such an error.

Any help, as always, appreciated

Peter

Peter L. Flom, PhD
Assistant Director, Statistics and Data Analysis Core
Center for Drug Use and HIV Research
National Development and Research Institutes
71 W. 23rd St
www.peterflom.com
New York, NY 10010
(212) 845-4485 (voice)
(917) 438-0894 (fax)




More information about the texhax mailing list