ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* automating initialization
@ 2005-03-17  3:50 ishamid
  2005-03-17  9:40 ` Hans Hagen
  2005-03-17 15:10 ` Peter Rolf
  0 siblings, 2 replies; 5+ messages in thread
From: ishamid @ 2005-03-17  3:50 UTC (permalink / raw)


Dear gang,

How do I automate initialization of the separate context tree (from 
mswintex.zip)? A simple batch file such as

========================================
setuptex c:\context
texexec foo
========================================

does not work; the batch file always turns itself off before texexec can be 
invoked. Can I make the initialization global so that all batch files (such as 
those called by WinEDT) will work properly? I added c:\context to the path but 
that is not enough.

BTW: Can initialization be turned off as well?

Best
Idris

Professor Idris Samawi Hamid
Department of Philosophy
Colorado State University
Fort Collins, CO 80523

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

* Re: automating initialization
  2005-03-17  3:50 automating initialization ishamid
@ 2005-03-17  9:40 ` Hans Hagen
  2005-03-17 15:10 ` Peter Rolf
  1 sibling, 0 replies; 5+ messages in thread
From: Hans Hagen @ 2005-03-17  9:40 UTC (permalink / raw)


ishamid wrote:
> Dear gang,
> 
> How do I automate initialization of the separate context tree (from 
> mswintex.zip)? A simple batch file such as
> 
> ========================================
> setuptex c:\context
> texexec foo
> ========================================
> 
> does not work; the batch file always turns itself off before texexec can be 
> invoked. Can I make the initialization global so that all batch files (such as 
> those called by WinEDT) will work properly? I added c:\context to the path but 
> that is not enough.
> 
> BTW: Can initialization be turned off as well?

you can associate batch files to a cmd window, (open action); in winedt you 
shoul dadd the lines to their bat files (or ask the author to provide an 
initialization option)

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] 5+ messages in thread

* Re: automating initialization
  2005-03-17  3:50 automating initialization ishamid
  2005-03-17  9:40 ` Hans Hagen
@ 2005-03-17 15:10 ` Peter Rolf
  1 sibling, 0 replies; 5+ messages in thread
From: Peter Rolf @ 2005-03-17 15:10 UTC (permalink / raw)


Hello Indris,

ishamid wrote:

>Dear gang,
>
>How do I automate initialization of the separate context tree (from 
>mswintex.zip)? A simple batch file such as
>
>========================================
>setuptex c:\context
>texexec foo
>========================================
>
>  
>
If you are using XP, you must use the "call" command in front of both lines.
If you call a batch file from a batch file simply us call. So in your case

call setuptex c:\context
call texecex foo

enter "help call" to get more information

>does not work; the batch file always turns itself off before texexec can be 
>invoked. Can I make the initialization global so that all batch files (such as 
>those called by WinEDT) will work properly? I added c:\context to the path but 
>that is not enough.
>
>BTW: Can initialization be turned off as well?
>
>  
>
You have to unset or restore(!) the environment variables (TEXMF,...).
...and the same for the set command: "help set"
There are similar commands for the other Window versions (can't remember).

Greetings,

    Peter

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

* Re: automating initialization
  2005-03-17 15:26 ishamid
@ 2005-03-17 16:22 ` Hans Hagen
  0 siblings, 0 replies; 5+ messages in thread
From: Hans Hagen @ 2005-03-17 16:22 UTC (permalink / raw)


ishamid wrote:

> ========================================
> call setuptex c:\context
> texexec foo
> ========================================

if needed, say: texmfstart texexec foo

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] 5+ messages in thread

* RE: automating initialization
@ 2005-03-17 15:26 ishamid
  2005-03-17 16:22 ` Hans Hagen
  0 siblings, 1 reply; 5+ messages in thread
From: ishamid @ 2005-03-17 15:26 UTC (permalink / raw)
  Cc: mailing list for ConTeXt users

>===== Original Message From Hans Hagen <pragma@wxs.nl> =====
>ishamid wrote:
>> Dear gang,
>>
>> How do I automate initialization of the separate context tree (from
>> mswintex.zip)? A simple batch file such as
>>
>> ========================================
>> setuptex c:\context
>> texexec foo
>> ========================================
>>
>> does not work; the batch file always turns itself off before texexec can be
>> invoked. Can I make the initialization global so that all batch files (such 
as
>> those called by WinEDT) will work properly? I added c:\context to the path 
but
>> that is not enough.
>>
>> BTW: Can initialization be turned off as well?
>
>you can associate batch files to a cmd window, (open action);

can you give me an example?

>in winedt you
>shoul dadd the lines to their bat files (or ask the author to provide an
>initialization option)

Well, the following seems to work for now:

========================================
call setuptex c:\context
texexec foo
========================================

I am pretty ignorant of DOS but <call> seems to solve the problem for now. Now 
my WinEDT batch files for pdfetex and aleph can work.

Best
Idris

Professor Idris Samawi Hamid
Department of Philosophy
Colorado State University
Fort Collins, CO 80523

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

end of thread, other threads:[~2005-03-17 16:22 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-03-17  3:50 automating initialization ishamid
2005-03-17  9:40 ` Hans Hagen
2005-03-17 15:10 ` Peter Rolf
2005-03-17 15:26 ishamid
2005-03-17 16:22 ` Hans Hagen

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