I'm not very familiar with tex, but I have a question about an error I get:

File `latexmk.sty' not found.

The error is caused by this line:


This line is in a documentclass I use.

Does anybody know how to solve this problem?


I created a MWE:


When I compile this I get an error:

File `mfirstuc.sty' not found. \RequirePackage


Stille Bever

  • 2
    As far as I know latexmk is no sty package but a command to simplify the compilation of .tex files. \RequirePackage{latexmk} seems to be rubbish
    – user31729
    Mar 8, 2017 at 20:53
  • 2
    Welcome to TeX.SX! latexmk is a compiling tool, but usually not used as package. Please provide us with a MWE to get further assistance (probably a description of your setup could be useful too).
    – TeXnician
    Mar 8, 2017 at 20:54
  • 1
    Exactly which latex installation are you using? Latexmk will probably not work out of the box on miktex, but does work out of the box with a full texlive or mactex installation
    – daleif
    Mar 8, 2017 at 21:34
  • Miktex and texlive were both installed, I removed miktex from the sytem. Now the problem with the example I gave is gone. However when I add the line \usepackage{glossaries} just below the documentclass I get the following error: File `mfirstuc.sty' not found. \RequirePackage Mar 8, 2017 at 21:43
  • 1
    then your setup in texstudio has the wrong paths set Mar 8, 2017 at 22:15

1 Answer 1


I got the whole thing working, what I did was adding "--shell-escape" to the pdflatex command. Thanks for all your help!

You must log in to answer this question.

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