I'm trying to use latexmk -c (or latexmk -C) to clean a directory, but when I run any of these two commands, I get the following:
Latexmk: This is Latexmk, John Collins, 21 May 2019, version: 4.64a.
Latexmk: Disallowing switch of output file as incompatible
with file requests.
The "Disallowing switch..." message seems to be related to the -pdf option. If added (as in, latexmk -c -pdf), the message disappears, and there are no visible effects on the amount of deleted files.
I have a main.tex which contains Beamer code, and when I run latexmk -pdf main.tex, the following files are produced (besides main.pdf itself):
main.fdb_latexmk
main.fls
main.log
main.nav
main.out
main.snm
main.toc
main.vrb
If I run latexmk -c, most of the files are cleaned, but the following remain:
main.nav
main.snm
main.vrb
How can I remove these Beamer-related files using latexmk?
latexmk -c file.texto clean everything related tofile.tex– daleif Jul 02 '19 at 10:28latexmk -cwithout arguments would suffice, removing*.auxand similar files. However, even if I runlatexmk -c main.tex, I get the same result. – anol Jul 02 '19 at 12:23latexmk -version) and which operating system? Using 4.65 on linuxlatexmk -cwith no args works fine. – daleif Jul 02 '19 at 12:34vrb,snmandnavfiles would be helpful. – anol Jul 02 '19 at 12:47latexmkdocumentation to understand what it's about. – John Collins Jul 02 '19 at 14:58