TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Following up on gedit [] 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?

share|improve this question
Are you running this command in the same directory as myfile.tex? – Matthew Leingang Mar 7 '11 at 17:57
right question! solved, thanks :-) – user3992 Mar 7 '11 at 18:31
@Matthew: Hmm, what to do? Post your comment as an answer or vote to close? – Hendrik Vogt Mar 7 '11 at 20:07
@Hendrik, @Alex: OK, I posted my comment as answer. You all can still vote to close if you want. – Matthew Leingang Mar 7 '11 at 21:27

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

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.