I am using elsart.cls to typeset my articles. However, what annoyed me slightly was the 'Preprint submitted to Elsevier' comment on the front page. To get rid of it I edited the elsart.cls file and replaced the line that produced it with something like
I've recently upgraded to 2.7 so had to do the whole thing again. So, I found the elsart.cls file inPreliminary and Incomplete \hfil Current Version \@date\/%
made the necessary changes and saved the file. Then, just to make sure everything works ok, I refreshed the file name database and formats in the MikTeX settings wizard. And so the fun began.C:\Program Files\MiKTeX 2.7\tex\latex\elsevier
I compiled my '.tex' file but still got the old comment on the front page. I checked the log file which says clearly that the file used in compilation is
i.e. the one I modified (not trusting the '.log' file I renamed the 'elsart.cls' file and the '.tex' file stopped compiling - which provides some evidence that this is really the file being used). Ok, so I then renamed the modified file back to 'elsart.cls' and lo and behold, I'm getting the initial 'Preprint submitted to Elsevier' comment on the front page even though there is no corresponding line in the '.cls' file. I deleted all the auxiliary compilation files, and tried again. All to no avail, I can't get rid of it.C:\Program Files\MiKTeX 2.7\tex\latex\elsevier
Does anyone understand what is going on? I certainly don't and would like to, so help would be much appreciated.
Thanks in advance
Pawel
ps. I could probably get the thing to work by saving the modified .cls file in my working directory. But that is kind of a lowly trick and doesn't address the question of what is happening here?