[***SPAM***] Custom TOC problem
Hi, this is the first time I am writing here so let me just say a big THANK YOU for all the awesome work everyone is doing. Now, to the point. I have been trying to customize table of contents with my own commands, yet I get an error that might be from within ConTeXt. The cutomary minimal example follows: \define[3]\M{#3 some #2 magic #1} \setuplist[section][alternative=command,command=\M] \starttext \section{A} \completecontent \stoptext and the error from the log: ConTeXt ver: 2012.03.30 16:16 MKIV fmt: 2012.4.2 int: english/english ............ ! Argument of \M has an extra }. Best regards Michał Goliński
Hi Michał, Am 02.04.2012 um 11:57 schrieb Michał Goliński:
Hi,
this is the first time I am writing here so let me just say a big THANK YOU for all the awesome work everyone is doing.
Now, to the point. I have been trying to customize table of contents with my own commands, yet I get an error that might be from within ConTeXt. The cutomary minimal example follows:
\define[3]\M{#3 some #2 magic #1} \setuplist[section][alternative=command,command=\M]
\starttext \section{A} \completecontent \stoptext
and the error from the log:
ConTeXt ver: 2012.03.30 16:16 MKIV fmt: 2012.4.2 int: english/english
............
! Argument of \M has an extra }.
Best regards Michał Goliński
I use this: \unexpanded\def\M#1#2#3{#3 some #2 magic #1} \setuplist[section][alternative=command,command=\M] \starttext \section{A} \completecontent \stoptext Steffen
participants (2)
-
Michał Goliński
-
Steffen Wolfrum