You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
I just installed this extension so perhaps I'm missing something. I am trying to write a scientific paper involving multiple tex files. The main tex file is in the root folder of my project, and the other ones in a tex/ subfolder.
Now, every time I edit one of those other tex files and save, I get an error of the form:
This is pdfTeX, Version [...] (TeX Live 2018) (preloaded format=pdflatex) restricted \write18 enabled.
entering extended mode
(./intro.tex
LaTeX2e <2018-04-01> patch level 2
Babel <3.18> and hyphenation patterns for 84 language(s) loaded.
./intro.tex:3: Undefined control sequence.
l.3 \section
{Introduction}
./intro.tex:3: ==> Fatal error occurred, no output PDF file produced!
Transcript written on intro.log.
The extension apparently tries to compile every saved file independently, so in order to compile my whole document I have to go back to the main tex file and save it as well, which does generate the correct pdf file with no error.
(Note that all of the tex files in the tex\ subfolder start with %!TEX root = ../my_main_file.tex
Am I missing something?
Thanks a lot.
The text was updated successfully, but these errors were encountered:
mnancel
changed the title
Error on save+generate pdf with multiple .tex files
Tex files compiled independently in multi-file LaTeX project
Aug 1, 2019
Hello,
I just installed this extension so perhaps I'm missing something. I am trying to write a scientific paper involving multiple tex files. The main tex file is in the root folder of my project, and the other ones in a
tex/
subfolder.Now, every time I edit one of those other tex files and save, I get an error of the form:
The extension apparently tries to compile every saved file independently, so in order to compile my whole document I have to go back to the main tex file and save it as well, which does generate the correct pdf file with no error.
(Note that all of the tex files in the
tex\
subfolder start with%!TEX root = ../my_main_file.tex
Am I missing something?
Thanks a lot.
The text was updated successfully, but these errors were encountered: