Welcome to the Power Users community on Codidact!
Power Users is a Q&A site for questions about the usage of computer software and hardware. We are still a small site and would like to grow, so please consider joining our community. We are looking forward to your questions and answers; they are the building blocks of a repository of knowledge we are building together.
Disable automatic tlmgr updates in Quarto
Let's assume one has a Quarto document which does not compile because of an error in the latex code, e.g. here a simply typo in a macro name:
---
format:
pdf
---
test\newlin test
Quarto will first try to compile this document and when it notices the error it will then try to run tlmgr --update
to update my texlive installation.
Can this automatic update be switched off?
From within the .qmd
file, I can disable them with
---
format:
pdf:
latex-auto-install: false
---
test\newlin test
but I'm looking for some command line option or similar, so I don't have to do this for every file separately.
I'm using quarto render test.qmd --debug
to compile the file.
I had a look into the Quarto source code and found this promising line https://github.com/quarto-dev/quarto-cli/blob/fdaa357e6d1f8656f741fac02c77d18a44955004/src/command/render/latexmk/quarto-latexmk.ts#L89 but when I tried quarto render test.qmd --no-auto-install
I get a message Unknown option --no-auto-install.
1 answer
I didn't yet find a clean solution, but as a dirty hack one can edit the quarto.js
file and change the line
[kLatexAutoInstall]: true,
to
[kLatexAutoInstall]: false,
(this obviously won't survive any updates to Quarto)
0 comment threads