From: Ian Lawrence <physics.rooted@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Passing variable values on invoking context
Date: Wed, 15 Feb 2012 10:17:36 +0000 [thread overview]
Message-ID: <CAK9u4iAFhZfEzAVY=JTv+7pyQ5Jc6sk31H_htfs0_bbpdcwUgg@mail.gmail.com> (raw)
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
___________________________________________________________________________________
next reply other threads:[~2012-02-15 10:17 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-15 10:17 Ian Lawrence [this message]
2012-02-15 10:26 ` Wolfgang Schuster
2012-02-15 16:47 ` Aditya Mahajan
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='CAK9u4iAFhZfEzAVY=JTv+7pyQ5Jc6sk31H_htfs0_bbpdcwUgg@mail.gmail.com' \
--to=physics.rooted@gmail.com \
--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).