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?
Asked
Active
Viewed 1,644 times
12
Andriy Drozdyuk
- 5,304
1 Answers
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.
Matthew Leingang
- 44,937
- 14
- 131
- 195
-
2Works like a charm. I put
printstatement first in my config, and it shows up as the first line in the output. – Andriy Drozdyuk Jun 13 '12 at 01:55 -
-
@Hotschke because you're trying to have perl execute python code? – Matthew Leingang May 21 '19 at 16:34
-
-
-
@Hotschke you are right, of course. I should have googled before making a snide remark blush. I don't know why, then. – Matthew Leingang May 21 '19 at 16:37
-
@Hotschke The perl monks have some wisdom to share on this subject. – Matthew Leingang May 21 '19 at 16:49
-
-
@Hotschke Yes, it's not obvious to me either. The issue, I think, is that the
.latexmkrcfile is run through perl'sevalfunction, which may not know what file it is reading. I will poke at this when I get a chance next. – Matthew Leingang May 21 '19 at 17:16
straceandgrepping for “open” (on stderr) – Marco Jun 12 '12 at 16:24-norcand see if it makes a difference. – N.N. Jun 12 '12 at 17:41