In message <[EMAIL PROTECTED]>,
on Wed, 2 Jan 2002 at 12:03:41, Henning Hraban Ramm wrote:

>Am Dienstag 01 Januar 2002 20:38 schrieb Gerard Hermans:
>> In ConteXt manuals it is stated that Perl needs to be
>> installed, which I don't have.

>texexec.pl is a Perl script (therefore you need Perl),
>all ConTeXt scripts are located in ...texmf\context\perltk,
>you should have this in your PATH. And maybe you should
>have a look at runperl.zip...

I avoided the need for runperl.exe by choosing the appropriate 
(ActiveState) Perl install option that allows you to double-click .pl 
files to run them automatically. The reason for doing this is that 
runperl.exe does not set the ERRORLEVEL environment variable. I use the 
following command script file under Win2K to compile my current ConTeXt 
project and start Yap if it worked or drop into the editor if there were 
errors.

---start---
prompt $$
cd "C:\Documents and Settings\username\My Documents\working directory"

texexec.pl --batch %1 00_master.tex

@echo off
if errorlevel 1 goto errors
goto noerrors

:errors
"C:\path to editor\gvim.exe" -q 00_master.log
goto end

:noerrors
if "%1" == "--pdf" goto :end
start /i yap -1 00_master.dvi

:end
---end---

I call this script from one of two links on the desktop: one just calls 
this file as is and generates a DVI file - or drops into the editor if 
there is a problem. The other supplies "-PDF" as the %1 parameter which 
causes a PDF version to be generated instead of DVI.

Something like the above might be what you need to get your WinEDT macro 
working.

HTH.

Regards,
-- 
Bruce Horrocks
Hampshire
England
[EMAIL PROTECTED]

Reply via email to