
Natbib 및 대괄호와 함께 Bibtex를 사용할 때 대괄호의 색상을 변경하는 방법을 아는 사람이 있습니까?
답변1
\bibpunct
다음 을 사용할 수 있습니다 \textcolor
.
\begin{filecontents*}{uvwxyz.bib}
@ARTICLE{example,
author = {Felix Lindlar and Armin Zimmermann},
title = {A code Generation Tool for Embedded Automotive Systems Based on Finite State Machines},
journal = {IEEE International Conference on Industrial Informatics},
year = {2008}
}
\end{filecontents*}
\documentclass{article}
\usepackage{natbib}
\usepackage{xcolor}
\bibpunct{\textcolor{red}{[}}{\textcolor{red}{]}}{,}{a}{}{;}
\begin{document}
\cite{example}
\bibliographystyle{plainnat}
\bibliography{uvwxyz}
\end{document}
답변2
위의 내용을 적용하면 다음과 같이 작동합니다.
\definecolor{bleu_cite}{RGB}{34,111,212} % pure blue: {0,0,128}, light blue:{80,135,208}
\usepackage[
colorlinks=true,
allcolors = black,
citecolor=bleu_cite
]{hyperref}
\usepackage{natbib}
\bibpunct{\textcolor{bleu_cite}{[}}{\textcolor{bleu_cite}{]}}{,}{a}{}{;}