1

I am using Bibtex for references. Although I used the command \nocite before \printbibliography I still receive the error 'undefined control sequence'. I do not face same problem for command \ref or other commands for bibliography; this problem happens only for \nocite.

\usepackage[style=alphabetic]{biblatex}
\bibliography{bib}
\begin{document}
\nocite{Arnold89}
\printbibliography
\end{document}

where in bibtex file we have

@book {Arnold89,
    AUTHOR = {Arnol\cprime d, V. I.},
     TITLE = {Mathematical methods of classical mechanics},
    SERIES = {Graduate Texts in Mathematics},
    VOLUME = {60},
   EDITION = {Second},
      NOTE = {Translated from the Russian by K. Vogtmann and A. Weinstein},
 PUBLISHER = {Springer-Verlag, New York},
      YEAR = {1989},
     PAGES = {xvi+508},
      ISBN = {0-387-96890-3},
   MRCLASS = {58Fxx (70-02 70H05)},
  MRNUMBER = {997295},
       DOI = {10.1007/978-1-4757-2063-1},
       URL = {https://doi.org/10.1007/978-1-4757-2063-1},
}

and the exact error that I receive is "The compiler is having trouble understanding a command you have used. Check that the command is spelled correctly. If the command is part of a package, make sure you have included the package in your preamble using \usepackage{...}."

YMA
  • 13
  • 1
    As always on the site please provide a self contained but minimal example that otehrs can copy and test as is. Here there are no document class, document env, no bib data etc. – daleif Sep 30 '19 at 15:33
  • 5
    \nociteexpects an actual argument, so perhaps you mean\nocite{*}`. – barbara beeton Sep 30 '19 at 15:40
  • I mean \nocite{document}. It really does not matter; the problem remains for both \nocite{document} and \nocite{*}. – YMA Sep 30 '19 at 16:17
  • Please show us the full error message you receive, if at all possible, please copy-and-paste the message directly from the .log file and do not rely on the possibly abridged version of the message shown by your editor. The message should indicate which command sequence is undefined - which would be a hige help in figuring out what is wrong here. As others have said, both \cite{} and \nocite{} will quite probably fail since they expect an existing cite key (which can not be empty with Biber) or \nocite{*}. – moewe Oct 02 '19 at 15:01
  • Note that \bibliography{bib.bib} is superfluous if you already have a corresponding \addbibresource line. In any case the command \bibliography expects the file name without extension, but \addbibresource expects the file name with extension. Finally, please consider showing us enough code to actually reproduce your error (we need the relevant .bib entries as well as a document starting with \documentclass and containing \begin{document}...\end{document}). See https://tex.meta.stackexchange.com/q/228/35864 and https://tex.meta.stackexchange.com/q/4407/35864. – moewe Oct 02 '19 at 15:03
  • Any news here? Did you manage to make the code work? If not, can you please show us a complete example document and the full error message you get (see my last two comments above). In its current form this question can not be answered properly and if the important details are not added in due time I will vote to close this question as unclear what you are asking. – moewe Oct 06 '19 at 15:31
  • @moewe I edited the question with the exact error message and code you can compile. – YMA Oct 08 '19 at 12:51
  • @moewe I have corrected the extensions that you mentioned but the error still exists. – YMA Oct 08 '19 at 12:56
  • The quoted message is still not the full error message. I believe it is additional text added by Overleaf to give some context, but the red error message in the messages tab should contain even more details, in particular the actual output of the TeX engine, where you should find an indication which command is undefined. Though \cprime is a good guess for the undefined command. – moewe Oct 09 '19 at 06:09

1 Answers1

1

\cprime is not defined by the packages you show. Either add a package that defines it or remove it from your bib file.

With \cprime removed and \usepackage{textcomp}:

enter image description here

@book {Arnold89,
    AUTHOR = {Arnol\textquotesingle d, V. I.},
     TITLE = {Mathematical methods of classical mechanics},
    SERIES = {Graduate Texts in Mathematics},
    VOLUME = {60},
   EDITION = {Second},
      NOTE = {Translated from the Russian by K. Vogtmann and A. Weinstein},
 PUBLISHER = {Springer-Verlag, New York},
      YEAR = {1989},
     PAGES = {xvi+508},
      ISBN = {0-387-96890-3},
   MRCLASS = {58Fxx (70-02 70H05)},
  MRNUMBER = {997295},
       DOI = {10.1007/978-1-4757-2063-1},
       URL = {https://doi.org/10.1007/978-1-4757-2063-1},
}
fevor
  • 243