哈佛風格的引文:“and”在運行文本中,但“&”在括號中

哈佛風格的引文:“and”在運行文本中,但“&”在括號中

根據出版商的要求,在遵循哈佛風格引用時,在運行文本中作者之間的連接符需要是“and”,而在括號引用中則需要使用“&”號。如何實現這項目標?

在目前的 MWE 中,兩種情況下的連接符號都是“&”,但第一個引用應該顯示為“Li and Wang (2020)”。

微量元素: 微量元素

\documentclass{article}

\usepackage[longnamesfirst]{natbib}
\bibliographystyle{agsm}

\usepackage{filecontents}

\begin{filecontents}{references.bib}
@article{li2020most,
    author = {Li, Ming and Wang, Qiang},
    title = {The most important paper of the century},
    journal = {Journal of Nonexistence},
    volume = {25},
    number = {4},
    pages = {250--251},
    year = {2020},
}
\end{filecontents}

\begin{document}

I first cite \citet{li2020most} in the running text then cite the same paper
parenthetically \citep{li2020most}.

\bibliography{references}

\end{document}

答案1

您的格式要求最好透過從natbib引文管理套件切換到apacite套件(帶有選項natbibapa,以便您可以繼續使用\citet\citep)以及從agsmbib 樣式切換到apacitebib 樣式來處理。

在此輸入影像描述

\documentclass{article}
\begin{filecontents}[overwrite]{references.bib}
@article{li2020most,
    author  = {Li, Ming and Wang, Qiang},
    title   = {The most important paper of the century},
    journal = {Journal of Nonexistence},
    volume  = {25},
    number  = {4},
    pages   = {250--251},
    year    = {2020},
}
\end{filecontents}

%\usepackage[longnamesfirst]{natbib}
%\bibliographystyle{agsm}
\usepackage[natbibapa]{apacite}
\bibliographystyle{apacite}

\begin{document}
\citet{li2020most}, \citep{li2020most}.
\bibliography{references}
\end{document}

附錄解決OP的後續問題。 OP 表示他/她的出版商有單獨的格式要求,上述建議的方法可能會違反該要求。為了滿足出版商的補充要求,我建議按以下步驟進行:

  • 在您的 TeX 發行版中找到該檔案apacite.sty。複製該檔案並呼叫該副本,例如apacite-natbibapa-nosort.sty. (選擇這個名稱的原因很快就會顯而易見。)

  • apacite-natbibapa-nosort.sty在文字編輯器中開啟文件;你用來編輯 tex 檔的程式就可以了。

  • 在第 46 行,更改

    \ProvidesPackage{apacite} 
    

    \ProvidesPackage{apacite-natbibapa-nosort} 
    
  • 更改字串的所有三個實例

    [longnamesfirst,sort]
    

    [longnamesfirst]
    

    即刪除“排序”選項。在我的文件副本中,字串出現在第 998、1000 和 1002 行。

  • 將檔案儲存apacite-natbibapa-nosort.sty到包含主 tex 檔案的目錄中。

  • 在您的主 tex 檔中,請務必包含說明

    \usepackage[natbibapa]{apacite-natbibapa-nosort}
    \bibliographystyle{apacite}
    

    在序言中。

快樂 BibTeXing。

相關內容