auctex-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [AUCTeX-devel] reftex-select-toggle-follow for master and slave file


From: Uwe Brauer
Subject: Re: [AUCTeX-devel] reftex-select-toggle-follow for master and slave files
Date: Thu, 24 Nov 2016 20:16:16 +0000
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux)

   > Uwe Brauer <address@hidden> writes:

   > Thanks for checking.  I'm not sure why `reftex-revisit-to-follow' makes
   > a difference for you.  For me, I always see no labels (blank RefTeX
   > labels buffer) when I only load main.tex as the entry point.

Now I am confused. I always see the labels independent of
reftex-revisit-to-follow.

This variable causes the  reftex-select-toggle-follow to open a file
which was not opened already, but the labels I see always. Maybe we
should compare our reftex/auctex setting.


   > I'm
   > attaching the logic I've implemented to ltxtable.el applied to
   > subfiles.el from git.

   >    ;; Ensure that \subfile stays in one line
   >    (LaTeX-paragraph-commands-add-locally "subfile")

   >    ;; Tell AUCTeX that \subfile loads a file.  regexp is the same as
   >    ;; for \input or \include.  This will run `TeX-run-style-hooks' on
   >    ;; subfile(s) when master file is loaded.
   >    (TeX-auto-add-regexp
   >     `(,(concat
   >    "\\\\subfile"
   >    "{\\(\\.*[^#}%\\\\\\.\n\r]+\\)\\(\\.[^#}%\\\\\\.\n\r]+\\)?}")
   >       1 TeX-auto-file))

   >    ;; Tell RefTeX the same thing.
   >    (when (and (boundp 'reftex-include-file-commands)
   >          (not (member "subfile" reftex-include-file-commands)))
   >      (add-to-list 'reftex-include-file-commands "subfile" t)
   >      (reftex-compile-variables))

   > This makes \subfile act like \input and both AUCTeX and RefTeX seem to
   > be happy with it.  Maybe you can give it a roll.  The complete style is
   > attached.


I do this and report back.

Uwe 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]