[texworks] Latexmk for TeXworks & *nix style environment

Herbert Schulz herbs at wideopenwest.com
Mon Dec 14 22:17:36 CET 2009


The latexmk perl script has been part of TeX Live since 2008. The following engines use the latexmk script that is along the path to the TeX Live bin directory.

Enclosed is a setup of latexmk for TeXworks. The enclosed bin directory is to be placed in the TeXworks folder on your system. It contains three .engine files, shell scripts for executing latexmk using pdflatex, xelatex and latex (with automatic final runs through dvips and ps2pdf). It also contains three `rc' files for each of the engines which contains the latexmk setup information for each of the engines. Latexmk will run (pdf/xe)latex, bibtex and/or makeindex if needed and then (pdf/xe)latex the correct number of times to resolve cross-references.

The setup of TeXworks is shown in the pdf file also enclosed. You got to set an additional path setting which points to the bin directory you installed above. Unfortunately I couldn't just use an indirect path setting ($HOME/Library/TeXworks/bin or ~/Library/TeXworks/bin) since I couldn't enter a path but rather had to ``point'' to it in the dialog box. Then write three tools (the definition of the latexmk tool is show --- others are similar using the other .engine files). From then on just place the line

% !TEX program = latexmk

(or pdflatexmk or xelatexmk) to execute that engine.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: latexmk for TeXworks and *nix.zip
Type: application/zip
Size: 99441 bytes
Desc: not available
URL: <http://tug.org/pipermail/texworks/attachments/20091214/0f3e3505/attachment-0001.zip>
-------------- next part --------------

I have no familiarity with Windows and don't know if/how shell scripts get executed, etc. I'd guess that there are folks around this list that can make Windows executable versions of the engines.

Good Luck,

Herb Schulz
(herbs at wideopenwest dot com)

More information about the texworks mailing list