以彩色 bibtex 显示作者

以彩色 bibtex 显示作者

如果我通过 调用引用\citet{xxx},它将在我的文档中显示为Author [number],其中数字以我在\hypersetup{citecolor=red}while中定义的颜色显示Author,并[]以黑色显示。natbib我使用的选项是:

\usepackage[square,colon,sort&compress,numbers]{natbib}

是否可以让整个参考文献(Author[number])以红色显示?或者至少是作者和编号?

梅威瑟:

\documentclass[12pt]{article}
\usepackage{cite}
\usepackage{color}
\usepackage{hyperref}
\usepackage[square,colon,sort&compress,numbers,nonamebreak]{natbib}
\hypersetup{colorlinks,citecolor=red,linkcolor=red}

\begin{document}

blablabla \citet{Ref1} blabla.....

\newpage
\bibliographystyle{unsrtnat}
\bibliography{BibliographyFile}

\end{document}

@article{Ref1, 
author    = "Author1, A1. and Author2, A2.",
title     = "xxxxxxxxxxxxxxxx",
journal   = "xxxxxxxxxxxxxxxxxxxx",
volume    = "YY",
number    = "ZZ",
year      = "XXXX",
url={web},
pages     = "x-y",
} 

MWE 是:

\documentclass[12pt]{article}
\usepackage{cite}
\usepackage{color}
\usepackage{hyperref}
\usepackage[square,colon,sort&compress,numbers,nonamebreak]{natbib}
\hypersetup{colorlinks,citecolor=red,linkcolor=red}

\begin{document}

blablabla \citet{Ref1} blabla.....

\newpage
\bibliographystyle{unsrtnat}
\bibliography{BibliographyFile}

\end{document}

@article{Ref1, 
author    = "Author1, A1. and Author2, A2.",
title     = "xxxxxxxxxxxxxxxx",
journal   = "xxxxxxxxxxxxxxxxxxxx",
volume    = "YY",
number    = "ZZ",
year      = "XXXX",
url={web},
pages     = "x-y",
} 

相关内容