1

TeXStudio seems to be aware of the interdependencies of files and internal structure (e.g., blocks for beamer posters shown in example below).

For instance, the left column panel in TeXStudio shows the files included in the master file and the block environments are recognized - it's easy to click and navigate to them.

TeXStudio structure example

Is there similar functionality in AucTeX?

2

AUCTeX has support for multi-file documents, explained in detail in the manual (auctex) Multifile. After opening a 'master' file that includes many other chapter files, the reftex TOC command (bound to C-c = by default) presents me with a complete TOC include all the sections and subsections in the included files. The reftex manual node (reftex) Table of Contents explains all the options.

The TOC comes with support for sectioning commands, and also labels. It doesn't appear to support displaying other environments, such as your BLOCKS, by default, but can apparently be extended to do so:

The section macros recognized by RefTeX are all LaTeX section macros (from ‘\part’ to ‘\subsubparagraph’) and the commands ‘\addchap’ and ‘\addsec’ from the KOMA-Script classes. Additional macros can be configured with the variable ‘reftex-section-levels’. It is also possible to add certain LaTeX environments to the table of contents. This is probably only useful for theorem-like environments. See Defining Label Environments for an example.

Here's what the TOC for one of my multi-file documents looks like, with file boundaries and labels both turned on:

 File master.tex starts here
>               master
 File frontmatter.tex starts here
   * ACKNOWLEDGEMENTS
>               ack
     * Contributions of Authors
>               abstract
 File frontmatter.tex ends here
 File intro.tex starts here
   1 Introduction
>               chap:intro
 File intro.tex ends here
 File lit_review.tex starts here
   2 Literature Review
>               chap:lit_review
     2.1 The Species
>               sec:lit_species
     2.2 The Niche
>               sec:lit_niche
     2.3 \textit{Carex}
>               sec:lit_carex
     2.4 Molecular Markers: Amplified Fragment Length Polymorphisms
>               sec:lit_aflp
>               tab:aflp_comp
>               tab:aflp_examp

Note that every line in the TOC is an active link to the appropriate location in a file.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.