TransWikia.com

autoref with subfiles in TexStudio

TeX - LaTeX Asked by Marvin Dippell on December 1, 2020

I am using TexStudio with the subfiles package to split my project into smaller pieces, with the advantage that I can compile a subfile indepentent of the main stuff.
Now using the autoref command of the hyperref package I would like to have auto completion for the labels when working in a subfile, but TexStudio does not give me a list of labels in the other documents.

One way out that I know is to use a %!TEX root = main.tex at the beginning of a subfile, but then maint.tex will always be executed, making the subfiles package useless.

Any ideas how to use autoref across different subfiles?

One Answer

Instead of using subfiles you could use the include statement This way you'll compile only the modified files. That should allow you to use %!TEX root = main.tex

Here some useful links:

When should I use input vs. include?

https://en.wikibooks.org/wiki/LaTeX/Modular_Documents

Answered by Source on December 1, 2020

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP