[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Key binding? in Auctex (LaTex-mode)
From: |
spinner |
Subject: |
Re: Key binding? in Auctex (LaTex-mode) |
Date: |
Tue, 23 Aug 2011 07:25:39 -0700 (PDT) |
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.