[Tex/LaTex] Springer manuscript class natbib not showing references

bibliographiesbibtexcitingnatbib

I can't find a solution anywhere and I am in a hurry 🙁

MWE:

\documentclass[natbib,smallextended]{svjour3}
\begin{document}

 \citep[e.g.][]{rodenbeck2003co} 

 \citet{rodenbeck2003co} 


\bibliographystyle{spbasic}
%\thebibliography{ref.bib}
\begin{thebibliography}{}
@article{rodenbeck2003co,
  title={$CO_2$ flux history 1982--2001 inferred from atmospheric data using a global inversion of atmospheric transport},
  author={R{\"o}denbeck, C and Houweling, S and Gloor, M and Heimann, M},
  journal={Atmospheric Chemistry and Physics},
  volume={3},
  number={6},
  pages={1919--1964},
  year={2003},
  publisher={Copernicus GmbH}
}
\end{thebibliography}{}

\end{document}

the results are coming weird

enter image description here

where they should come looking like the springer format

enter image description here

Best Answer

Your TeX file (say ankhi.tex) should look like this:

\documentclass[natbib,smallextended]{svjour3}
\begin{document}
\citep[e.g.][]{rodenbeck2003co} 
\citet{rodenbeck2003co} 
\bibliographystyle{spbasic}
\bibliography{ankhi}
\end{document}

And the bib database file should contain (named as ankhi.bib):

@article{rodenbeck2003co,
  title={$CO_2$ flux history 1982--2001 inferred from atmospheric data using a global inversion of atmospheric transport},
  author={R{\"o}denbeck, C and Houweling, S and Gloor, M and Heimann, M},
  journal={Atmospheric Chemistry and Physics},
  volume={3},
  number={6},
  pages={1919--1964},
  year={2003},
  publisher={Copernicus GmbH}
}

Please add other bib entries in this file as given above.

Then you need to run the following (pdflatex or latex):

pdflatex ankhi.tex
pdflatex ankhi.tex
bibtex ankhi
pdflatex ankhi.tex

This will generate the PDF successfully.

Related Question