After learning about latexmk I really would love to use it within TexStudio. For bibliography, I'm also using biber.

  • Is this possible?
  • It would be very nice, if perhaps somebody could give me a hint about how to configure this, please? (I am using Ubuntu 16.04 and TexLive)?

1 Answer 1


Yes it is possible and also quite easy.:

  • Go to Configurate TexStudio and then choose Commands, scroll down and insert in latexmk latexmk -lualatex -silent -latexoption="-synctex=1" %
  • Be carefull with scrolling it may change what you have entered without noticing it (this was my mistake all the time)

Example configuration

  • If using the option -lualatex there is no need for -pdf
  • -synctex=1 flag allows you to jump between the pdf-viewer and the editor by simple clicking on the desired part.
  • Important notice: Latexmk: Run number X of rule 'pdflatex' doesn't mean you are using pdflatex, because the 'pdflatex' is handled as placeholder. It is using lualatex (when you use the -lualatex Option) (See Note 2 in the offical manual)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.