BibTeX, biblatex and biberBibliography Error caused by Citation

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
Post Reply
Per W
Posts: 3
Joined: Wed Nov 27, 2013 11:51 am

Bibliography Error caused by Citation

Post by Per W »

Hello!

Now I am using TeXworks for writing. I have problems with the bibliography. A typical error looks like the following

At first there is a warning.

Code: Select all

LaTeX Warning: Citation `holm1967' on page 13 undefined on input line 919.
Later come an error.

Code: Select all

! Undefined control sequence.
l.28 \bibitem[\protect\citename
                               {Holm, }1967]{holm1967}
I use these commands to create it.

Code: Select all

\bibliographystyle{authordate1}

\bibliography{article1}
I have created another article with a IEEE template, and it gets correct. In this -bbl filethis. I have

Code: Select all

\bibitem{holm1967}
R.~Holm,
What can be the error?

I have experience with LaTeX throughout the years.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX books
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Bibliography Error caused by Citation

Post by Johannes_B »

Are you able to prepare a minimal working example, showing the relevant packages? This way we can reproduce the exact cause of problems.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
Per W
Posts: 3
Joined: Wed Nov 27, 2013 11:51 am

Bibliography Error caused by Citation

Post by Per W »

Here come the files that I use. They have been shortened, still the problem remains. I used the templates from Inderscience Publishers, specifically the 9.5x6.5 LaTeX format.
Attachments
test.tex
A shortened version of the document.
(1.43 KiB) Downloaded 378 times
test.bib
A shortened version of the bibliography.
(368 Bytes) Downloaded 455 times
singlecol-new.cls
The class file used.
(51.93 KiB) Downloaded 399 times
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Bibliography Error caused by Citation

Post by Johannes_B »

A MWE would be the following:

Code: Select all

\begin{filecontents}{\jobname.bib}
@Book{holm1967,
  author = 	 {Holm, Ragnar},
  ALTeditor = 	 {},
  title = 	 {Electric contacts, theory and applications},
  publisher = 	 {Springer-Verlag},
  year = 	 {1967},
  OPTkey = 	 {},
  OPTvolume = 	 {},
  OPTnumber = 	 {},
  OPTseries = 	 {},
  OPTaddress = 	 {},
  edition = 	 {4th},
  OPTmonth = 	 {},
  OPTnote = 	 {},
  OPTannote = 	 {}
}
\end{filecontents}
\documentclass{article}

\begin{document}
for example by using the theories in~\cite{holm1967}. The biggest variation is in $k$, 


\bibliographystyle{authordate1}
\bibliography{\jobname}

\end{document}
The bibliographystyle authordate1 gives the corrupted bibitem. Authordate1.bst is a very old file, i do not recommend it's usage.

Instead, you could choose the modern package biblatex in conjunction with biber. Many styles are available.

Code: Select all

\begin{filecontents}{\jobname.bib}
@Book{holm1967,
  author = 	 {Holm, Ragnar},
  ALTeditor = 	 {},
  title = 	 {Electric contacts, theory and applications},
  publisher = 	 {Springer-Verlag},
  year = 	 {1967},
  OPTkey = 	 {},
  OPTvolume = 	 {},
  OPTnumber = 	 {},
  OPTseries = 	 {},
  OPTaddress = 	 {},
  edition = 	 {4th},
  OPTmonth = 	 {},
  OPTnote = 	 {},
  OPTannote = 	 {}
}
\end{filecontents}
%\documentclass{singlecol-new}
\documentclass{article}
\usepackage[style=authoryear]{biblatex}
\addbibresource{\jobname.bib}
\begin{document}
for example by using the theories in~\cite{holm1967}. The biggest variation is in $k$, 

\printbibliography
\end{document}
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
Per W
Posts: 3
Joined: Wed Nov 27, 2013 11:51 am

Re: Bibliography Error caused by Citation

Post by Per W »

Thank you for the suggestions, Johannes_B!

After trying further I found out that singlecol-new caused problems. Strange that it was provided by the editorial. I found another class to use.
Post Reply