Re: [NTG-context] Modes for configuration

2005-10-17 Thread Hans Hagen

Alan Bowen wrote:

Following the example in the ConTeXt Wiki (http:// 
wiki.contextgarden.net/Modes) I have defined an environment file that  
specifies two modes (screen, print) for the production of the same  
source file. This works well when the appropriate texexec commands  
are given at the command line.


The problem is that I am trying to set  this production up for users  
who are happier with a GUI. Is there a way to do generate diverse  
outputs from the same source file without resorting to the command  
line? I have experimented with TeXShop�the users tend to works on Macs 
�but without success thus far.


(1) at the top of the file you can say:

% modes=...

i can think of a 'plugin' in texexec that pops up a menu asking what 
mode to use (maybe you should put it put it on the wish list in the 
context portal -)


Hans


-
 Hans Hagen | PRAGMA ADE
 Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
| www.pragma-pod.nl
-

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Modes for configuration

2005-10-17 Thread Alan Bowen

Willi—

Many thanks. That is helpful and much appreciated. I missed the  
closing remark about \enablemode on the Mode page of  ConTeXt wiki  
(which I come to rely on extensively).


The advantage of the command line/texexec approach is that one can  
specify the name of the output using --result xxx and so avoid  
clobbering files. But I suspect that the users will find it easier to  
play with \enablemode commands using their various editors of choice  
and to rename the output before recompiling the file.


Alan

On Oct 16, 2005, at 2:53 PM, Willi Egger wrote:


Hi Alan,

This is simle to solve:

%\enablemode[screen]
\enablemode[print]
\envrionment yourenvironment

Important is to enable the required mode before loading the  
environment file. - Dit you know that you can select multiple modes  
e.g. you have a print-mode and the document should be created for
letter, A4 and A5. So you could define a letter-mode an A4-mode and  
an A5-mode.


In the document you can say

\enablemode[print,A4]
\envrionment yourenvironment

Hope that this helps

Willi

Alan Bowen wrote:


Following the example in the ConTeXt Wiki (http://  
wiki.contextgarden.net/Modes) I have defined an environment file  
that  specifies two modes (screen, print) for the production of  
the same  source file. This works well when the appropriate  
texexec commands  are given at the command line.


The problem is that I am trying to set  this production up for  
users  who are happier with a GUI. Is there a way to do generate  
diverse  outputs from the same source file without resorting to  
the command  line? I have experimented with TeXShop—the users tend  
to works on Macs —but without success thus far.


Thanks for any suggestions.

Alan


___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context



___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context



___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Modes for configuration

2005-10-17 Thread Alan Bowen
Many thanks, Hans. The idea of a pop-up menu for texexec does have a  
peculiar charm.


Best, Alan

On Oct 17, 2005, at 4:21 AM, Hans Hagen wrote:


Alan Bowen wrote:


Following the example in the ConTeXt Wiki (http://  
wiki.contextgarden.net/Modes) I have defined an environment file  
that  specifies two modes (screen, print) for the production of  
the same  source file. This works well when the appropriate  
texexec commands  are given at the command line.


The problem is that I am trying to set  this production up for  
users  who are happier with a GUI. Is there a way to do generate  
diverse  outputs from the same source file without resorting to  
the command  line? I have experimented with TeXShop�the users  
tend to works on Macs �but without success thus far.




(1) at the top of the file you can say:

% modes=...

i can think of a 'plugin' in texexec that pops up a menu asking  
what mode to use (maybe you should put it put it on the wish list  
in the context portal -)


Hans


-
 Hans Hagen | PRAGMA ADE
 Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
| www.pragma-pod.nl
-

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context



___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Modes for configuration

2005-10-17 Thread Alan Bowen
Well, I am very glad that you said something. I was feeling unusually  
sheepish for having missed it!


Cheers, Alan

On Oct 17, 2005, at 4:45 PM, Henning Hraban Ramm wrote:


Am 2005-10-17 um 19:04 schrieb Alan Bowen:


Many thanks. That is helpful and much appreciated. I missed the  
closing remark about \enablemode on the Mode page of  ConTeXt wiki




That's no wonder - I added it this morning after I read Willi's  
mail. ;-



Grüßlis vom Hraban!
---
http://www.fiee.net/texnique/
http://contextgarden.net
http://www.cacert.org (I'm an assurer)

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context



___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Modes for configuration

2005-10-16 Thread Willi Egger

Hi Alan,

This is simle to solve:

%\enablemode[screen]
\enablemode[print]
\envrionment yourenvironment

Important is to enable the required mode before loading the environment 
file. - Dit you know that you can select multiple modes e.g. you have a 
print-mode and the document should be created for
letter, A4 and A5. So you could define a letter-mode an A4-mode and an 
A5-mode.


In the document you can say

\enablemode[print,A4]
\envrionment yourenvironment

Hope that this helps

Willi

Alan Bowen wrote:

Following the example in the ConTeXt Wiki (http:// 
wiki.contextgarden.net/Modes) I have defined an environment file that  
specifies two modes (screen, print) for the production of the same  
source file. This works well when the appropriate texexec commands  
are given at the command line.


The problem is that I am trying to set  this production up for users  
who are happier with a GUI. Is there a way to do generate diverse  
outputs from the same source file without resorting to the command  
line? I have experimented with TeXShop—the users tend to works on Macs 
—but without success thus far.


Thanks for any suggestions.

Alan


___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Modes for configuration

2005-10-15 Thread Alan Bowen
Following the example in the ConTeXt Wiki (http:// 
wiki.contextgarden.net/Modes) I have defined an environment file that  
specifies two modes (screen, print) for the production of the same  
source file. This works well when the appropriate texexec commands  
are given at the command line.


The problem is that I am trying to set  this production up for users  
who are happier with a GUI. Is there a way to do generate diverse  
outputs from the same source file without resorting to the command  
line? I have experimented with TeXShop—the users tend to works on Macs 
—but without success thus far.


Thanks for any suggestions.

Alan


___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context