5

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}
Mensch
  • 65,388
Elpezmuerto
  • 1,039
  • 1
    Since res.cls uses \nofiles I wonder how are you producing your bibliography... – Gonzalo Medina Sep 13 '11 at 16:34
  • @Medina I commented \nofiles out – Elpezmuerto Sep 13 '11 at 16:39
  • 1
    It's not random, it's the remains of the \nocite command being misinterpreted. Does it happen when you use a different documentclass, like article? If you remove the \nocite command entirely, does the bibliography disappear? – Mike Renfro Sep 13 '11 at 16:48
  • 1
    @Mike Renfro: no, it's not the \nocite command being misiterpreted. See my answer. – Gonzalo Medina Sep 13 '11 at 16:54
  • My mistake. Could have sworn I'd seen something similar happen in the past, but I could have misinterpreted that, or the situation may have been entirely different. – Mike Renfro Sep 13 '11 at 19:02

3 Answers3

11

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
Gonzalo Medina
  • 505,128
2

Discovered this answer purely accidentally. If you use this answer (by the same author as the accepted answer in this question!) to suppress the "References" title that \bibliographygenerates, then this problem is automatically (auto-magically perhaps!) fixed. So, the overall solution looks cleaner. In the spirit of Tex.SE, am reproducing part of the answer here:

Add these lines to the preamble:

\usepackage{etoolbox}
\patchcmd{\thebibliography}{\section*{\refname}}{}{}{}
TCSGrad
  • 872
0

Another method, that is a bit more hacky, is to basically cover the asterisk by placing a white colorbox behind the bibliography name then moving the bibliography up to cover the asterisk. For example,

\usepackage{xcolor}
\renewcommand\bibname{\vspace{-2em}\colorbox{white}{\large Citations}}
gaara42
  • 31