[texworks] latex->dvips->ps2pdf on Windows
t34www at googlemail.com
Thu Jun 11 02:22:20 CEST 2009
>> 3. How to call it from Texworks?
> Add it in tools.
> Name: my-fancy-batch
> Program: my-fancy-batch.bat
> Arguments: $fullname
One remark to this. Passing arguments from TW to the batch with100%
reliability might be very tricky. The problem is that TW detects and
quotes arguments with spaces, otherwise they are passed as is. This is
not sufficient for batch scripts, because e.g. name,with,commas.tex
will be split into 3 batch arguments (comma and several other
characters are treated as whitespace by cmd.exe). Special characters
like & will also cause troubles. Some workarounds might be possible
but nothing particularly elegant springs to mind.
More information about the texworks