[texworks] latex+dvips+pstopdf+viewpdf

Bruno Voisin bvoisin at me.com
Wed Sep 3 16:04:41 CEST 2008


Le 3 sept. 08 à 14:57, Herbert Schulz a écrit :

> The command line for simpdftex would be
>
> simpdftex latex <file>
>
> to tell simpdftex to use the latex format.

You can achieve that from within TeXworks by going to Preferences >  
Typesetting > Processing tools, clicking on the + button to add a new  
tool, and then entering in the Name field:

	dviLaTeX (say)

in the Program field:

	simpdftex

and in the Arguments field:

	latex
	$fullname

(to add/remove arguments in the Arguments field use the +/- buttons,  
and to change the ordering of these arguments use the UpArrow and  
DownArrow buttons). Then you just have to select this tool in the  
corresponding pull-down menu in the toolbar of the source window.

More visually maybe:

-------------- next part --------------
A non-text attachment was scrubbed...
Name: Image 2.png
Type: image/png
Size: 44727 bytes
Desc: not available
Url : http://tug.org/pipermail/texworks/attachments/20080903/1531a12e/attachment-0002.png 
-------------- next part --------------



But you can do better: enable SyncTeX to get source <-> preview  
synchronization for this tool too. On the command line you would use:

	simpdftex latex --extratexopts "--synctex=1" <file>

After a bit of trial-and-error, it seems the corresponding tool would  
be the same as before with Arguments:

	latex
	--extratexopts
	--synctex=1
	$fullname

Again more visually:

-------------- next part --------------
A non-text attachment was scrubbed...
Name: Image 3.png
Type: image/png
Size: 48697 bytes
Desc: not available
Url : http://tug.org/pipermail/texworks/attachments/20080903/1531a12e/attachment-0003.png 
-------------- next part --------------



This works here on the Mac apparently.

Bruno Voisin


More information about the texworks mailing list