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}
5
  • 1
    Since res.cls uses \nofiles I wonder how are you producing your bibliography... Sep 13, 2011 at 16:34
  • @Medina I commented \nofiles out Sep 13, 2011 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? Sep 13, 2011 at 16:48
  • 1
    @Mike Renfro: no, it's not the \nocite command being misiterpreted. See my answer. Sep 13, 2011 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. Sep 13, 2011 at 19:02

3 Answers 3

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
2
  • Perfect answer, asterisk gone! Sep 13, 2011 at 17:03
  • You should also remove natbib as a package if you are using it.
    – osolmaz
    Jun 6, 2015 at 20:50
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}}{}{}{}
0
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}}

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .