I have a TeX file with an embedded file from the command \embedfile{\jobname.org}. I'd like to stop latexmk from running when the embedded file changes. There is no official option for latexmk to ignore certain files, but it seems like in my specific use case it might be possible with the $hash_calc_ignore_pattern option.
I've added each of the following (one at a time) to my ~/.latexmkrc:
$hash_calc_ignore_pattern{'pdf'} = '^\\embedfile{\\jobname.org}';
$hash_calc_ignore_pattern{'pdf'} = 'jobname.org';
$hash_calc_ignore_pattern{'pdf'} = '.*jobname.org.*';
However, any time I change the .org file, latexmk still runs. Does anyone have any advice how to get this functionality working?
latexmkcommand is run on a.texfile exported from Org that includes the.orgsource. So thehash_calc_ignore_patternshould be{'tex'}. Then I just ignore theembedline. Would this work? Or is this also impacted by the bug. – mankoff Feb 18 '16 at 19:00Latexmkdetermines the names of the source files from the.fls(and also.log) file. It then tracks these files for detecting changes in them. Setting$hash_calc_ignore_pattern{'tex']as you propose wouldn't change anything about preventing changes in the.orgfile from causing a rerun ofpdflatex. The second solution in my answer solves your problem, as far as I understand it from your question. If it doesn't solve your problem, then your problem is different from the one you stated. – John Collins Feb 18 '16 at 19:54mgz.flscontainsmgz.org3x asINPUT ./mgz.organd 1x asINPUT mgz.org. I'll wait for the next release of latexmk. – mankoff Feb 18 '16 at 20:38