Collectives™ on Stack Overflow
Find centralized, trusted content and collaborate around the technologies you use most.
Learn more about Collectives
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Learn more about Teams
Ask Question
I am writing a paper in LAtex and using Springer macro package (svjour3 class).
Requirement is: citations should be in the form of authoryear and sorted in alphabetical order.
My tex file looks like:
\documentclass[smallextended]{svjour3}
\usepackage{natbib}
\begin{document}
\title{abc}
\bibliographystyle{spbasic} % basic style, author-year citations
%\bibliographystyle{spmpsci} % mathematics and physical sciences
%\bibliographystyle{apa}
%bibliographystyle{spphys} % APS-like style for physics
%\bibliographystyle{plainnat}
\bibliography{review} % name your BibTeX data base
\end{document}
I have used all the possible options of bibliographystyle.
Also I have used various types of options in \usepackage[options]{natbib}
Tried deleting all the temporary files aux, logs and all others.
All entries in bib file have author and year and are separated by commas.
Still I am getting following errors:
Package natbib Error: Bibliography not compatible with author-year citations. ...mmand\NAT@force@numbers{}\NAT@force@numbers
–
\usepackage[numbers,sort&compress]{natbib}
and then add bibliography as:
\bibliographystyle{spbasic}
\bibliography{sample.bib}
That almost did it for me. I changed it to
\usepackage[sort&compress]{natbib}
in the preamble. Cited with
\citep{ReferenceXY}
and added my bib
\bibliographystyle{spbasic}
\bibliography{literature.bib}
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.