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.tex
to clean everything related tofile.tex
latexmk -c
without arguments would suffice, removing*.aux
and similar files. However, even if I runlatexmk -c main.tex
, I get the same result.latexmk -version
) and which operating system? Using 4.65 on linuxlatexmk -c
with no args works fine.vrb
,snm
andnav
files would be helpful.latexmk
documentation to understand what it's about.