TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've put .latexmkrc file into my working directory, but it doesn't seem to be doing anything. Is there a way to check that latexmk picks up my configuration file?

share|improve this question
strace and grepping for “open” (on stderr) – Marco Jun 12 '12 at 16:24
Could someone provide the complete definition of the file as an answer, step by step, for dummies like me? – drozzy Jun 12 '12 at 16:37
You could run it with -norc and see if it makes a difference. – N.N. Jun 12 '12 at 17:41
That's the thing - I can't really see if it makes a difference, because there are hundreds of lines of output... – drozzy Jun 12 '12 at 18:40
up vote 7 down vote accepted

A latexmkrc file is just perl code, so you can just put a print statement in it:

# .latexmkrc

print("Hello, world!  I'm a .latexmkrc\n");

# rest of .latexmkrc

For more about useful assignments to make, see the documentation.

share|improve this answer
Thanks: thus I know that my file is loaded. :) – egreg Jun 12 '12 at 19:24
Works like a charm. I put print statement first in my config, and it shows up as the first line in the output. – drozzy Jun 13 '12 at 1:55

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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