[dev-context] Re: [NTG-context] bib module: \setupcite macro
Hans Hagen
pragma at wxs.nl
Wed Nov 9 14:55:49 CET 2005
Taco Hoekwater wrote:
> This will not work. I really did need the conditional addition,
> but I want to add rather weird items that would create, e.g.,
> a commalist that looks like:
\def\robustdoifinsetelse#1#2%
{\expanded{\convertargument#1}\to\!!stringa
\expanded{\convertargument#2}\to\!!stringb
\rawdoifinsetelse\!!stringa\!!stringb}
\def\robustaddtocommalist#1#2% {item} \cs
{\robustdoifinsetelse{#1}#2\resetglobal
{\dodoglobal\edef#2{\ifx#2\empty\else#2,\fi#1}}}
\def\robustpretocommalist#1#2% {item} \cs
{\robustdoifinsetelse{#1}#2\resetglobal
{\dodoglobal\edef#2{#1\ifx#2\empty\else,#2\fi}}}
Hans
More information about the dev-context
mailing list