12

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?

4
  • strace and grepping for “open” (on stderr)
    – Marco
    Jun 12, 2012 at 16:24
  • 1
    Could someone provide the complete definition of the file as an answer, step by step, for dummies like me? Jun 12, 2012 at 16:37
  • You could run it with -norc and see if it makes a difference.
    – N.N.
    Jun 12, 2012 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... Jun 12, 2012 at 18:40

1 Answer 1

14

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.

9
  • 2
    Works like a charm. I put print statement first in my config, and it shows up as the first line in the output. Jun 13, 2012 at 1:55
  • Does someone know why print(__FILE__ . "\n"); returns (eval 13)?
    – Hotschke
    May 21, 2019 at 13:21
  • @Hotschke because you're trying to have perl execute python code? May 21, 2019 at 16:34
  • Why do you think this is python code? __FILE__ is known to perl.
    – Hotschke
    May 21, 2019 at 16:36
  • str.str is perl string concat not python (str+str).
    – Hotschke
    May 21, 2019 at 16:37

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .