* Problem with Reftex
@ 2002-12-16 12:14 Jens-Peter Vraa Jensen
2002-12-16 12:20 ` David Kastrup
0 siblings, 1 reply; 7+ messages in thread
From: Jens-Peter Vraa Jensen @ 2002-12-16 12:14 UTC (permalink / raw)
Hi!
I'm using Emacs 21.2.1 under Windows XP. I'm currently working on a latex
document with one main document (main.tex). Each chapter is kept in a
seperate file and included in main.tex using the \include{} command.
>From the main document (main.tex) reftex is working fine when pressing C-c
=: The TOC is shown, and I can switch to any section in any chapter. When
I'm working in a chapter (= a file included in main.tex) and pressing C-c =,
the TOC shown only contains entries from the current chapter (= current .tex
file). What I want is the "full TOC" from the entire document - just as it
is shown from the main.tex file.
I have tried the same under Linux (the emacs version may be different), and
the TOC always contains all entries.
Is this a bug or did I miss something?
Please advise a newbie :-)
Best regards,
Jens-Peter
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Problem with Reftex
2002-12-16 12:14 Problem with Reftex Jens-Peter Vraa Jensen
@ 2002-12-16 12:20 ` David Kastrup
2002-12-16 12:43 ` Jens-Peter Vraa Jensen
0 siblings, 1 reply; 7+ messages in thread
From: David Kastrup @ 2002-12-16 12:20 UTC (permalink / raw)
"Jens-Peter Vraa Jensen" <no@no.no> writes:
> I'm using Emacs 21.2.1 under Windows XP. I'm currently working on a
> latex document with one main document (main.tex). Each chapter is
> kept in a seperate file and included in main.tex using the
> \include{} command.
>
> From the main document (main.tex) reftex is working fine when
> pressing C-c =: The TOC is shown, and I can switch to any section in
> any chapter. When I'm working in a chapter (= a file included in
> main.tex) and pressing C-c =, the TOC shown only contains entries
> from the current chapter (= current .tex file). What I want is the
> "full TOC" from the entire document - just as it is shown from the
> main.tex file.
>
> I have tried the same under Linux (the emacs version may be different), and
> the TOC always contains all entries.
>
> Is this a bug or did I miss something?
Are you using AUCTeX or not? Is main.tex properly known as a master
document of your chapter to Emacs (that is, will its preamble and
stuff get used when you TeX the document from within your chapter's
buffer?).
--
David Kastrup, Kriemhildstr. 15, 44793 Bochum
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Problem with Reftex
2002-12-16 12:20 ` David Kastrup
@ 2002-12-16 12:43 ` Jens-Peter Vraa Jensen
2002-12-16 12:47 ` Jens-Peter Vraa Jensen
2002-12-16 12:57 ` Problem with Reftex - solved Jens-Peter Vraa Jensen
0 siblings, 2 replies; 7+ messages in thread
From: Jens-Peter Vraa Jensen @ 2002-12-16 12:43 UTC (permalink / raw)
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1363 bytes --]
> Are you using AUCTeX or not?
I'm using AUCTeX 10.0g.
I have added a bit of my .emacs file below.
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; LaTeX setup
; AUC TeX
(add-to-list 'load-path "W:/emacs
21.2/emacs-21.2-fullbin-i386/emacs-21.2/lisp/auctex-10.0g/")
(add-to-list 'Info-default-directory-list "W:/emacs
21.2/emacs-21.2-fullbin-i386/emacs-21.2/lisp/auctex-10.0g/doc/")
(require 'tex-site)
; Reftex (følger med Emacs 21.1)
(autoload 'reftex-mode "reftex" "RefTeX Minor Mode" t)
(autoload 'turn-on-reftex "reftex" "RefTeX Minor Mode" nil)
(autoload 'reftex-citation "reftex-cite" "Make citation" nil)
(autoload 'reftex-index-phrase-mode "reftex-index" "Phrase mode" t)
(add-hook 'LaTeX-mode-hook 'turn-on-reftex) ; with AUCTeX LaTeX mode
(add-hook 'latex-mode-hook 'turn-on-reftex) ; with Emacs latex mode
; (setq reftex-enable-partial-scans t)
; (setq reftex-save-parse-info t)
; (setq reftex-use-multiple-selection-buffers t)
(setq reftex-plug-into-AUCTeX t)
> Is main.tex properly known as a master
> document of your chapter to Emacs (that is, will its preamble and
> stuff get used when you TeX the document from within your chapter's
> buffer?).
>
I would love to anser your question, but at the present time I have no idea
what to say :-) How to I check/enable main.tex as my master document?
Thanks for your reply!
JP
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Problem with Reftex
2002-12-16 12:43 ` Jens-Peter Vraa Jensen
@ 2002-12-16 12:47 ` Jens-Peter Vraa Jensen
2002-12-16 12:57 ` Problem with Reftex - solved Jens-Peter Vraa Jensen
1 sibling, 0 replies; 7+ messages in thread
From: Jens-Peter Vraa Jensen @ 2002-12-16 12:47 UTC (permalink / raw)
I just tried 20.7 and 21.2.2 and the problem persisted, so it seems to be
some user related error :-)
JP
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Problem with Reftex - solved
2002-12-16 12:43 ` Jens-Peter Vraa Jensen
2002-12-16 12:47 ` Jens-Peter Vraa Jensen
@ 2002-12-16 12:57 ` Jens-Peter Vraa Jensen
2002-12-16 13:15 ` David Kastrup
2002-12-16 13:56 ` Kester Clegg
1 sibling, 2 replies; 7+ messages in thread
From: Jens-Peter Vraa Jensen @ 2002-12-16 12:57 UTC (permalink / raw)
> > Is main.tex properly known as a master
> > document of your chapter to Emacs (that is, will its preamble and
> > stuff get used when you TeX the document from within your chapter's
> > buffer?).
> >
I just asked a colleague about your last question, and after adding
%%% Local Variables:
%%% mode: latex
%%% TeX-master: "main"
%%% End:
everything works fine.
Thanks for pointing me in the right direction.
Have a happy christmas - you just made mine a bit more comfortable!
JP
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Problem with Reftex - solved
2002-12-16 12:57 ` Problem with Reftex - solved Jens-Peter Vraa Jensen
@ 2002-12-16 13:15 ` David Kastrup
2002-12-16 13:56 ` Kester Clegg
1 sibling, 0 replies; 7+ messages in thread
From: David Kastrup @ 2002-12-16 13:15 UTC (permalink / raw)
"Jens-Peter Vraa Jensen" <no@no.no> writes:
> > > Is main.tex properly known as a master
> > > document of your chapter to Emacs (that is, will its preamble and
> > > stuff get used when you TeX the document from within your chapter's
> > > buffer?).
> > >
>
> I just asked a colleague about your last question, and after adding
> %%% Local Variables:
>
> %%% mode: latex
>
> %%% TeX-master: "main"
>
> %%% End:
> Thanks for pointing me in the right direction.
>
> Have a happy christmas - you just made mine a bit more comfortable!
Much too complicated. AUCTeX will fill all that in for you by itself
if you don't refuse reading its documentation (which is even
available from the menus for the people that are not capable of
starting info themselves).
The AUCTeX manual _starts_ _off_ with
AUC TeX
*******
AUC TeX is an integrated environment for editing LaTeX and TeX files.
This file documents AUC TeX version 11.
Although AUC TeX contains a large number of features, there are no
reasons to despair. You can continue to write TeX and LaTeX documents
the way you are used to, and only start using the multiple features in
small steps. AUC TeX is not monolithic, each feature described in this
manual is useful by itself, but together they provide an environment
where you will make very few LaTeX errors, and makes it easy to find
the errors that may slip through anyway.
If you want to make AUC TeX aware of style files and multi-file
documents right away, insert the following in your `.emacs' file.
(setq TeX-auto-save t)
(setq TeX-parse-self t)
(setq-default TeX-master nil)
So there is _hardly_ an excuse for not enabling multi-file documents
properly right from the start.
--
David Kastrup, Kriemhildstr. 15, 44793 Bochum
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Problem with Reftex - solved
2002-12-16 12:57 ` Problem with Reftex - solved Jens-Peter Vraa Jensen
2002-12-16 13:15 ` David Kastrup
@ 2002-12-16 13:56 ` Kester Clegg
1 sibling, 0 replies; 7+ messages in thread
From: Kester Clegg @ 2002-12-16 13:56 UTC (permalink / raw)
"Jens-Peter Vraa Jensen" <no@no.no> writes:
> %%% Local Variables:
>
> %%% mode: latex
>
> %%% TeX-master: "main"
>
> %%% End:
Another way to get a TOC type thing is to use imenu and the RefTex mode
hook, instead of a buffer you get your section headings in a menu called
'Index'.
e.g.
'(reftex-load-hook (quote (imenu-add-menubar-index)))
'(reftex-mode-hook (quote (imenu-add-menubar-index)))
or just run it yourself with M-x when you load your latex document.
--
************************************************************************
Kester Clegg Dept. of Computer Science,
Research Assistant (UTC) University of York,
Tel (01904) 43 27 49 email: kester at cs.york.ac.uk
************************************************************************
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2002-12-16 13:56 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-12-16 12:14 Problem with Reftex Jens-Peter Vraa Jensen
2002-12-16 12:20 ` David Kastrup
2002-12-16 12:43 ` Jens-Peter Vraa Jensen
2002-12-16 12:47 ` Jens-Peter Vraa Jensen
2002-12-16 12:57 ` Problem with Reftex - solved Jens-Peter Vraa Jensen
2002-12-16 13:15 ` David Kastrup
2002-12-16 13:56 ` Kester Clegg
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).