New setting needed for watching additional folders: latex-workshop.latex.watch.files.include
#3453
Unanswered
MilesCranmer
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Preliminary questions [Required]
Disable all the other extensions except for LaTeX Workshop, restart VS Code, and check that you can not see the requested feature. [Required]
You still see this issue?: Yes
Make sure to visit the wiki FAQ before requesting a feature.
You visited the wiki?: Yes
If your requested feature is with compiling a document (not having to do with finding the root file of a project), check first that you can compile manually.
You can compile a TeX document manually?: Yes
Is your requested feature related to a problem? Please describe. [Required]
There is this package called ShowYourWork which incorporates data reduction and figure generation (via executing arbitrary scripts) as part of the LaTeX build process. It works really well with LaTeX-Workshop, using the settings listed here: https://show-your.work/en/latest/faqs/#using-latex-workshop-in-vscode. Essentially this lets you use LaTeX-Workshop to generate figures as part of the PDF compilation process!
However, right now, the PDF compilation is only triggered when the LaTeX file changes. However, it should really be triggered when any of the scripts are changed as well - since those ultimately affect the final PDF.
To Reproduce [Required]
Steps to reproduce the behavior:
showyourwork
withpip
.src/scripts/figure1_subparts.py
.src/tex/ms.tex
. How should the script file be added?Describe the solution you'd like [Required]
To fix this, I believe that a
latex-workshop.latex.watch.files.include
setting is needed, so that LaTeX-Workshop can watch an arbitrary folder for changes. Then people usingshowyourwork
can simply add theirsrc/scripts
folder to this watch - and the PDF recompilation triggered when the scripts change.Logs [Required]
N/A
LaTeX Workshop Output [Required]
N/A
Developer Tools Console [Required]
N/A
Screenshots
N/A
Desktop [Required]
N/A
Additional questions
Are you using VSCodium?
No
Are you using the Snap or Flatpack versions of VS Code?
No
Are you using LaTeX Workshop with VS Code Remote?
No
Additional context
Here is the corresponding issue on the
showyourwork
repo: showyourwork/showyourwork#122.Beta Was this translation helpful? Give feedback.
All reactions