[Top][All Lists]

[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:48:08 +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.  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 just did, I downloaded your file and applied it. I don't not any
difference to the behavior I described earlier, so I am not sure where
the difference should lie in?


reply via email to

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