我读过关于此的问题,有人说这只是包括natbib
包和plainnat
样式。出于某种原因,我的参考资料不会按字母顺序排序。任何帮助都将不胜感激!我对 LaTeX 还很陌生...
我的命令:
\documentclass[a4paper,norsk]{article}
\usepackage{amstext}
\usepackage{makeidx}
\usepackage{graphicx}
\usepackage[comma,authoryear]{natbib}
\usepackage[norsk]{babel}
\usepackage[hmargin=3cm,vmargin=3.5cm]{geometry}
\pagestyle{plain}
\begin{document}
\begin{thebibliography}{56}
\end{thebibliography}
\printindex
\bibliographystyle{plainnat}
\end{document}
答案1
打印参考书目的命令natbib
是\bibliography{<your-bib-file>}
。请勿使用\begin{thebibliography} ... \end{thebibliography}
。
因此下面的文档应该可以工作:
\documentclass[a4paper,norsk]{article}
\usepackage{amstext}
\usepackage{makeidx}
\usepackage{graphicx}
\usepackage[comma,authoryear]{natbib}
\usepackage[norsk]{babel}
\usepackage[hmargin=3cm,vmargin=3.5cm]{geometry}
\pagestyle{plain}
\begin{document}
Insert some \cite{} commands here to your citations.
\printindex
\bibliographystyle{plainnat}
\bibliography{<your-bib-file>} % Insert the name of your bib file here
\end{document}