I finally created an issue on on the Github-page of LaTeX-Workshop
.
You are not supposed to used tasks for compilation. I do not recall now where I picked that up, but it was not the good thing to do.
What now worked, on one computer, was to change the settings.json
-file as follows:
{
"cSpell.enabled": true,
"editor.cursorBlinking": "solid",
"editor.wordWrap": "on",
"editor.wordWrapColumn": 80,
"editor.wrappingIndent": "same",
"latex-workshop.view.pdf.viewer": "tab",
"latex-workshop.view.pdf.zoom": "page-fit",
"latex-workshop.latex.autoBuild.cleanAndRetry.enabled": true,
"latex-workshop.latex.autoClean.run": "onFailed",
"latex-workshop.latex.clean.subfolder.enabled": true,
"latex-workshop.latex.clean.fileTypes": [ "*.aux"
//, "*.toc",
// "*.ilg",
// "*.blg",
// "*.lof",
// "*.lot",
// "*.out",
// "*.acn",
// "*.acr",
// "*.alg",
// "*.glg",
// "*.glo",
// "*.gls",
// "*.fls",
// "*.log",
// "*.fdb_latexmk",
// "*.snm"
],
"latex-workshop.message.log.show": true,
"latex-workshop.latex.recipes": [
{
"name": "latexmk",
"tools": [
"latexmk"
]
},
{
"name": "pdflatex",
"tools": [
"pdflatex",
// "bibtex",
"makeindex",
// "pdflatex",
"pdflatex"
]
}
],
"latex-workshop.latex.tools":[
{
"name": "latexmk",
"command": "latexmk",
"args": [
"-synctex=1",
"-interaction=nonstopmode",
"-file-line-error",
"-pdf",
"-f",
"-outdir=%OUTDIR%",
"%DOC%"
],
"env": {}
},
{
"name": "lualatexmk",
"command": "latexmk",
"args": [
"-synctex=1",
"-interaction=nonstopmode",
"-file-line-error",
"-lualatex",
"-outdir=%OUTDIR%",
"%DOC%"
],
"env": {}
},
{
"name": "latexmk_rconly",
"command": "latexmk",
"args": [
"%DOC%"
],
"env": {}
},
{
"name": "pdflatex",
"command": "pdflatex",
"args": [
"-synctex=1",
"-interaction=nonstopmode",
"-file-line-error",
"%DOC%"
],
"env": {}
},
{
"name": "bibtex",
"command": "bibtex",
"args": [
"%DOCFILE%"
],
"env": {}
},
{
"name": "makeindex",
"command": "makeindex",
"args": [
"%DOCFILE%.nlo",
"-s",
"nomencl.ist",
"-o",
"%DOCFILE%.nls"
],
"env": {}
},
{
"name": "rnw2pdf",
"command": "Rscript",
"args": [
"-e",
"knitr::knit2pdf('%DOCFILE%')"
],
"env": {}
}
],
"latex-workshop.message.update.show": false
}
and executing with ctrl + alt + b.
In particular, this worked on a new PC (also with Windows 10, MikTeX, and TeXWorks installed from my previous usage), on which I simply downloaded and installed VS Code (1.44.0) and the LaTeX Workshop extension (8.8.0). I then adjusted the settings.json
as above and all problems are solved (except that the PDF viewer does not update automatically upon compilation, at least not regularly; I'm still trying to identify the issue, but this is minor).
However, on another computer, I do not have perl
installed, and using the above settings.json
, I obtain the error:
latexmk: The script engine could not be found
latexmk: Data: scriptEngine="perl.exe", scriptName="latexmk"
when I uncomment the recipe latexmk
in the settings file, this results in:
- Document compiles without errors
- PDF does not update in tab, icon needs to be clicked again to see changes
- Table of contents stays empty after multiple compilations
- Referenced
label
s of sections and their page numbers (ref
, pageref
) and are only question marks.
Best Answer
How do you store this information? You could just have one info-file for each letter
and
and then have a main file
Then you can compile all letters from the command line with something like
The koma bundle also provides tools for more sophisticated address files.