[OS X TeX] Emacs and TeX

Peter Nillius nillius at nada.kth.se
Tue Nov 12 12:05:30 CET 2002



tisdagen den 12 november 2002 kl 03.58 skrev Martin Steer:

> Hi. I need a TeX-savvy editor for OS 10.2, and emacs looks good. But  
> the
> carbon-emacs binaries I've tried (v21.3.50: from Enrico
> Franconi and from Alex Rice) are unable to launch TeX, BibTeX, etc
> (although otherwise they're great). For both binaries any TeX process
> terminates with the message
> that it "exited abnormally with code 1". According to the info pages  
> this could
> be caused by a problem with the 'env' program not being properly  
> installed. env
> is however inside the emacs binary (attested to run on OS 10.2) so I  
> guess
> is not the cause of my problem (?). I get the same result on two  
> different
> machines (the only peculiarity they have in common is that each has  
> XFree86
> installed). I'm
> using Gerben Wierda's teTex and can compile and typeset from the  
> terminal
> (outside emacs). Can I make this work without resorting to building my  
> own
> (which I'm not yet set up to do)?  Ideally I'd like to run emacs with
> auctex, reftex, etc. Any help would be greatly appreciated.
>

Since this Emacs doesn't start up in a shell you need to set the PATH  
environment variable globally. The way I know to do this is by creating  
a file:
~/.MacOSX/environment.plist
My file looks like this:

<?xml version=3D"1.0" encoding=3D"UTF-8"?>
<!DOCTYPE plist SYSTEM =
"file://localhost/System/Library/DTDs/PropertyList.dtd">
<plist version=3D"0.9">
<dict>
         <key>HOME</key>
         <string>/Users/nillius</string>
         <key>PATH</key>
          
<string>.:/usr/bin:/usr/athena/bin:/usr/local/bin:/bin:/usr/local/ 
sbin:/usr/sbin:/sbin:/usr/X11R6/bin:/usr/arla/bin:/usr/arla/sbin:/usr/ 
local/bin:/usr/local/bin:/Applications/MATLAB6p5/bin:/usr/local/teTeX/ 
bin/powerpc-apple-darwin-current</string>
</dict>
</plist>

This is how I do it. There might be a better way that I am not aware of.

Peter


-----------------------------------------------------
Mac TeX info, resources, and news can be found at:
<http://www.esm.psu.edu/mac-tex/>
-----------------------------------------------------
List archives can be found at:
<http://www.esm.psu.edu/mac-tex/MacOSX-TeX-Digests/>
-----------------------------------------------------
See message headers for list info.
-----------------------------------------------------




More information about the macostex-archives mailing list