[texworks] latex->dvips->ps2pdf on Windows
dwarnold45 at suddenlink.net
Wed Jun 10 23:51:21 CEST 2009
Good stuff! Couple more questions.
1. What to name this file?
2. Where to save the file?
3. How to call it from Texworks?
On Jun 10, 2009, at 2:23 PM, T T wrote:
> Joseph, your batch is not going to work. Here's another one:
> @latex %1 && dvips "%~dpn1.dvi" && ps2pdf "%~dpn1.ps"
> Error checking for arguments can be omitted, since TW will always
> provide them.
> On 10/06/2009, Joseph Wright <joseph.wright at morningstar2.co.uk> wrote:
>> David Arnold wrote:
>>> Has anyone successfully set up Texworks to run latex->dvips-
>>> >ps2pdf on a
>>> windows machine? If so, can you share how?
>> Probably easiest to set up a batch file that does the job.
>> Something like:
>> @echo off
>> if "%1%" == "" goto :error
>> goto :end
>> latex %1
>> IF ERRORLEVEL 0 (
>> dvips %1
>> ps2pdf %1
>> goto L:end
>> echo Please supply a file name
>> Joseph Wright
More information about the texworks