-
Notifications
You must be signed in to change notification settings - Fork 373
Closed
Labels
Description
The subfiles package is useful for speeding up previews when working on large documents, without overwriting the main file with incomplete \includeonly
settings. Currently, compilation of the subfile can be enabled by setting the root document either through Options > Root Document or by using the % !TeX root = sub
magic comment. Either way, by changing the root document, completion information is lost.
How to reproduce
- Download the example files example.zip
- Type
\ref
insub.tex
.
Expected behavior
- Completion for
\ref{sec:A}
should be suggested.
Actual behavior
- No completion is suggested.
Partial Workaround
- Set up pdflatex to compile the current document instead, by specifying
?c:m"
instead of%
or?m"
as the file name. Sadly, this breaks the "View" command, as?c:m"
expands to the root document in the context of the viewer command (see ?c: selector not working with txs:///view-pdf-internal #248).
Environment
- TeXstudio: 2.12.10
- Qt: Using Qt Version 5.8.0, compiled with Qt 5.8.0 R
- OS: Windows 10 (Microsoft Windows [Version 10.0.17134.165])
- TeX distribution: MikTeX
tomaquek, JeroenOoge, ComFreek, towadroid and kolibril13