Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I tried to compile a file, and LaTeX didn't like something (I have no idea what). Now, when I try to compile, I am told that "The process cannot access the file because it is being used by another process." So apparently, TeX is still trying to compile the file or something. As best as I can tell, the problem is that a synctex.gz file is still (busy). How do I kill this process?

share|improve this question
Could you tell a little bit more what operating system you use etc? Most generic method is a reboot of your computer ;) but if it is not a process but a locked file instead that might not solve your problem entirely. –  hugovdberg Mar 29 at 1:04
In windows, hit CTL-ALT-DEL, and start the task manager. Kill the process named pdflatex.exe. Then close the task manager. –  Steven B. Segletes Mar 29 at 1:04
In WinEdt, under Windows, just click on the "x" button at the upper right corner of WinEdt console. There's also a keyboard shortcut, but I can't rember it at the moment. –  Bernard Mar 29 at 1:26
Another unclear version of this question: tex.stackexchange.com/questions/136226/… –  alfC Mar 29 at 2:02

1 Answer 1

If you are running Linux, you can run $ lsof synctex.gz to find which process has the file open, and then kill it.

share|improve this answer

Your Answer


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

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