0

So I have been writing my thesis for 2 months it had been working perfectly lets call that file thesis.tex . Then, in order to use the template of my university I had to update MikTex also I installed new packages.(I installed those packages by using a completely separate tex file (let it be trial.tex). I did not make any change at all to thesis.tex).

Any way after that, when I tried to compile thesis.tex it started to give can't write on 'Filename.pdf' error. Note that I absolutely did not change any thing in thesis.tex nor in the folder that thesis.tex is in.

Thus, after installing new packages and updating miktex previously, completely working .tex files now gives that error.

It is very annoying I wasted hours today on this and actually I finished writing my thesis and about to submit it, I just wanted to update miktex and change the template of it before submitting, but now I can't compile thesis.tex which was working flawlessly.

It is very urgent because the deadline is very close. I tried to pause one drive, drop box. Restarted Tex studio, empty disc space. It is not working. Also, when I try to compile trial.tex it also gives cant write on trial.pdf error even if there is and was never trial.pdf.

edit: If I try to compile it in cmd with

pdflatex thesis.tex

I get the error

I can't write on file thesis.pdf please choose another file name:

than I choose another name again it gives same error in infinite loop

3
  • 3
    do the comments about Avast here help: tex.stackexchange.com/q/583097/2388. Side remark: don't update when you are under a pressing deadline. – Ulrike Fischer Feb 12 at 15:37
  • Well, It was a very promising guess but disabling avast did not work, but it changed the error I get a bit. – physshyp Feb 12 at 15:44
  • @UlrikeFischer Wow, after a second try it worked you mam, are a genius. god bless sx – physshyp Feb 12 at 15:48

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.