I have a document class provided by my school which redefines caption. My document builds fine with 0 errors or warnings, but in my output there always appears the word "figure" below the caption of figures and the word "table" above tables. If I comment out the caption redefine in the document class file the problem disappears. Can anyone explain why this is happening? I notice no other effect of removing the redefine, but as I am not too familiar with the latex syntax I'm not exactly sure what it is actually doing, or why it has been redefined.
Caption redefine in document class:
Code: Select all
Code, edit and compile here:
\long\def\@caption#1[#2]#3{\par\addcontentsline{\csname ext@#1\endcsname}{#1}{%\protect\numberline{\csname the#1\endcsname}{\ignorespaces #2}}\begingroup \@parboxrestore \normalsize\@makecaption{\csname fnum@#1\endcsname}{\ignorespaces #3}{#1}\par\endgroup}
I am using png and pdf images.
Previously I used MikTex + TexnicCentre, and after switching to Linux I am now using Texlive + Kile. This problem did not appear when I was using Windows.
Thanks
Dino