Replies: 2 comments 4 replies
-
I’ve checked the code and see this use case not covered. Can you give some word on the reason of moving to discussion? Thanks! @tamuratak |
Beta Was this translation helpful? Give feedback.
4 replies
-
|
Beta Was this translation helpful? Give feedback.
0 replies
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]
I generally have a directory structure as follows:
When setting up build scripts (e.g. via
snakemake
), I assume that every command is called from the root directory of the project (project-root-dir
). It implies that I calllatexmk
as something likelatexmk -jobname=out/paper/paper src/paper/paper.tex
. Consequently, when including tex files and figures, I use the relative path from the project root (e.g.includegraphics{out/figures/figure.pdf}
).I managed to make LaTeX-Workshop follow a similar behavior with one big difference. The main issue is that LaTeX-Workshop changes the current working directory to
src/paper
(the location of the tex file) before compilation, and basically callslatexmk
from there. Consequently, a different relative path is required to include files and figures (e.g.includegraphics{../../out/figures/figure.pdf}
).It would be extremely convinient if the working directory from which
latexmk
(ortexify
/pdflatex
/etc.) are invoked could be set in LaTeX-Workshop, similarly to, for example,latex-workshop.latex.outDir
.Describe the solution you'd like [Required]
Add a new option to LaTeX-Workshop, for example
latex-workshop.latex.workingDir
. It should do the following:latexmk
/texify
/pdflatex
/etc.) is invoked from a shell where the current working directory islatex-workshop.latex.workingDir
latex-workshop.latex.workingDir
Logs [Required]
Please paste the whole log messages here, not parts of ones. The log should start with
Initializing LaTeX Workshop
. It is very important to identify problems.LaTeX Workshop Output [Required]
Desktop [Required]
Please write exact version numbers. Please don't write
latest
instead of exact numbers.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
Beta Was this translation helpful? Give feedback.
All reactions