[OS X Emacs] guess-TeX-master problem

Thomas Käufl kaeufl at online.de
Thu Sep 15 14:27:58 EDT 2011


Am 15. Sep 2011 um 10:45 schrieb Hofert Jan Marius:

> Dear all,
> I installed of Aquamacs 2.3a on a MacBook Pro 10.6.8. I was hoping  
> that the solution posted under the subject "Wiki code not working:  
> Symbol's function definition is	void: guess-TeX-master" worked  
> again, but it doesn't (and I don't know why). The goal is to get  
> Aquamacs to compile an example.tex document which does not have a  
> proper header but is simply a tex file included in a "master .tex  
> file", call it master.tex.
> Following the previous posts, I have these entries in  
> Preferences.el (just in case this has any influence on the problem,  
> I included other commands too (only those that also affect latex  
> mode; apart from that, I only have some R commands defined in  
> Preferences.el)):
> ...

what about adding local variables to your files? At the end

%%% Local Variables:
%%% coding: ...
%%% mode: latex
%%% TeX-master: <master file>
%%% End:

coding is not necessary. If you want, you can add mac-roman-mac.

<master file>: t, if the variable is contained in the main file,
the file containing the preamble etc. "<path to f>/<f>" in the other
case. <f> must be the name of the main file (the suffix .tex
omitted) and <path to f> a sequence of directories sucht that
TeX can find it.



BTW. I also have

%% !TEX encoding = MacOSRoman
%!TEX root = <master file>

at the beginning of my latex files, so that TeXShop works.

More information about the MacOSX-Emacs mailing list