[texhax] Trying to find the /right/ piece of LaTeX documentation.]
Mohamed HOUSSNI
houssni at e-press.co.ma
Fri Jul 9 20:11:32 CEST 2004
Pavel Minev Penev a écrit :
>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''.
>
>.,
>
>
Yes of course I made an error
it's: \def\captionof#1#2{{\def\@captype{#1}#2}}
instead of: \def\@captionof#1#2{{\def\@captype{#1}#2}}
--
Dr. Mohamed Houssni
Assistant d'Edition
e-Press,
Casablanca Technopark
20100 Casablanca - Maroc
Phone : 212 (0)22 52 58 00
Fax : 212 (0)22 21 42 21
More information about the texhax
mailing list