![](https://secure.gravatar.com/avatar/cedc4d83943006afe3994fb0a0455f82.jpg?s=120&d=mm&r=g)
Hello, again a feature request: sometimes it's useful to add a value to key, without replacing it. Example: \setupexternalfigures[directory={\figurepathlist,another/dir}] -> \setupexternalfigures[adddirectory=another/dir] Or, if there is already some background (from an environment-file for example), and you want to add another: \setupbackgrounds[page][addbackground=Draft] Cheers, Peter -- http://pmrb.free.fr/contact/
![](https://secure.gravatar.com/avatar/565476157eb3895a9c928ffce26d988d.jpg?s=120&d=mm&r=g)
Hi Peter, I am attaching t-valext.tex, a quicky module I wrote this morning that allows the use of \currentvalue in (I believe) all assignments, like so: \setupexternalfigures[directory={\currentvalue,another/dir}] Run texexec --module t-valext if you want to read the embedded documentation. Cheers, Taco Peter Münster wrote:
Hello,
again a feature request: sometimes it's useful to add a value to key, without replacing it. Example: \setupexternalfigures[directory={\figurepathlist,another/dir}] -> \setupexternalfigures[adddirectory=another/dir]
Or, if there is already some background (from an environment-file for example), and you want to add another: \setupbackgrounds[page][addbackground=Draft]
Cheers, Peter
![](https://secure.gravatar.com/avatar/49e63acb01f2ca80efce7eed08310ce8.jpg?s=120&d=mm&r=g)
Taco Hoekwater wrote:
Hi Peter,
I am attaching t-valext.tex, a quicky module I wrote this morning that allows the use of \currentvalue in (I believe) all assignments, like so:
\setupexternalfigures[directory={\currentvalue,another/dir}]
interesting, may make it into the kernel -) i wonder if this is faster: \@EA\let\@EA\currentvalue\csname\ifcsname\csname#2#3\endcsname#2#3\else\s!empty\fi\endcsname (it sometimes is faster to have everything inside the \csname) Hans
![](https://secure.gravatar.com/avatar/cedc4d83943006afe3994fb0a0455f82.jpg?s=120&d=mm&r=g)
On Thu, 3 Nov 2005, Taco Hoekwater wrote:
I am attaching t-valext.tex, a quicky module I wrote this morning that allows the use of \currentvalue in (I believe) all assignments, like so:
\setupexternalfigures[directory={\currentvalue,another/dir}]
Hello Taco, really great!! Thank you! Peter -- http://pmrb.free.fr/contact/
participants (3)
-
Hans Hagen
-
Peter Münster
-
Taco Hoekwater