[dev-context] error in setuplist[alternative=command]
luigi scarso
luigi.scarso at gmail.com
Fri Jan 27 02:39:41 CET 2012
On Thu, Jan 26, 2012 at 8:33 PM, Wolfgang Schuster <
schuster.wolfgang at googlemail.com> wrote:
>
> Am 26.01.2012 um 20:20 schrieb luigi scarso:
>
> > 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]
>
> I think it’s better to write the commands above as
> \define[2]\MyHeadCommand{…}
> and \define[3]\MyListCommand{…} and make all with \define generated
> commands
> unexpanded.
>
> Wolfgang
Hm, I don't know.
\def\MyListCommand#1#2#3
looks simpler.
--
luigi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ntg.nl/pipermail/dev-context/attachments/20120127/dad95cdb/attachment.htm>
More information about the dev-context
mailing list