[OS X TeX] ChkTeX Engine for TeXShop

Ramón Figueroa-Centeno ramonf at hawaii.edu
Mon May 24 08:58:34 CEST 2010


A while back I wrote a nice applescript to integrate BBEdit and ChkTeX (see
<http://www2.hawaii.edu/~ramonf/ChkTeXonMacOSX/index.html> for that and
instructions on how to install ChkTeX on OS X).

Now, if you do not have BBEdit it occurred to me that an engine for TeXShop
would provide another way (not as nice) to use ChkTeX. I am attaching it.
Install ChkTeX. Install the engine in ~/Library/TeXShop/Engines and make
sure it is executable. Add the following line towards the top of your
document (first 20 lines) "% !TEX TS-program = ChkTeX" (assuming you named
the engine "ChkTeX.engine") and typeset (it will not typeset, of course,
instead it will show you the output of ChkTeX in you document's TeXShop



--------------code below this line-----------------

name=$(basename "$1" .tex)

/usr/local/bin/chktex "$1"

console="tell application \"TeXShop\" to set the index of (the window named
\"$name console\") to 1"
/usr/bin/osascript  -e "$console"
--------------code above this line-----------------

http://n2.nabble.com/file/n5092823/ChkTeX.engine ChkTeX.engine 
View this message in context: http://macosx-tex.576846.n2.nabble.com/ChkTeX-Engine-for-TeXShop-tp5092823p5092823.html
Sent from the MacOSX-TeX mailing list archive at Nabble.com.

More information about the macostex-archives mailing list