[OS X TeX] kpsewhich and TeXShop

Anthony Morton amorton at fastmail.fm
Sun Jan 6 17:53:15 EST 2008


> Sure, just change it to:
>
> #!/bin/sh
> open -a TeXShop `kpsewhich $*`  &

Although in the latter case the ampersand is probably unnecessary.

Note that if you use the default 'bash' as your shell and want to  
avoid the overhead of carrying around an extra script file, you can  
just add this as a shell function in your .bash_profile:

vtex() { open -a TeXShop `kpsewhich $*`; }

then 'vtex thefile.cls' from the command line will do what you want.

Tony M.




More information about the MacOSX-TeX mailing list