I write my documents using Overleaf. Now I want to switch to VS code.
My document contains many tables (longtable) with a large number of references. Furthermore the document contains a glossary, many *.svg files. In Overleaf this document is compiled without errors with lualatex.
Overleaf is using latexmk. How do I have to rewrite the settings.json that Overleaf and vs-code produces the same results for Lualatex, biber and the glossaries?
$biber main.tex
INFO - This is Biber 2.19
INFO - Logfile is 'main.tex.blg'
ERROR - Cannot find 'main.tex.bcf'!
INFO - ERRORS: 1
I don't know how to make the beaver work.
Here my settings.json
{
"latex-workshop.latex.autoClean.run": "onBuilt",
"latex-workshop.view.pdf.viewer": "tab",
"latex-workshop.view.pdf.internal.synctex.keybinding": "double-click",
"latex-workshop.latex.autoBuild.run": "onSave",
"files.autoSave": "afterDelay",
"files.autoSaveDelay": 30000,
"latex-workshop.latex.recipes": [
{
"name": "lualatex -> biber -> makeglossaries -> lualatex 2x",
"tools": [
"lualatex",
"biber",
"makeglossaries",
"lualatex",
"lualatex"
]
}
],
"latex-workshop.latex.tools": [
{
"name": "lualatex",
"command": "lualatex",
"args": [
"-shell-escape",
"-synctex=1",
"-interaction=nonstopmode",
"-file-line-error",
"-pdf",
"%DOC%"
]
},
{
"name": "biber",
"command": "biber",
"args": [
"%DOCFILE%"
]
},
{
"name": "makeglossaries",
"command": "makeglossaries",
"args": [
"%DOCFILE%"
]
}
],
"files.exclude": {
"**/.git": true,
"**/*.aux": true,
"**/*.bbl": true,
"**/*.bcf": true,
"**/*.blg": true,
"**/*.fdb_latexmk": true,
"**/*.fls": true,
"**/*.glg": true,
"**/*.glo": true,
"**/*.gls": true,
"**/*.glsdefs": true,
"**/*.idx": true,
"**/*.ilg": true,
"**/*.ind": true,
"**/*.lof": true,
"**/*.log": true,
"**/*.lot": true,
"**/*.mw": true,
"**/*.nlo": true,
"**/*.nls": true,
"**/*.out": true,
"**/*.run.xml": true,
"**/*.synctex.gz": true,
"**/*.thm": true,
"**/*.toc": true,
"**/*.xdy": true
},
"editor.minimap.enabled": false,
}
%% Bibliography
\usepackage[backend=biber,style=alphabetic]{biblatex}
\addbibresource{bibliography/bibliography.bib}
\nocite{*}
\printbibliography[heading=bibintoc,type=book,title={Literatur}]
\cleardoublepage
\printbibliography[heading=bibintoc,type=misc,title={Normen}]
\cleardoublepage
\printbibliography[heading=bibintoc,type=online,title={Internet}]
\cleardoublepage
OS: Alma Luinux 9 Code-server: v4.12.0 Extension Version: v9.10.0 Tex distribution: TeX Live 2023
Error Message:
Package longtable Warning: Table widths have changed. Rerun LaTeX.
[273] (./main.aux)
LaTeX Warning: There were undefined references.
LaTeX Warning: Label(s) may have changed. Rerun to get cross-references right.
Package biblatex Warning: Please (re)run Biber on the file:
(biblatex) main
(biblatex) and rerun LaTeX afterwards.
biber main.texshould bebiber main. I don't know anything about VS Code, though. But according to https://github.com/James-Yu/LaTeX-Workshop/wiki/Compile your settings look OK-ish. Double check them with https://tex.stackexchange.com/q/154751/35864 just to be sure. – moewe May 12 '23 at 11:24latexmk, so you may want to also use that tool locally. https://tex.stackexchange.com/a/468433/35864 shows how you can configure VS Code forlatexmk. – moewe May 12 '23 at 11:26latexmk -pdfluainstead oflatexmkif you want to run LuaLaTeX withlatexmk.) – moewe May 12 '23 at 12:15