[Mac OS X TeX] emacs and CMacTeX

Tom Kiffe tom at kiffe.com
Wed May 9 17:40:35 CEST 2001



I have never used emacs but one should be able to call CMacTeX programs from
within it to perform various tasks. For example, if you want to typeset gentle.tex you can do so from a Terminal window by typing

open -a /Users/tkiffe/CMacTeX_OSX/binaries/CMacTeX gentle.tex

It must be possible to configure emacs to have it execute this command. I always
use the absolute path to my CMacTeX programs because I have numerous copies
of them on my system and I want to launch a specific one. You can use aliases
to simply these commands. For example, if you create this alias

alias cmt open -a /Users/tkiffe/CMacTeX_OSX/binaries/CMacTeX

then you can execute the original command with just

cmt gentle.tex

This open command just sends an OpenDoc Apple Event to the designated application. CMacTeX performs the following actions when it receives an
OpenDoc event.

1) If the file has a .tex extension CMacTeX will typeset the file.
2) If the file has a .dvi extension CMacTeX will call dvips.
3) If the file has an .aux extension CMacTeX will call bibtex.
4) If the file has a .idx extension CMacTeX will call makeindex.

You can't pass any parameters to CMacTeX with the open command, so it
processes the OpenDoc with its current settings.

--Tom Kiffe

-----------------------------------------------------------------
To UNSUBSCRIBE, send email to <info at email.esm.psu.edu> with
"unsubscribe macosx-tex" (no quotes) in the body.
For additional HELP, send email to <info at email.esm.psu.edu> with
"help" (no quotes) in the body.
This list is not moderated, and I am not responsible for
messages posted by third parties.
-----------------------------------------------------------------




More information about the macostex-archives mailing list