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

* Re: Passing variable values on invoking context
  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
  0 siblings, 1 reply; 3+ messages in thread
From: Wolfgang Schuster @ 2012-02-15 10:26 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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.htmlhttp://archive.contextgarden.net/message/20110105.204113.93286322.en.html

Wolfgang
___________________________________________________________________________________
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

* Re: Passing variable values on invoking context
  2012-02-15 10:26 ` Wolfgang Schuster
@ 2012-02-15 16:47   ` Aditya Mahajan
  0 siblings, 0 replies; 3+ messages in thread
From: Aditya Mahajan @ 2012-02-15 16:47 UTC (permalink / raw)
  To: mailing list for ConTeXt users

[-- 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
___________________________________________________________________________________

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