使用粗体和彩色文本来大写 bibentry 吗?

使用粗体和彩色文本来大写 bibentry 吗?

在我的参考书目中,我希望论文标题大写、红色、加粗。这就是为什么我的 bibtex 条目看起来像这样:

@inproceedings{2015-3,
    Author = {\textbf{James Bond}},
    Booktitle = {Doctoral Symposium at the 37th International Conference on Software Engineering (ICSE 2015)},
    Date-Added = {2014-12-19 10:57:41 +0000},
    Date-Modified = {2014-12-19 10:58:36 +0000},
    Title = {\textcolor{red}{\textbf{{M}essing with {D}evils all over the {W}orld}}},
    Year = {2015}}

这会使字体变粗变红,但大写字母不再起作用。这是为什么?我该怎么办?

答案1

为了实现您的目标,请将您的Title领域更改为

Title = {{\textcolor{red}{\textbf{Messing with Devils all over the World}}}}

即增加一对大括号。

平均能量损失

\documentclass{article}
\usepackage{xcolor}

\begin{filecontents*}{\jobname.bib}
@inproceedings{2015-3,
    Author = {\textbf{James Bond}},
    Booktitle = {Doctoral Symposium at the 37th International Conference on Software Engineering (ICSE 2015)},
    Date-Added = {2014-12-19 10:57:41 +0000},
    Date-Modified = {2014-12-19 10:58:36 +0000},
    Title = {{\textcolor{red}{\textbf{Messing with Devils all over the World}}}},
    Year = {2015}}
\end{filecontents*}

\begin{document}

\nocite{*}
\bibliographystyle{plain}
\bibliography{\jobname}

\end{document} 

在此处输入图片描述

相关内容