I've compiled a LaTeX document successfully by typing
into terminal when in the correct working directory. The document successfully compiles. I'm using TexLive.
I then make changes to the document. For some reason, when I type
latex documentname.tex again, it compiles very quickly and gives me the previous version of the document out.
I've tried deleting the output file and log file and typing
latex documentname.tex yet again, but it still somehow outputs the old version of the document. Same for the
pdflatex command - what is going wrong here? Is there some other command I should be using or extra arguments I can pass in? Even changing the filename of the document does not cause the new version to be compiled - I still get the old one out.