unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* RefTex keeps asking me which file is the Master file
@ 2009-08-15 17:50 Wenguang Wang
  2009-08-16  7:03 ` Wenguang Wang
  0 siblings, 1 reply; 5+ messages in thread
From: Wenguang Wang @ 2009-08-15 17:50 UTC (permalink / raw)
  To: help-gnu-emacs

Hi,
I have a multi-file noweb project.  The file type is .mm (to
workaround a problem of my IDE debugger).  I have also added the
following file extensions into my .emacs file:

(setq reftex-file-extensions
      '(("mm" ".mm" "nw" "tex" ".tex") ("bib" ".bib")))
(setq TeX-file-extensions
      '( "mm" ".mm" "nw" "tex" ".tex" "sty" "cls" "ltx" "texi"
"texinfo"))

And at the end of each file, I have:

%%% Local Variables:
%%% mode: Noweb
%%% noweb-code-mode: c++-mode
%%% TeX-master: "mynowebproj"
%%% End:

And in mynowebproj.mm file, the TeX-master line is:

%%% TeX-master: t

However, when I save these .mm files, or when I open TOC on these
files using RefTeX, it kept asking me which file is the Master file,
very annoying.

Can anybody help me with this?

Thanks!

-Wenguang


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: RefTex keeps asking me which file is the Master file
  2009-08-15 17:50 RefTex keeps asking me which file is the Master file Wenguang Wang
@ 2009-08-16  7:03 ` Wenguang Wang
  2009-08-16  9:38   ` Joost Kremers
  0 siblings, 1 reply; 5+ messages in thread
From: Wenguang Wang @ 2009-08-16  7:03 UTC (permalink / raw)
  To: help-gnu-emacs

Never mind.  I can do this in the .emacs file to solve it: (setq-
default TeX-master "mynowebproj.mm")

On 8月15日, 上午10时50分, Wenguang Wang <wenguangw...@mac.com> wrote:
> Hi,
> I have a multi-file noweb project.  The file type is .mm (to
> workaround a problem of my IDE debugger).  I have also added the
> following file extensions into my .emacs file:
>
> (setq reftex-file-extensions
>       '(("mm" ".mm" "nw" "tex" ".tex") ("bib" ".bib")))
> (setq TeX-file-extensions
>       '( "mm" ".mm" "nw" "tex" ".tex" "sty" "cls" "ltx" "texi"
> "texinfo"))
>
> And at the end of each file, I have:
>
> %%% Local Variables:
> %%% mode: Noweb
> %%% noweb-code-mode: c++-mode
> %%% TeX-master: "mynowebproj"
> %%% End:
>
> And in mynowebproj.mm file, the TeX-master line is:
>
> %%% TeX-master: t
>
> However, when I save these .mm files, or when I open TOC on these
> files using RefTeX, it kept asking me which file is the Master file,
> very annoying.
>
> Can anybody help me with this?
>
> Thanks!
>
> -Wenguang



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: RefTex keeps asking me which file is the Master file
  2009-08-16  7:03 ` Wenguang Wang
@ 2009-08-16  9:38   ` Joost Kremers
  2009-08-16 14:54     ` Wenguang Wang
  0 siblings, 1 reply; 5+ messages in thread
From: Joost Kremers @ 2009-08-16  9:38 UTC (permalink / raw)
  To: help-gnu-emacs

Wenguang Wang wrote:
>> %%% Local Variables:
>> %%% mode: Noweb
>> %%% noweb-code-mode: c++-mode
>> %%% TeX-master: "mynowebproj"
>> %%% End:

> Never mind.  I can do this in the .emacs file to solve it: (setq-
> default TeX-master "mynowebproj.mm")

then why don't you try to set TeX-master in the local variables list *with* the
extension?

%%% TeX-master: "mynowebproj.mm"

as that seems to be the setting that solves your problem.


-- 
Joost Kremers                                      joostkremers@yahoo.com
Selbst in die Unterwelt dringt durch Spalten Licht
EN:SiS(9)


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: RefTex keeps asking me which file is the Master file
  2009-08-16  9:38   ` Joost Kremers
@ 2009-08-16 14:54     ` Wenguang Wang
  2009-08-18 15:23       ` wewwew
  0 siblings, 1 reply; 5+ messages in thread
From: Wenguang Wang @ 2009-08-16 14:54 UTC (permalink / raw)
  To: help-gnu-emacs

I tried that already, but it didn't help.  Since I work on one noweb
project at a time, this workaround is acceptable to me for now.  Of
course I would love to see an official solution instead of this hack.

On 8月16日, 上午2时38分, Joost Kremers <joostkrem...@yahoo.com> wrote:
> Wenguang Wang wrote:
> >> %%% Local Variables:
> >> %%% mode: Noweb
> >> %%% noweb-code-mode: c++-mode
> >> %%% TeX-master: "mynowebproj"
> >> %%% End:
> > Never mind.  I can do this in the .emacs file to solve it: (setq-
> > default TeX-master "mynowebproj.mm")
>
> then why don't you try to set TeX-master in the local variables list *with* the
> extension?
>
> %%% TeX-master: "mynowebproj.mm"
>
> as that seems to be the setting that solves your problem.
>
> --
> Joost Kremers                                      joostkrem...@yahoo.com
> Selbst in die Unterwelt dringt durch Spalten Licht
> EN:SiS(9)



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: RefTex keeps asking me which file is the Master file
  2009-08-16 14:54     ` Wenguang Wang
@ 2009-08-18 15:23       ` wewwew
  0 siblings, 0 replies; 5+ messages in thread
From: wewwew @ 2009-08-18 15:23 UTC (permalink / raw)
  To: help-gnu-emacs

Actually that hack only works partially.  I have to rename all
\includes from:

\include{subfile}

to

\include{subfile.mm}

and show a TOC, and then change the name back, before I can really
view the TOC correctly.  Anybody knows how to let RefTex look for the
subfiles directly using the file type I gave in .emacs?

-Wenguang

On Aug 16, 7:54 am, Wenguang Wang <wenguangw...@mac.com> wrote:
> I tried that already, but it didn't help.  Since I work on one noweb
> project at a time, this workaround is acceptable to me for now.  Of
> course I would love to see an official solution instead of this hack.
>
> On 8月16日, 上午2时38分, Joost Kremers <joostkrem...@yahoo.com> wrote:
>
>
>
> > Wenguang Wang wrote:
> > >> %%% Local Variables:
> > >> %%% mode: Noweb
> > >> %%% noweb-code-mode: c++-mode
> > >> %%% TeX-master: "mynowebproj"
> > >> %%% End:
> > > Never mind.  I can do this in the .emacs file to solve it: (setq-
> > > default TeX-master "mynowebproj.mm")
>
> > then why don't you try to set TeX-master in the local variables list *with* the
> > extension?
>
> > %%% TeX-master: "mynowebproj.mm"
>
> > as that seems to be the setting that solves your problem.
>
> > --
> > Joost Kremers                                      joostkrem...@yahoo.com
> > Selbst in die Unterwelt dringt durch Spalten Licht
> > EN:SiS(9)



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2009-08-18 15:23 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-15 17:50 RefTex keeps asking me which file is the Master file Wenguang Wang
2009-08-16  7:03 ` Wenguang Wang
2009-08-16  9:38   ` Joost Kremers
2009-08-16 14:54     ` Wenguang Wang
2009-08-18 15:23       ` wewwew

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).