Thanks,
I was already trying to jump through the hoops of \ctxlua, but this is really
simple and exactly what I needed. The offline calls to context/metapost figure
production now can get all the information needed to synchronize with the main
document.
Hans van der Meer
On 16 okt. 2011, at 19:32, Wolfgang Schuster wrote:
>
> Am 16.10.2011 um 19:14 schrieb Meer, H. van der:
>
>> Thanks, but I am afraid I do not understand the mechanism well enough.
>> I did the follwoing call in the shell:
>> context --fontchoice="my font choice" test
>>
>> And in the test.tex file:
>> variable mykey = <\getvariable{documents.arguments}{fontchoice}>\crlf
>>
>> But that clearly didn't work.
>
> <file name="test.tex">
> \doifdocumentargument {bodyfont}
> {\setupbodyfont[\getdocumentargument{bodyfont}]}
>
> \starttext
> This document uses
> “\doifdocumentargumentelse{bodyfont}{\getdocumentargument{bodyfont}}{Latin
> Modern}” as bodyfont.
> \stoptext
> </file>
>
> $ context --bodyfont=pagella test.tex
>
> Wolfgang
>
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : [email protected] / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________