[dev-context] Re: [NTG-context] bib module: \setupcite macro

Hans Hagen pragma at wxs.nl
Wed Nov 9 14:08:08 CET 2005


Taco Hoekwater wrote:

> Hi Hans,
>
> Can you please give me some info on this?
>
> (resent from a mail I sent last two weeks ago)

the problem is in a tets for presense:

\long\def\p!doifinstringelse#1#2% ##2 can be {abc}
  {\long\@EA\def\@EA\pp!doifinstringelse\@EA##\@EA1#1##2##3\war % expand 
#1 here
     {\unless\if##2@}%
   \expanded{\pp!doifinstringelse#2#1}@@\war} % expand #2 here

(here the { } spoil the arg def)

i'll provide (probably ok for this situation):

\def\alwaysaddtocommalist#1#2% {item} \cs
  {\dodoglobal\edef#2{\ifx#2\empty\else#2,\fi#1}}

(typically something that we can do better in luatex -)

Hans


More information about the dev-context mailing list