I once tried to use the feynmf package in a .tex file. It didn't work, so I never tried it again. But since then, every .tex document I compile using latexmk takes about 10 times longer to finish. My best guess is that the build settings of latexmk have somehow changed.

I use latexmk via latextools on Atom, which usually executes something like latexmk -cd -e -f -pdf -interaction=nonstopmode -synctex=1 "T2019.tex". The distribution I have is BasicTeX on MacOS, so I've tried...

  • using latexmk via Terminal and latexmk with TeXShop
  • uninstalling my distribution and its data structure as instructed by TUG, then reinstalling BasicTeX
  • uninstalling Atom and deleting the ~/.atom folder, then reinstalling the application
  • making a blank .latexmkrc file in my home directory

but no change. If I use TeXShop without latexmk it is not slow. So is the issue with latexmk? How do I revert back to the way latexmk used to compile?

  • no the increased number of file access in the fls has nothing to do with latexmk or some package, that is due to a change in latex (a future version will reduce this again). But I doubt that it would increase the latexmk compilation time so much, you perhaps have another problem. Apr 29, 2021 at 16:17
  • @UlrikeFischer I've removed mention of fls files in my question. The problem still seems to be linked with latexmk in some way because TeXShop compiles fine.
    – Tim Chan
    Apr 29, 2021 at 19:52
  • 1
    You can use latexmk with TeXShop. Place the line % !TEX program = pdflatexmk at the top of your source file and typeset using Typeset->Typeset (Cmd-T). This actually uses an internal version of latexmk rather than the one in the TeX distribution. See if that helps. Also, do you have a latexmkrc file in the same directory as the source file(s)? Apr 29, 2021 at 20:01
  • @HerbSchulz I tried just there: latexmk with TeXShop is just as slow as latexmk via Terminal or Atom. Also, I don't have a latexmkrc file in the same directory as my source file.
    – Tim Chan
    Apr 29, 2021 at 21:07
  • 1
    TeXShop has been updated to version 4.64. It contains a copy of latexmk 4.73 which solves some problems that cause delays in analysing the log file. Please update TeXShop and use its pdflatexmk engine and see if your problem goes away. May 4, 2021 at 12:30

1 Answer 1


Latexmk 4.72b took a long time to process certain log files. This problem has been corrected in latexmk 4.73.

  • Thank you and John Collins!
    – Tim Chan
    May 5, 2021 at 20:35

You must log in to answer this question.

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