-
I am trying to install Latex Workshop into VSCode. My root file has many included files. To make it easier to manage paths to these files within my latex code, I have defined new commands. Example: \newcommand{\pathE}{N:/DATA_THUMB/Writing/Publishing/Latex/Books_Typesetting/VAMP_Dissertation/bibliography}. When I fire up VS Code, Latex Workshop does not appear to be able to expand my newcommand path to the subfolders where I have placed the included files . Here is the error message: [17:49:31] Cannot find .bib file: \pathE/VAMP_Biblio.bib I am attaching a more detailed log of the situation that includes the output log of Latex Workshop upon VS Code startup, my root file, and screenshots of the directories to show where files are. Errors are highlighted in yellow. It may be something entirely different. But here is my environment. VS Code Windows 10 Any insight would be greatly appreciated. Jim Porto |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
The discovery mechanism for included files is detailed at https://github.com/James-Yu/LaTeX-Workshop/wiki/Compile#the-dependencies When parsing a file, LW never expands macros. This is the compiler's job. Hence, the log message |
Beta Was this translation helpful? Give feedback.
The discovery mechanism for included files is detailed at https://github.com/James-Yu/LaTeX-Workshop/wiki/Compile#the-dependencies
When parsing a file, LW never expands macros. This is the compiler's job. Hence, the log message
[17:49:31] Cannot find .bib file: \pathE/VAMP_Biblio.bib
. However, we implemented a second mechanism relying on the presence of the.fls
file, which is generated by the LaTeX compiler when called with the-recorder
option (this option is always passed when usinglatexmk
). Compile your project once to see that the dependencies are properly discovered and all LW features (in particular completion) work well.