LaTeX forum ⇒ BibTeX, biblatex and biberBibliography Error caused by Citation

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

Bibliography Error caused by Citation

Postby Per W » Wed Nov 27, 2013 12:06 pm

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.
  1. LaTeX Warning: Citation `holm1967' on page 13 undefined on input line 919.

Later come an error.
  1. ! Undefined control sequence.
  2. l.28 \bibitem[\protect\citename
  3. {Holm, }1967]{holm1967}

I use these commands to create it.
  1. \bibliographystyle{authordate1}
  2.  
  3. \bibliography{article1}

I have created another article with a IEEE template, and it gets correct. In this -bbl filethis. I have
  1. \bibitem{holm1967}
  2. R.~Holm,

What can be the error?

I have experience with LaTeX throughout the years.

Tags:

User avatar
Johannes_B
Site Moderator
Posts: 4103
Joined: Thu Nov 01, 2012 4:08 pm

Postby Johannes_B » Wed Nov 27, 2013 3:29 pm

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

Postby Per W » Wed Nov 27, 2013 5:13 pm

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 215 times
test.bib
A shortened version of the bibliography.
(368 Bytes) Downloaded 315 times
singlecol-new.cls
The class file used.
(51.93 KiB) Downloaded 255 times

User avatar
Johannes_B
Site Moderator
Posts: 4103
Joined: Thu Nov 01, 2012 4:08 pm

Postby Johannes_B » Wed Nov 27, 2013 6:31 pm

A MWE would be the following:

  1. \begin{filecontents}{\jobname.bib}
  2. @Book{holm1967,
  3. author = {Holm, Ragnar},
  4. ALTeditor = {},
  5. title = {Electric contacts, theory and applications},
  6. publisher = {Springer-Verlag},
  7. year = {1967},
  8. OPTkey = {},
  9. OPTvolume = {},
  10. OPTnumber = {},
  11. OPTseries = {},
  12. OPTaddress = {},
  13. edition = {4th},
  14. OPTmonth = {},
  15. OPTnote = {},
  16. OPTannote = {}
  17. }
  18. \end{filecontents}
  19. \documentclass{article}
  20.  
  21. \begin{document}
  22. for example by using the theories in~\cite{holm1967}. The biggest variation is in $k$,
  23.  
  24.  
  25. \bibliographystyle{authordate1}
  26. \bibliography{\jobname}
  27.  
  28. \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.

  1. \begin{filecontents}{\jobname.bib}
  2. @Book{holm1967,
  3. author = {Holm, Ragnar},
  4. ALTeditor = {},
  5. title = {Electric contacts, theory and applications},
  6. publisher = {Springer-Verlag},
  7. year = {1967},
  8. OPTkey = {},
  9. OPTvolume = {},
  10. OPTnumber = {},
  11. OPTseries = {},
  12. OPTaddress = {},
  13. edition = {4th},
  14. OPTmonth = {},
  15. OPTnote = {},
  16. OPTannote = {}
  17. }
  18. \end{filecontents}
  19. %\documentclass{singlecol-new}
  20. \documentclass{article}
  21. \usepackage[style=authoryear]{biblatex}
  22. \addbibresource{\jobname.bib}
  23. \begin{document}
  24. for example by using the theories in~\cite{holm1967}. The biggest variation is in $k$,
  25.  
  26. \printbibliography
  27. \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

Postby Per W » Thu Nov 28, 2013 6:38 pm

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.


Return to “BibTeX, biblatex and biber”

Who is online

Users browsing this forum: No registered users and 2 guests