%20%EC%B0%B8%EC%A1%B0%EB%A1%9C%20%EC%9D%B8%ED%95%B4%20%EC%B0%B8%EA%B3%A0%EB%AC%B8%ED%97%8C%20URL%EC%9D%B4%20%EB%91%90%20%EC%97%B4%EC%97%90%20%EA%B1%B8%EC%B3%90%20%EC%9C%A0%EC%B6%9C%EB%90%98%EB%8A%94%20%EA%B2%83%EC%9D%84%20%EB%B0%A9%EC%A7%80%ED%95%98%EB%8A%94%20%EB%B0%A9%EB%B2%95%EC%9D%80%20%EB%AC%B4%EC%97%87%EC%9E%85%EB%8B%88%EA%B9%8C%3F.png)
내 인용 스타일은 Harvard였으면 좋겠습니다.
나는 다음을 사용하고 있습니다 :
\documentclass[conference]{IEEEtran}
\usepackage[comma]{natbib}
\usepackage{url}
\begin{document}
foo \citep{vitz_history_2016}
\bibliographystyle{IEEEtran}
\bibliography{references}
\end{document}
파일 의 예에서 인용 .bib
:
@online{vitz_history_2016,
year = {2016},
title = {History of the Periodic Table},
url = {https://chem.libretexts.org/Bookshelves/Ancillary_Materials/Exemplars_and_Case_Studies/Exemplars/Culture/History_of_the_Periodic_Table},
titleaddon = {Chemistry {LibreTexts}},
author = {Vitz, Ed and Moore, John and Shorb, Justin and Prat-Resina, Xavier and Wendorff, Tim and Hahn, Adam},
urldate = {2019-11-25},
date = {2016-05-26},
langid = {english},
file = {fname}
}
저는 일반적으로 \cite{author}
and 를 사용하여 문서를 생성하므로 URL을 \bibliographystyle{IEEEtran}
포함하면 \usepackage{url}
올바르게 표시됩니다.
나는 두 번째 예와 동일한 참조가 나타나기를 원하지만 첫 번째 예와 마찬가지로 Harvard 스타일 인용을 사용합니다.
어떤 도움이라도 주시면 감사하겠습니다!
답변1
여러 가지 문제가 있는 것 같습니다.
IEEEtran
문서 클래스를 사용하고 있으므로 패키지IEEEtran
와 함께 참고문헌 스타일을 사용하는 것은 및 명령natbib
과 함께 독점적으로 사용해야 합니다 . 둘 다 숫자 스타일 인용 콜아웃을 생성합니다. 참고문헌 스타일 에서는 실제로 사용할 수 없습니다 .\cite
\citep
\citet
IEEEtran
natbib
문서 클래스 와 함께 패키지를 사용하려면IEEEtran
아마도 참고문헌 스타일을 사용해야 합니다IEEEtranN
. (N
in 은 ...IEEEtranN
을 의미합니다natbib
.) 이 설정을 사용하면 숫자 스타일 설명선이 계속 생성되지만\cite
이제는 작성자를 생성한다는 의미에서 "작동"합니다.\citep
\citet
숫자스타일 인용 콜아웃. 하지만 아무리 노력해도 이 설정으로 작성자를 생성할 수는 없습니다.년도스타일(일명 "하버드 스타일" 및 "agsm 스타일"), 인용 설명입니다.@moewe의 의견을 반영하겠습니다.
IEEEtran
문서 클래스를 사용해야 하는 대부분의 저널은 숫자 스타일 인용 설명을 사용합니다. 그들은 아마도 저자 번호나 저자 연도 스타일의 인용 표시를 사용하는 제출물을 거부할 것입니다.오타가 아닌 경우를 대비해 올바른 구문은
\citep{<some_key>}
, not 입니다\citep(<some_key>)
.
\documentclass[conference]{IEEEtran}
\begin{filecontents}[overwrite]{mybib.bib}
@online{vitz_history_2016,
year = {2016},
title = {History of the Periodic Table},
url = {https://chem.libretexts.org/Bookshelves/Ancillary_Materials/Exemplars_and_Case_Studies/Exemplars/Culture/History_of_the_Periodic_Table},
titleaddon = {Chemistry {LibreTexts}},
author = {Vitz, Ed and Moore, John and Shorb, Justin and Prat-Resina, Xavier and Wendorff, Tim and Hahn, Adam},
urldate = {2019-11-25},
date = {2016-05-26},
langid = {english},
file = {fname}
}
\end{filecontents}
\usepackage[numbers,comma]{natbib}
\bibliographystyle{IEEEtranN} % not 'IEEEtran'
\usepackage{xurl}
\usepackage[colorlinks,allcolors=blue]{hyperref} % just for this example
\begin{document}
foo \citep{vitz_history_2016} % not "\citep(author)"
bar \citet{vitz_history_2016}
\bibliography{mybib}
\end{document}
부록\bibliographystyle{IEEEtranN}
: 로 바꾸면 첫 번째 스크린샷에 표시된 밑줄 대신 아래 첨자를 사용하여 줄바꿈되지 않은 끔찍해 보이는 URL 문자열을 실제로 재현할 수 있습니다 \bibliographystyle{agsm}
. 스타일 agsm
은 꽤 오래되었으며 이라는 매크로를 사용합니다 \harvardurl
.~ 아니다\url
URL 문자열을 조판할 때 와 동일한 예방 조치를 취하십시오 . 이러한 주의 사항은 URL 문자열에 나타날 수 있는 _
및 등의 TeX 특수 문자와 관련이 있습니다 . %
(이 점을 지적해주신 @moewe에게 감사드립니다!)
만약 너라면~ 해야 하다참고문헌 스타일을 사용 agsm
하는 경우 진행하는 방법에는 두 가지가 있습니다. 첫째, 지침을 제공할 수 있습니다.
\renewcommand\harvardurl{\textbf{URL:} \url}
후에 \bibliographystyle{agsm}
. 둘째, 바꿀 수 있다
url = {https://chem.libretexts.org/Bookshelves/Ancillary_Materials/Exemplars_and_Case_Studies/Exemplars/Culture/History_of_the_Periodic_Table},
에게
url = {\url{https://chem.libretexts.org/Bookshelves/Ancillary_Materials/Exemplars_and_Case_Studies/Exemplars/Culture/History_of_the_Periodic_Table}},
물론 두 방법 모두 "실제" 매크로를 정의하는 url
적절한 패키지를 로드했다고 가정합니다 .xurl
\url
참고로 참고문헌 스타일을 사용하려면 패키지를 직접 로드하는 것이 아니라 패키지를 agsm
로드해야 합니다 . 왜? 턱받이 스타일은har2nat
natbib
agsm
하버드일부 특수 명령이 포함된 인용 관리 패키지입니다. 패키지는 har2nat
(a) 패키지를 로드 natbib
하고 (b) harvard
특정 매크로를 패키지가 인식하는 매크로로 "변환"합니다 natbib
. 이는 hyperref
문서에서 패키지를 사용하려는 경우 특히 유용합니다 . 패키지 hyperref
와 완전히 호환되지만 natbib
패키지와는 덜 호환됩니다 harvard
.
\documentclass[conference]{IEEEtran}
\begin{filecontents}[overwrite]{mybib.bib}
@online{vitz_history_2016,
year = {2016},
title = {History of the Periodic Table},
url = {\url{https://chem.libretexts.org/Bookshelves/Ancillary_Materials/Exemplars_and_Case_Studies/Exemplars/Culture/History_of_the_Periodic_Table}},
titleaddon = {Chemistry {LibreTexts}},
author = {Vitz, Ed and Moore, John and Shorb, Justin and Prat-Resina, Xavier and Wendorff, Tim and Hahn, Adam},
urldate = {2019-11-25},
date = {2016-05-26},
langid = {english},
file = {fname}
}
\end{filecontents}
\usepackage{har2nat} % not 'natbib' directly
\bibliographystyle{agsm}
\usepackage{xurl}
\usepackage[colorlinks,allcolors=blue]{hyperref}
\begin{document}
foo \citep{vitz_history_2016} % not "\citep(author)"
bar \citet{vitz_history_2016}
\bibliography{mybib}
\end{document}