필요한 인용 형식을 얻는 데 문제가 있습니다. 일단 인용하면 번호가 아닌 저자의 이름을 보고 싶습니다. 특이한 점은 항상 숫자를 생성하는 문서 클래스 elsarticle(편집자의 요청입니다)을 사용해야 한다는 것입니다. 여기 내가 가지고 있는 것이 있다
\documentclass{elsarticle}
\usepackage{natbib}
\usepackage[colorlinks=true,linkcolor=black, citecolor=blue, urlcolor=blue]{hyperref}
\begin{document}
\bibliographystyle{plainnat}
\bibliography{references}
\end{document}
누군가 나를 도와줄 수 있나요?
다음은 확장된 MWE입니다.
\documentclass{elsarticle}
\usepackage{amssymb}
\usepackage{graphicx}
\usepackage{amsmath, mathtools}
\usepackage{natbib}
\usepackage[colorlinks=true,linkcolor=black, citecolor=blue, urlcolor=blue]{hyperref}
\usepackage{changes}
\usepackage{appendix}
\usepackage{filecontents}
\usepackage{multirow}
\usepackage{booktabs}
\begin{document}
\section{The Model}
The main environment modifies that of \cite{Diamond1965}, into two main dimensions
\newpage
\bibliographystyle{elsarticle-harv}
\bibliography{references}
\end{document}
답변1
authoryear
클래스 옵션에서 지정해야 합니다 .
\begin{filecontents*}{\jobname.bib}
@article{Diamond1965,
author={J. A. L. Diamond},
title={Some Like It Hot},
journal={J. High Level Cinema},
year={1965},
}
\end{filecontents*}
\documentclass[authoryear]{elsarticle}
\usepackage[colorlinks=true,linkcolor=black, citecolor=blue, urlcolor=blue]{hyperref}
\begin{document}
\section{The Model}
The main environment modifies that of \cite{Diamond1965}, into two main dimensions
\bibliographystyle{plainnat}
\bibliography{\jobname}
\end{document}
환경 filecontents*
은 단지 예제를 독립적으로 만들기 위한 것이므로 필요하지 않습니다. 파일 \bibliography
이름을 갖도록 줄을 변경하십시오 .bib
.
네, 저는 "뜨거운 것이 좋아"가 1965년에 촬영되지 않았다는 것을 알고 있습니다.;-)
클래스가 이미 로드했기 때문에 authoryear
to를 추가하는 natbib
것은 해결책이 아닙니다.elsarticle
\usepackage[authoryear]{natbib}
서문에서는 충돌하는 옵션에 대한 오류만 발생시킵니다.
답변2
문서 클래스를 사용하고 있으므로 참고 문헌 스타일 대신 elsarticle
을 사용할 수도 있습니다 . 이름에서 알 수 있듯이, 저자 연도 스타일 인용(하버드 스타일 인용이라고도 함)과 저자 연도 스타일 인용을 요구하는 대부분의 Elsevier 운영 저널의 지침에 따라 형식이 지정된 참고 문헌을 제공합니다.elsarticle-harv
plainnat
elsarticle-harv.bst
또한 전체 작성자 연도 스타일(숫자 대신 연도 포함)을 활성화하려면 authoryear
documentclass 옵션으로 지정해야 합니다.
\documentclass[authoryear]{elsarticle}
(이 정보는 OP가 MWE를 게시한 후에 추가되었습니다.)
답변3
(모든 패키지 자체를 포함하는) elsevier 참조 스타일을 사용하는 경우 다음과 같은 참고문헌 옵션을 제시할 수 있습니다.
\bibliographystyle{elsarticle-harv}\biboptions{authoryear}