Skip to content

Improve support for "subfiles" package. #247

@kbauer

Description

@kbauer

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.

image

How to reproduce

  • Download the example files example.zip
  • Type \ref in sub.tex.

Expected behavior

  • Completion for \ref{sec:A} should be suggested.

Actual behavior

  • No completion is suggested.

Partial Workaround

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions