[texhax] Trying to find the /right/ piece of LaTeX documentation.]

Pavel Minev Penev pavpen at berkeley.edu
Fri Jul 9 19:45:47 CEST 2004


On Fri, Jul 09, 2004 at 11:16:49AM -0600, Peter Hutnick wrote:
> >\newcommand{\placefig}[2]{
[...]
> >\def\@captype{Figure}
> >\def\@captionof#1#2{{\def\@captype{#1}#2}}
[...]
> Both of the chunks of code are in my preamble.  When I do:
> 
> \placefig{
> \captionof{figure}{\caption{\label{1}The Plane.}}}
[...]
> }
> 
> LaTeX complains:
> 
>    ! Undefined control sequence.
>    <argument> ... ][s]{\marginparwidth }  \captionof
>                                                      {figure}{\caption
>    {\label ...
>    l.971 \begin
>                {figure}[htp]

I think it is quite obvious that you defined ``\@captionof'', but never
``\captionof''.

.,
-- 
Pav

http://www.againsttcpa.com/  ,.,    My type: Dvorak.
http://swpat.ffii.org/     ,``:'',
                           {o ! o}
Gain your human right of   ] -+- [  My GPG/PGP key is now available at
privacy: use cryptography!  \ ! /   x-hkp://search.keyserver.net:11371.
                             `-'
`shell$ gpg --keyserver x-hkp://search.keyserver.net:11371 --recv-key 164C028F`



More information about the texhax mailing list