From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Morten Leander Petersen Newsgroups: gmane.emacs.help Subject: Re: Key binding? in Auctex (LaTex-mode) Date: Tue, 23 Aug 2011 14:41:35 +0200 Message-ID: <87r54cjo5c.fsf@gmail.com> References: <32315986.post@talk.nabble.com> <87obzgr506.fsf@gmail.com> <32317809.post@talk.nabble.com> <87vctojsxu.fsf@gmail.com> <32318241.post@talk.nabble.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1314103331 25633 80.91.229.12 (23 Aug 2011 12:42:11 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 23 Aug 2011 12:42:11 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Aug 23 14:42:06 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QvqIu-0002e6-Aq for geh-help-gnu-emacs@m.gmane.org; Tue, 23 Aug 2011 14:42:04 +0200 Original-Received: from localhost ([::1]:43081 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QvqIt-0004fy-UR for geh-help-gnu-emacs@m.gmane.org; Tue, 23 Aug 2011 08:42:03 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:47077) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QvqIo-0004fY-6h for help-gnu-emacs@gnu.org; Tue, 23 Aug 2011 08:41:59 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QvqIj-0006k0-6C for help-gnu-emacs@gnu.org; Tue, 23 Aug 2011 08:41:58 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:60460) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QvqIi-0006hO-TZ for help-gnu-emacs@gnu.org; Tue, 23 Aug 2011 08:41:53 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QvqIf-0002Y8-5z for help-gnu-emacs@gnu.org; Tue, 23 Aug 2011 14:41:49 +0200 Original-Received: from pool-21.imf.au.dk ([130.225.20.58]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 23 Aug 2011 14:41:49 +0200 Original-Received: from mortenlp2 by pool-21.imf.au.dk with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 23 Aug 2011 14:41:49 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 81 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: pool-21.imf.au.dk Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAAACXBIWXMAAA7DAAAOwwHHb6hk AAAACXZwQWcAAAAwAAAAMADO7oxXAAACAUlEQVRYw81Zy4rDMAxMQr45EHouhX5r9x/2EBCzekv2 7kbkUFxbGY31srN+Pl/LnWT7bwB1QI/zuBGgC83jPK4HR34J615d8Hy9EUcV0/P1ZquukTIgXEa/ mS5fHufBjFFlC1VIVnpCqq6nDEgimOgxpEoi8xii2UTVRDTSmTxADAGxPZEbS+Hmr2Ejg7vGdkrV pjPEsGNYtTFhiBQYUt0l5DmJhhkTMyTzsoqgShIaqeYzlBWr/aCLEAcsPC3b2GQT0KUClS7RTtGL QyeTmNjIps6mKHAyEIYeeivl4tDbsj6E+BhbGaNJFQJVM1kcZQ4Z6OZ5IUzq2jJDiFJuQSb+/ZTT Z0iyhT+kSSO1b5fqfGIzRo/UvpghKzGGLtXLap0mPyQgk7r6gKz3OQSMNCoxIKk9yVBvT/vnsvB9 YVXONmhVvdZflvP5kuoY1TnJsK/G2mYp9TnIF06cmQFXiLJ8OStlaqYz69REDBW13oE6dKxaHsJC 5jSjVptG/YxjzMourKSLyA5/Vqer2rOrC3wVSf/Avnb52R87qwKGJh6iVe5rZ/vxA2tjYZCHMj21 I369q5WO8d6PkZTMkHrpcI6tDZLU4m9pTt0PzRWfdRPQRDQY6kN3jBMlvGMgMW9hSxHLEqDTQoXE r+PfOvCOIXOj5WOaACiP+48Ymiu3+xr0Dd/32djNVNyTAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDEx LTA2LTI3VDEzOjE1OjE5KzAyOjAwLRFMVAAAACV0RVh0ZGF0ZTptb2RpZnkAMjAxMS0wNi0yN1Qx MzoxNToxOSswMjowMFxM9OgAAAAASUVORK5CYII= User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) Cancel-Lock: sha1:VEZqdPPRCg2YEWXywNmcHchiIS0= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 80.91.229.12 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:82037 Archived-At: spinner writes: > Morten Leander Petersen wrote: >> >> I'm not sure I understand the question, but as long as you specify a >> particular master file in each of your child files you should be >> alright. >> > > Thanks for your message. I see the source of confusion. I must have > misunderstood the documentation: > http://www.gnu.org/software/auctex/manual/auctex/Multifile.html > > I thought that if, first, I inserted the following code at the end of > my parent-master file and, secondly, I pressed C-c _ while in my child > file that Auctex would automatically find this master file without me > typing its path. > > %%% Local Variables: > %%% TeX-master: "master" > %%% End: > > > If I still must type the path to the master in each child, do you know if > there is a practical difference between these two Tex file settings: > > %%% TeX-master: t > > %%% TeX-master: "master" > > If these settings are functionally the same, the following code from the > documentation > doesn't seem to be very useful (i.e., why bother with it): > > (setq-default TeX-master "master") ; All master files called "master" > > > Why call parent files "master" in --%%% TeX-master: "master"-- if I need > to specify the path in the child files? Am I missing something? Imagine the following scenario. Say you have 3 files, something.tex b.tex c.tex Where something.tex is your main file, i.e. you have statements like \include{b.tex} \include{c.tex} inside something.tex. Now say you are working on b.tex and you want to compile your code. What you really want is to compile something.tex since this is your main file. So by inserting %%% Local Variables: %%% TeX-master: "something" %%% End: into b.tex, you tell the system to compile something.tex, even though you are currently working on b.tex. Insert the same 3 lines into c.tex (using C-c _) and you can now compile your code no matter what file you are currently working on. With regards to %%% TeX-master: t versus %%% TeX-master: "master" the first line says that when you hit "compile" (C-c C-c) then it should compile the current file whereas the second one says that it should compile the file named "master.tex". Hope this clarifies things a little bit :) Regards -- /Morten