Authoryear 在 tex 中引用樣式,在 Texmaker 中使用 natbib 的問題(在 mac 上)

Authoryear 在 tex 中引用樣式,在 Texmaker 中使用 natbib 的問題(在 mac 上)

我試圖在我的 bibtex 檔案中以 plainnat 風格使用 natbib 。然而,我遇到了很多問題(但是在例如 Sharelatex 中運作得很好)。根據我的程式碼,我收到錯誤:Package natbib Error:參考書目與作者年份引用不相容。

documentclass[a4paper,12pt]{article}
\pagestyle{plain}
\usepackage[english]{babel}
%%%%%%%%%%%%MATH specifications%%%%%%%%%%%%%%%%%
\usepackage{amsmath}%mathematical typesetting
\usepackage{mathptmx}%setter språk og matte til times roman.
\numberwithin{equation}{section}
%%%%%%%%%%%%%%Formatering%%%%%%%%%%%%%%%%%%%%
\usepackage{setspace}%set line spacing
\onehalfspacing
\usepackage[top=2cm, bottom=2cm, left=5cm, right=2cm]{geometry}
\setlength\parindent{0pt} %fjerner innrykk i avsnitt
%%%%%%%%%%%%%Diverse%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{graphicx} 
\newcommand{\Expect}{{\rm I\kern-.3em E}}
%%%%%%%%%%%%%%BIBTEX%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{cite}
\usepackage{natbib}
%also tried \usepackage[round,year,sort&compress]{natbib}

\begin{document}
\newgeometry{a4paper}
\thispagestyle{empty} 
\begin{titlepage}

%here i have my thesis

\bibliography{Master}
\nocite{*}
\begin{doublespacing}   % Double-space the bibliography
\bibliographystyle{plainnat}

我已經嘗試了那裡建議的所有可能的解決方案,但無法使其正常工作...例如,如果我刪除 aux 和 bbl 文件,我會得到:!對齊製表符 & 錯位。等等...

答案1

問題解決了。 Natbib 似乎不支持 jstor 的一些 bibtex 引用。透過使用 BibDesk 重新輸入它們,我沒有出現任何錯誤,並且可以自由地使用我想要的任何樣式。謝謝

相關內容