I am using Texmaker to write a paper on Windows 10. My paper contains several sections, so I write each section on a separate tex file and use input to include them into the main file:








On Texmaker, I use Option->Define Current Document as 'Master Document' to define my main file as master, so that I can compile the whole paper while editing, say, the Introduction section.

While reading the pdf file produced by Texmaker on the right, I often want to go back to the latex code (at exact location) on the left to edit, so I use Ctrl + Mouse click. Here comes the error. Say if I am editing the Introduction, and use Ctrl and click on a text of that section, an error message appears "You do not have read permission to this file". Strange enough, if I click "OK" to acknowledge the error message, then the exact location of the code on the left of Texmaker where I want to edit is shown.

I think there should be a way to get rid of that error message so I don't have to click OK every time, but I could not find a solution. Any help would be very much appreciated. Thanks.

Update: I've found this similar question. One possible solution from that link is to use \include instead of \input, or put \clearpage before \input. This will get rid of the error message but also create an unwanted blank page. For editing purpose, I can just use \include and switch back to \input once I am done. The problem is still not completely solved though.

  • texstudio works nicely with \input :) – samcarter_is_at_topanswers.xyz Jan 25 '17 at 19:56
  • I'm having the same problem. It seems to go away when I delete all the auxiliary files (logs, bbl files, etc.), but it comes back after a few compilations. – nukeguy Mar 24 '18 at 21:54

Your Answer

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

Browse other questions tagged or ask your own question.