ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Passing variable values on invoking context
@ 2012-02-15 10:17 Ian Lawrence
  2012-02-15 10:26 ` Wolfgang Schuster
  0 siblings, 1 reply; 3+ messages in thread
From: Ian Lawrence @ 2012-02-15 10:17 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-02-15 16:47 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-02-15 10:17 Passing variable values on invoking context Ian Lawrence
2012-02-15 10:26 ` Wolfgang Schuster
2012-02-15 16:47   ` Aditya Mahajan

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).