From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: spinner Newsgroups: gmane.emacs.help Subject: Re: Key binding? in Auctex (LaTex-mode) Date: Tue, 23 Aug 2011 07:25:39 -0700 (PDT) Message-ID: <32319365.post@talk.nabble.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> <87r54cjo5c.fsf@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1314109557 3491 80.91.229.12 (23 Aug 2011 14:25:57 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 23 Aug 2011 14:25:57 +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 16:25:51 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 1QvrvH-0007th-TQ for geh-help-gnu-emacs@m.gmane.org; Tue, 23 Aug 2011 16:25:48 +0200 Original-Received: from localhost ([::1]:46956 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QvrvH-0003Tx-37 for geh-help-gnu-emacs@m.gmane.org; Tue, 23 Aug 2011 10:25:47 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:55456) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QvrvB-0003Tj-Aj for Help-gnu-emacs@gnu.org; Tue, 23 Aug 2011 10:25:42 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QvrvA-0004OZ-7f for Help-gnu-emacs@gnu.org; Tue, 23 Aug 2011 10:25:41 -0400 Original-Received: from sam.nabble.com ([216.139.236.26]:39807) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QvrvA-0004OS-2n for Help-gnu-emacs@gnu.org; Tue, 23 Aug 2011 10:25:40 -0400 Original-Received: from isper.nabble.com ([192.168.236.156]) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1Qvrv9-0001LU-3T for Help-gnu-emacs@gnu.org; Tue, 23 Aug 2011 07:25:39 -0700 In-Reply-To: <87r54cjo5c.fsf@gmail.com> X-Nabble-From: michaelcrain@hotmail.com X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 216.139.236.26 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:82038 Archived-At: This makes sense now. Many thanks for explaining things. Morten Leander Petersen wrote: > > > 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 > > > > -- View this message in context: http://old.nabble.com/Key-binding--in-Auctex-%28LaTex-mode%29-tp32315986p32319365.html Sent from the Emacs - Help mailing list archive at Nabble.com.