
Weiß jemand, wie man die Farbe der eckigen Klammern ändert, wenn man Bibtex mit Natbib und eckigen Klammern verwendet?
Antwort1
Sie können \bibpunct
und verwenden \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}
Antwort2
Wenn Sie das oben Gesagte anpassen, funktioniert dies:
\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}{}{;}