From: Aditya Mahajan <adityam@umich.edu>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Passing variable values on invoking context
Date: Wed, 15 Feb 2012 11:47:07 -0500 (EST) [thread overview]
Message-ID: <alpine.LNX.2.02.1202151146170.3329@ybpnyubfg.ybpnyqbznva> (raw)
In-Reply-To: <4808B92C-AFE0-4AEB-9FCE-CCD4C6C67337@googlemail.com>
[-- Attachment #1: Type: TEXT/PLAIN, Size: 1168 bytes --]
On Wed, 15 Feb 2012, Wolfgang Schuster wrote:
>
> Am 15.02.2012 um 11:17 schrieb Ian Lawrence:
>
>> 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.
>
> • http://archive.contextgarden.net/message/20060810.215454.54ccd77e.en.html
> • http://archive.contextgarden.net/message/20110105.204113.93286322.en.html
Also see
http://wiki.contextgarden.net/Modes
Aditya
[-- Attachment #2: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
prev parent reply other threads:[~2012-02-15 16:47 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-15 10:17 Ian Lawrence
2012-02-15 10:26 ` Wolfgang Schuster
2012-02-15 16:47 ` Aditya Mahajan [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=alpine.LNX.2.02.1202151146170.3329@ybpnyubfg.ybpnyqbznva \
--to=adityam@umich.edu \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).