Bramas / texiteasy

Simple and Powerful Latex Editor
GNU General Public License v3.0
43 stars 11 forks source link

Does the tex root directive work? #37

Open ghost opened 7 years ago

ghost commented 7 years ago

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 commented 7 years ago

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 commented 7 years ago

AH! I didn't realize that a restart was required. Everything works great now;thank you!

On Sat, May 20, 2017 at 12:38 AM, Quentin Bramas notifications@github.com wrote:

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?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Bramas/texiteasy/issues/37#issuecomment-302854789, or mute the thread https://github.com/notifications/unsubscribe-auth/AE77POPKitPr4p_-mcCVMovX88xrbuqXks5r7oppgaJpZM4NhMcN .

ousia commented 7 years ago

I’m afraid I cannot do it myself.

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