From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/71802 Path: news.gmane.org!not-for-mail From: "Meer, H. van der" Newsgroups: gmane.comp.tex.context Subject: Re: arguments on context call Date: Sun, 16 Oct 2011 18:37:41 +0000 Message-ID: <9D886168-004F-4C49-ABB3-0E1A634DAB4A@uva.nl> References: <75AFB1AE-5D4A-49CC-8868-5F939045AFA3@uva.nl> <4E9B0024.8050902@uni-bonn.de> <31143A87-E6C2-44F1-BD14-6808F68F8E52@googlemail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1318790283 9421 80.91.229.12 (16 Oct 2011 18:38:03 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 16 Oct 2011 18:38:03 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Oct 16 20:37:59 2011 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RFVax-0004IL-DM for gctc-ntg-context-518@m.gmane.org; Sun, 16 Oct 2011 20:37:59 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id DA62DCB04E; Sun, 16 Oct 2011 20:37:57 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id ygD8PNB1nMz5; Sun, 16 Oct 2011 20:37:55 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 351B9CB036; Sun, 16 Oct 2011 20:37:55 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id A2961CB036 for ; Sun, 16 Oct 2011 20:37:54 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id wYJu+dGnYMNO for ; Sun, 16 Oct 2011 20:37:43 +0200 (CEST) Original-Received: from filter1-nij.mf.surf.net (filter1-nij.mf.surf.net [195.169.124.152]) by balder.ntg.nl (Postfix) with ESMTP id B2FB9CAFFB for ; Sun, 16 Oct 2011 20:37:43 +0200 (CEST) Original-Received: from jansen.uva.nl (jansen.uva.nl [146.50.108.229]) by filter1-nij.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p9GIbgI8001624 for ; Sun, 16 Oct 2011 20:37:43 +0200 Original-Received: from katz.uva.nl ([fe80::dddf:f1e2:dda:1bd1]) by jansen.uva.nl ([146.50.108.229]) with mapi id 14.01.0289.001; Sun, 16 Oct 2011 20:37:42 +0200 Thread-Topic: [NTG-context] arguments on context call Thread-Index: AQHMjBlBBEgbRGAnY0uqiqJvcHGm9ZV/AFoAgAAT8oCAAAUQAIAAEkoA In-Reply-To: <31143A87-E6C2-44F1-BD14-6808F68F8E52@googlemail.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [82.95.102.36] Content-ID: X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=146.50.108.229; country=NL; region=07; city=Amsterdam; latitude=52.3500; longitude=4.9167; http://maps.google.com/maps?q=52.3500,4.9167&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 07FJuBGtb - f18046aebc0d - 20111016 X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.152 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:71802 Archived-At: Thanks, I was already trying to jump through the hoops of \ctxlua, but this is real= ly simple and exactly what I needed. The offline calls to context/metapost = figure production now can get all the information needed to synchronize wit= h 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=3D"my font choice" test >> = >> And in the test.tex file: >> variable mykey =3D <\getvariable{documents.arguments}{fontchoice}>\crlf >> = >> But that clearly didn't work. > = > > \doifdocumentargument {bodyfont} {\setupbodyfont[\getdocumentargument{bod= yfont}]} > = > \starttext > This document uses =93\doifdocumentargumentelse{bodyfont}{\getdocumentarg= ument{bodyfont}}{Latin Modern}=94 as bodyfont. > \stoptext > > = > $ context --bodyfont=3Dpagella test.tex > = > Wolfgang > = ___________________________________________________________________________= ________ If your question is of interest to others as well, please add an entry to t= he Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-cont= ext webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________