LaTeX-Workshop: [Bug] Conflict when working in two TeX projects

Imagine I have 2 multi .tex projects and Paper.tex and Thesis.tex both with \begin{document}. Then for exemple if have Paper.tex and ThesisChapter1.tex open and I tell vscode to do latex-workshop.build or latex-workshop.tab or latex-workshop.clean when I have ThesisChapter1.tex focused in the editor, then it builds/shows/cleans the Paper.tex and not Thesis.tex . I have all tex files with the correspondent % !TeX root = ../rootTeX.tex magic command.

My workspace:

RootWorkspace
│  (some Mathematica .nb to export plot to both Figures/ folders )
│  Bibliography.bib
│
└───Thesis
│   │   Thesis.tex
│   │   ...
│   │
│   └───Chapters
│   │   │   ThesisChapter1.tex
│   │   │   ...
│   │   
│   └───Figures
│   │  ...
│
└───Paper
│   │   Paper.tex
│   │   ...
│   │
│   └───Sections
│   │   │   PaperSection1.tex
│   │   │   ...
│   │   
│   └───Figures
│   │  ...

Simply put, if I have only ThesisChapter1.tex and PaperSection1.tex open in the editor, if I do latex-workshop.build on either it will not build the one that it’s focused on the editor but, I believe, the one that was build last.

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 23 (12 by maintainers)

Commits related to this issue

Most upvoted comments

The comment is TEX instead of TeX. Please correct and check again.

edit: there is a mistake in the readme. I will update it immediately.