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?