[Tex/LaTex] Random asterisk when using BibTeX and res.cls

bibliographiescvresume

I am using res.cls and commented out \nofiles. However when I use BibTeX for my publication list, I get this random * above the references. How do I remove this *?

\documentclass{res} 
\renewcommand{\refname}{}
\begin{document}
\begin{resume}
\section{\centerline{ \underline{SELECTED PUBLICATIONS}}}
\nocite{*}
\bibliography{myPublications}
\bibliographystyle{aiaa} 
\end{resume} 
\end{document}

Best Answer

The problem comes from the line

\section*{\refname}

used inside the thebibliography environment as defined in article.cls (the base document class for res.cls). To prevent the asterisk, add the following lines to the preamble:

\makeatletter
\renewenvironment{thebibliography}[1]
     {\list{\@biblabel{\@arabic\c@enumiv}}%
           {\settowidth\labelwidth{\@biblabel{#1}}%
            \leftmargin\labelwidth
            \advance\leftmargin\labelsep
            \@openbib@code
            \usecounter{enumiv}%
            \let\p@enumiv\@empty
            \renewcommand\theenumiv{\@arabic\c@enumiv}}%
      \sloppy
      \clubpenalty4000
      \@clubpenalty \clubpenalty
      \widowpenalty4000%
      \sfcode`\.\@m}
     {\def\@noitemerr
       {\@latex@warning{Empty `thebibliography' environment}}%
      \endlist}
\makeatother
Related Question