From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/74483 Path: news.gmane.org!not-for-mail From: Ian Lawrence Newsgroups: gmane.comp.tex.context Subject: Passing variable values on invoking context Date: Wed, 15 Feb 2012 10:17:36 +0000 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1329301093 12854 80.91.229.3 (15 Feb 2012 10:18:13 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 15 Feb 2012 10:18:13 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Feb 15 11:18:08 2012 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Rxbw8-00022e-DI for gctc-ntg-context-518@m.gmane.org; Wed, 15 Feb 2012 11:18:08 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D75C8CB21C; Wed, 15 Feb 2012 11:18:07 +0100 (CET) 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 f4sVp9VGyiDX; Wed, 15 Feb 2012 11:17:54 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D42D6CB222; Wed, 15 Feb 2012 11:17:53 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 0EF07CB222 for ; Wed, 15 Feb 2012 11:17:53 +0100 (CET) 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 lWQ1aNe1aBGm for ; Wed, 15 Feb 2012 11:17:38 +0100 (CET) Original-Received: from filter5-til.mf.surf.net (filter5-til.mf.surf.net [194.171.167.221]) by balder.ntg.nl (Postfix) with ESMTP id 0327DCB21C for ; Wed, 15 Feb 2012 11:17:37 +0100 (CET) Original-Received: from mail-ey0-f169.google.com (mail-ey0-f169.google.com [209.85.215.169]) by filter5-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id q1FAHaYE032586 for ; Wed, 15 Feb 2012 11:17:37 +0100 Original-Received: by eaag11 with SMTP id g11so336160eaa.14 for ; Wed, 15 Feb 2012 02:17:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=UhYKJLDT+aohPxrxRML8gGLHzqlZm2D1hlPvdBBR5tA=; b=SGIzW4L1zjfPBhT9rC0+kYvTH0pjvIR4+hi3cAo5wLu+8tDC28TPcqkIcouuRv1T9t d5o8UmreqBfmX/G2Mf9P4E0UFD/gHxuh15VHcYDq6ISRvX1wiq0FPIXSw1YUB393wles pW0LbmNnAlnIcCvIH1AiKoJ3pTwl8lMFsptmI= Original-Received: by 10.213.5.12 with SMTP id 12mr147956ebt.87.1329301056553; Wed, 15 Feb 2012 02:17:36 -0800 (PST) Original-Received: by 10.213.101.18 with HTTP; Wed, 15 Feb 2012 02:17:36 -0800 (PST) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.215.169; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0HGyahA65 - 9fb79e06a50e - 20120215 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.221 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:74483 Archived-At: A bit of help, please. I currently have a chunk at the start of a text file, like this \setvariables [Path] [Thread={Ee_01_PN}, ..... Mode=full] \stopbuffer I invoke the file with context filename.tex Is there a way to pass the value of the variable to context on invocation? So the top of the header might read: \setvariables [Path] [Thread={Ee_01_PN}, ..... ] \stopbuffer And the invocation: context filename.tex (bit of magic) Mode=full If so, I could use this a few times...it's not a big deal but would mean I could prepare some fixed command files, rather than a search and replace for Mode=full to Mode=light through al the text files called by this kind of invocation. Thanks in anticipation. Ian ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / 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 ___________________________________________________________________________________