On Fri, Aug 09, 2002 at 04:55:51PM +1000, Terry Collins wrote:
: The Latex Companion by Goosens etal gives an example on Page 36 of how
: this can be done. The example is;
:
:
: \newcommand{\listofexamples}{\@starttoc{loe}}
: \newcommand{\pcaption}[1]{\addcontentsline{loe}{example}{#1}}
: \newcommand{\l@example}[2]{\par\noindent#1 {\itshape #2}}
:
:
: Unfortunately, something is wrong with the above and latex puts out this
: message that I haven't been able to fathom out.
: ...................................................................
:
: ! LaTeX Error: Command \l already defined.
: Or name \end... illegal, see p.192 of the manual.
:
: See the LaTeX manual or LaTeX Companion for explanation.
: Type H <return> for immediate help.
: ...
:
: l.35 ...example}[2]{\par\noindent#1 {\itshape #2}}
:
: ?
:
: ........................................
:
: Clue sticks gratefully accepted {:-).
Did you do this inside a .sty or .cls file (or whatever extension they
now use), or did you do inside your .tex or .ltx file?
Check out \makeatletter.
--
Christopher Vance
--
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug