[texhax] custom \listoffigures

Philip G. Ratcliffe philipratcliffe at tiscali.it
Sun Oct 31 17:14:29 CET 2004


> No idea how \caption is defined, but if it really
> /is/ \def \caption #1#2{...}, then some typing could
> be saved, and consistency guaranteed, by the following :
>
> 	\def \Caption #1#2{\caption {#1}{#1 #2}}
>
> and thereafter
>
> 	\Caption {First sentence}{Seconda sentence}

That should presumably read

\newcommand\Caption[2]{\caption[#1]{#1 #2}}

N.B. It's not so much the use of \newcommand, as the square brackets INside
the definition of \Caption (because that's what \caption looks for.

Cordialmente,  Philip G. Ratcliffe
-----------------------------------------
Professor of Nuclear & Subnuclear Physics
Dipartimento di Fisica e Matematica
Universita degli Studi dell'Insubria
via Valleggio 11
22100 Como (CO)
Italy

Tel. +39 (039) 238.6231
Fax  +39 (039) 238.6119
Cell +39 (340) 2346580
Web  http://www.unico.it/~pgr
-----------------------------------------



More information about the texhax mailing list