특정 참고문헌 스타일을 사용하고 있는데 현재 원하는 방식으로 수정할 수 없습니다. ;)
재생산 단계:
- 다운로드http://acl2016.org/files/acl2016.zip
acl2016.bib
,acl2016.sty
및 추출acl2016.bst
다음과 같은 최소한의 작업 예제를 사용하세요.
\documentclass[10pt]{article} \usepackage{acl2016} \begin{document} \cite{Aho:72} \newcite{Aho:72} \bibliography{acl2016} \bibliographystyle{acl2016} \end{document}
이로 인해
(Aho and Ullman, 1972) Aho and Ullman (1972)
연도에 다른 글꼴 색상(예: 파란색)을 사용하고 싶지만 해당 연도에만 사용하고 싶습니다. 그리고 색상은 참고 문헌 목록에서 인용 \cite
하거나 인용하지 않을 때만 변경되어야 합니다. \newcite
스타일을 사용하여 어떻게 이를 달성할 수 있나요 acl2016
?
답변1
작품을 어딘가에 제출하기 위해 특정 스타일을 사용하는 경우 이를 변경해서는 안 됩니다. 그렇지 않으면 .bst 파일을 수정하는 것이 쉽지 않으므로 biblatex
및 hyperref
.
이런 식으로 연도는 다른 색일 뿐만 아니라 참조에 대한 링크이기도 합니다. 아마도 기본 참조 스타일은 예상/필요/원하는 것이 아니지만 biblatex
매우 구성 가능한 패키지일 것입니다.
\documentclass{article}
\usepackage[colorlinks,citecolor=blue]{hyperref}
\usepackage[style=authoryear,natbib=true]{biblatex}
\addbibresource{IEEEexample.bib}
\begin{document}
Bla bla bla \citep{IEEEexample:articleetal} bla bla.
\printbibliography
\end{document}
예를 들어, 아래 코드는 귀하의 MWE를 정확하게 재현하는 것을 볼 수 있습니다.
\documentclass[10pt]{article}
\usepackage{acl2016}
\usepackage[colorlinks,citecolor=blue]{hyperref}
\usepackage[style=authoryear,natbib=true]{biblatex}
\addbibresource{acl2016.bib}
\DeclareBibliographyDriver{book}{%
\printnames{author}\newunit%
\printfield{year}\newunit%
\printfield{title}\newunit%
\printlist{publisher}\newunit%
\printlist{location} \finentry}
\DeclareNameAlias{sortname}{first-last}
\begin{document}
\citep{Aho:72}
\citet{Aho:72}
\printbibliography
\end{document}