[texworks] latex->dvips->ps2pdf on Windows
Martti Nikunen
martti.nikunen at helsinki.fi
Fri Jun 12 14:54:20 CEST 2009
I wanted to toggle source/view with this in MiKTeX and it seems that the
following batch works
@latex "-synctex=-1" %1 && dvipdfm "%~dpn1.dvi"
The dvips-ps2pdf combination gave inaccurate results for my test file.
Regards,
Martti
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.
>
> Cheers,
>
> Tomek
>
> On 10/06/2009, Joseph Wright <joseph.wright at morningstar2.co.uk> wrote:
>> David Arnold wrote:
>>> All,
>>>
>>> Has anyone successfully set up Texworks to run latex->dvips->ps2pdf on a
>>> windows machine? If so, can you share how?
>>>
>>> David
>>>
>> 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
>>
>> :error
>>
>> echo.
>> echo Please supply a file name
>> echo.
>>
>> :end
>> --
>> Joseph Wright
>>
>
>
>
More information about the texworks
mailing list