
出版社の要件により、ハーバード スタイルに従って引用する場合、本文では著者間の接続記号は「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
) に切り替え、agsm
bib スタイルから bib スタイルに切り替えることで最も適切に処理されますapacite
。
\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}
文字列の3つのインスタンスをすべて変更します
[longnamesfirst,sort]
に
[longnamesfirst]
つまり、「sort」オプションを削除します。ファイルの私のコピーでは、文字列は 998 行目、1000 行目、および 1002 行目にあります。
apacite-natbibapa-nosort.sty
メインの tex ファイルが含まれているディレクトリにファイルを保存します。メインのTexファイルには、必ず以下の指示を記載してください。
\usepackage[natbibapa]{apacite-natbibapa-nosort} \bibliographystyle{apacite}
前文に。
BibTeXを楽しんでください。