BibTeX, biblatex and biber ⇒ The bibliography prints a * (star) on the first line.
The bibliography prints a * (star) on the first line.
Question: When I call
\nocite{*}
\bibliographystyle{amsplain}
\bibliography{CV}
in my resume (using the res.cls class readily available on the web) I always get a * (star) in the output and then the publication list on the next line. I've checked the .bib file and using a simple case can't find anything that would cause this. It goes away if I don't call \biblio{} etc in my resume.tex. Anyone know how to fix?
Thanks!
-J
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
Re: The bibliography prints a * (star) on the first line.

- Stefan Kottwitz
- Site Admin
- Posts: 10360
- Joined: Mon Mar 10, 2008 9:44 pm
Re: The bibliography prints a * (star) on the first line.
did you redefine \section or \chapter? This could cause the remaining * if the bibliography environment calls \section* or \chapter* as usual. In that case you could redefine \section* or \chapter*.
Stefan
Re: The bibliography prints a * (star) on the first line.
So it took a while to analyze the class file and you are right Stefan, it is redefining \section. I'm not sure where the problem is though. The offending file plus sample is attached. Think I could bug you to take a quick look? :S
Thanks for any assistance!
-joshua
- Attachments
-
- CV2.tex
- sample biblio, rename to .bib pls.
- (465 Bytes) Downloaded 494 times
-
- test123.tex
- A minimum working copy of a resume with *
- (485 Bytes) Downloaded 482 times
-
- res.cls
- the resume class file.
- (24.52 KiB) Downloaded 495 times
The bibliography prints a * (star) on the first line.
At the very end
Code: Select all
\let\section\@@section
\let\section*\@@section*
As far as I know, \let\section* does not even make sense, so you might want to complain to who ever is maintaining res.cls
I would change res.cls and out comment that last line
and add this to the preamble of test123.tex
Code: Select all
\makeatletter
\renewenvironment{thebibliography}[1]
{%\section*{\refname}% <--- outcommented
\@mkboth{\MakeUppercase\refname}{\MakeUppercase\refname}%
\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
Re: The bibliography prints a * (star) on the first line.
I think the class file is a bit old so contacting the author is most likely out of the question. Can anyone recommend a good resource on how to make latex macros? I have Latex by Lamport which is pretty good but I think it's not really for messing with advanced features. I guess what I'd really like to do is write a class file to do exactly what I want (for the resume to start) without trying to fuss with something that doesn't quite do it.
-Joshua