Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does the tex root directive work? #37

Open
ghost opened this issue May 20, 2017 · 3 comments
Open

Does the tex root directive work? #37

ghost opened this issue May 20, 2017 · 3 comments

Comments

@ghost
Copy link

ghost commented May 20, 2017

Suppose two files file1.tex and file2.tex.

file1.tex contains a line
\input{file2}

Building in the editor with focus on file1.tex works as expected.

file2.tex contains the line

%!TEX root = file1.tex 

Building with focus on file2.tex breaks with "missing \begin{document}"

Is this expected behaviour?

@Bramas
Copy link
Owner

Bramas commented May 20, 2017

No. Building when file2 is focused should build file1 as expected (even if file1 is not open).
But those behaviors are not resolved live, you need to close and reopen the file for the directive to take effect.
Otherwise I never had issues with it.
On what platform are you?

@ghost
Copy link
Author

ghost commented May 20, 2017 via email

@ousia
Copy link
Contributor

ousia commented Aug 7, 2017

I’m afraid I cannot do it myself.

Since the issue is fixed (or it wasn’t a bug), could it be closed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants