Following up on gedit [<-- missing link? -->] TexLive

latexmk myfile.tex

delivers this answer:

Latexmk: Could not find file [myfile.tex]

Run number 1 of latex [myfile.tex]

This is pdfTexk, Version 3.141592-1.40.3 (Web2C 7.5.6) 

 %&-line parsing enabled.

entering extended mode

! I can't find file 'myfile.tex'

<*> myfile.tex   

Please type another input file name:

I renamed the file but still it could not be found.

does a .tex file have to be in a specific place in order to be found by latexmk?

  • Are you running this command in the same directory as myfile.tex? Mar 7, 2011 at 17:57
  • @Matthew: Hmm, what to do? Post your comment as an answer or vote to close? Mar 7, 2011 at 20:07
  • @Hendrik, @Alex: OK, I posted my comment as answer. You all can still vote to close if you want. Mar 7, 2011 at 21:27

1 Answer 1


Make sure you are running this command in the same directory as myfile.tex.

You must log in to answer this question.