[NTG-context] Fwd: Personalizing a PDF generated with ConTeXt

Wolfgang Schuster schuster.wolfgang at googlemail.com
Sat Mar 5 13:23:29 CET 2011

Am 05.03.2011 um 12:25 schrieb Cecil Westerhof:

> 2011/3/1 Taco Hoekwater <taco at elvenkind.com>
> \setvariables and \getvariables sounds like the most general solution
> in that case.
> For example, you could put the various \setvariables statements in various separate files and load a specific one from the context command line with --environment=...
> I tried it and it works. Only one thing: when the variables are not set (forgot the environment parameter, file not correctly set, ...) I would like to set default values. How would I do that?



\doifelsevariable{test}{one}{1: \getvariable{test}{one}}{??}\par
\doifelsevariable{test}{two}{2: \getvariable{test}{two}}{??}


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.ntg.nl/pipermail/ntg-context/attachments/20110305/7f8a0c16/attachment.html>

More information about the ntg-context mailing list