Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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}
share|improve this question
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

1 Answer 1

up vote 8 down vote accepted

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
share|improve this answer
    
Perfect answer, asterisk gone! –  Elpezmuerto Sep 13 '11 at 17:03

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.