I'm writing a command line tool that does some work with latexmk. I specify a specific directory with output-directory.

However when I run latexmk -c subdirectory nothing happens.

Can I do that with latexmk or do I have to change the working directory?


No, the current version doesn't do what you ask. You can just do something like "pushd subdirectory; latexmk -c; popd", which you could automate with a script or an alias.

  • This gives me Latexmk: No file name specified, and I couldn't find any. Ideas? – dow Apr 11 '18 at 2:35

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.