![ハーバード参照スタイルでは著者名と年が表示されませんか?](https://rvso.com/image/392344/%E3%83%8F%E3%83%BC%E3%83%90%E3%83%BC%E3%83%89%E5%8F%82%E7%85%A7%E3%82%B9%E3%82%BF%E3%82%A4%E3%83%AB%E3%81%A7%E3%81%AF%E8%91%97%E8%80%85%E5%90%8D%E3%81%A8%E5%B9%B4%E3%81%8C%E8%A1%A8%E7%A4%BA%E3%81%95%E3%82%8C%E3%81%BE%E3%81%9B%E3%82%93%E3%81%8B%3F.png)
ハーバードスタイルの引用を取得するために、以下のコードを使用します。パッケージを使用してnatbib
、を使用しました \bibliographystyle{agsm}
。参考文献セクションでハーバードスタイルを取得します。ただし、ドキュメントの本文では、「1」というエラーが、必要な著者年形式ではなく、正しく入力されていません。修正できません。このエラーの可能性についてご意見をお聞かせください。
\documentclass[review]{elsarticle}
\usepackage{natbib}
%\journal{Journal of \LaTeX\ Templates}
\begin{document}
This is a test doc \cite{testref}.
\section*{References}
\bibliographystyle{agsm}
\bibliography{ref}
\end{document}
そして、次の変更により、テキスト内に名前が表示されますが、括弧が追加されます1下記のように年は記載されていません
\documentclass[review]{elsarticle}
\usepackage{natbib}
%\journal{Journal of \LaTeX\ Templates}
\begin{document}
This is a test doc \citet{testref}.
\section*{References}
\bibliographystyle{plainnat}
%\bibliographystyle{agsm}
\bibliography{ref}
\end{document}
答え1
クラスelsarticle
はすでに をロードしていますnatbib
。デフォルトでは はオプションnatbib
とともにロードされnumbers
、数値引用を生成します。著者年引用の場合は、オプションelsarticle
とともにロードできますauthoryear
。
ドキュメントelsarticle
§11で説明されている文献(13ページ)
natbib
elsarticle
パッケージは、デフォルトででロードされますnumbers
。クラスロードコマンドに オプションを追加することで、これを author-year または harvard スキームに変更できますauthoryear
。パッケージのその他のオプションを使用する場合は、セクション 4 で説明されている コマンドnatbib
を使用します。\biboptions
使用法。
\documentclass[review,authoryear]{elsarticle}
\begin{document}
This is a test doc \citep{sarfraz}.
As \citet{sarfraz} found.
\bibliographystyle{agsm}
\bibliography{biblatex-examples}
\end{document}
elsarticle
独自のファイル セットが付属していることに注意してください.bst
。Elsevier ジャーナルに投稿する予定がある場合 (これがクラスを使用する唯一の正当な理由だと私は考えています)、著者年引用については ではなくelsarticle
を確認することをお勧めします。elsarticle-harv
asgm
\documentclass[review,authoryear]{elsarticle}
\begin{document}
This is a test doc \citep{sarfraz}.
As \citet{sarfraz} found.
\bibliographystyle{elsarticle-harv}
\bibliography{biblatex-examples}
\end{document}