[dev-context] error in setuplist[alternative=command]

luigi scarso luigi.scarso at gmail.com
Thu Jan 26 20:20:04 CET 2012


On Thu, Jan 26, 2012 at 6:16 PM, Wolfgang Schuster <
schuster.wolfgang at googlemail.com> wrote:

>
> Am 26.01.2012 um 16:59 schrieb luigi scarso:
>
> > \def\ChapterCommand#1#2#3{#1 #2 #3}%
> > \setuplist[chapter]
> >         [alternative=command,
> >        command=\ChapterCommand]
> > \starttext
> > \placecontent
> > \startpart[title=aaa]
> > \startchapter[title=bbb]
> > \startsection[title=ccc]
> > \input knuth
> > \stopsection
> > \stopchapter
> > \stoppart
> > \stoptext
> >
> > ! Argument of \ChapterCommand has an extra }.
>
> Write \unexpanded\def\…
>
> Wolfgang


hm, doesn't break compatibility ?
Also in strc-doc.mkiv
% We can access the (stored) data with the following macros.
%
% \def\MyHeadCommand  #1#2{\framed{#1}\framed{#2 /
\structureuservariable{subtitle}}}
%
\def\MyListCommand#1#2#3{\externalfigure[\structurelistuservariable{figure}][height=5mm]#2}
%
% \setuphead[chapter][command=\MyHeadCommand]
% \setuplist[chapter][alternative=command,command=\MyListCommand]

-- 
luigi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.ntg.nl/mailman/private/dev-context/attachments/20120126/40ae4227/attachment.html>


More information about the dev-context mailing list