ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Modes for configuration
@ 2005-10-15 13:09 Alan Bowen
  2005-10-16 18:53 ` Willi Egger
  2005-10-17  8:21 ` Hans Hagen
  0 siblings, 2 replies; 7+ messages in thread
From: Alan Bowen @ 2005-10-15 13:09 UTC (permalink / raw)


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

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

* Re: Modes for configuration
  2005-10-15 13:09 Modes for configuration Alan Bowen
@ 2005-10-16 18:53 ` Willi Egger
  2005-10-17 17:04   ` Alan Bowen
  2005-10-17  8:21 ` Hans Hagen
  1 sibling, 1 reply; 7+ messages in thread
From: Willi Egger @ 2005-10-16 18:53 UTC (permalink / raw)


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

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

* Re: Modes for configuration
  2005-10-15 13:09 Modes for configuration Alan Bowen
  2005-10-16 18:53 ` Willi Egger
@ 2005-10-17  8:21 ` Hans Hagen
  2005-10-17 17:07   ` Alan Bowen
  1 sibling, 1 reply; 7+ messages in thread
From: Hans Hagen @ 2005-10-17  8:21 UTC (permalink / raw)


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

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

* Re: Modes for configuration
  2005-10-16 18:53 ` Willi Egger
@ 2005-10-17 17:04   ` Alan Bowen
  2005-10-17 20:45     ` Henning Hraban Ramm
  0 siblings, 1 reply; 7+ messages in thread
From: Alan Bowen @ 2005-10-17 17:04 UTC (permalink / raw)


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
>

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

* Re: Modes for configuration
  2005-10-17  8:21 ` Hans Hagen
@ 2005-10-17 17:07   ` Alan Bowen
  0 siblings, 0 replies; 7+ messages in thread
From: Alan Bowen @ 2005-10-17 17:07 UTC (permalink / raw)


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
>

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

* Re: Modes for configuration
  2005-10-17 17:04   ` Alan Bowen
@ 2005-10-17 20:45     ` Henning Hraban Ramm
  2005-10-17 21:38       ` Alan Bowen
  0 siblings, 1 reply; 7+ messages in thread
From: Henning Hraban Ramm @ 2005-10-17 20:45 UTC (permalink / raw)


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)

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

* Re: Modes for configuration
  2005-10-17 20:45     ` Henning Hraban Ramm
@ 2005-10-17 21:38       ` Alan Bowen
  0 siblings, 0 replies; 7+ messages in thread
From: Alan Bowen @ 2005-10-17 21:38 UTC (permalink / raw)


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
>

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

end of thread, other threads:[~2005-10-17 21:38 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-10-15 13:09 Modes for configuration Alan Bowen
2005-10-16 18:53 ` Willi Egger
2005-10-17 17:04   ` Alan Bowen
2005-10-17 20:45     ` Henning Hraban Ramm
2005-10-17 21:38       ` Alan Bowen
2005-10-17  8:21 ` Hans Hagen
2005-10-17 17:07   ` Alan Bowen

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