![如何仅在一张幻灯片中更改脚注颜色?](https://linux22.com/image/317390/%E5%A6%82%E4%BD%95%E4%BB%85%E5%9C%A8%E4%B8%80%E5%BC%A0%E5%B9%BB%E7%81%AF%E7%89%87%E4%B8%AD%E6%9B%B4%E6%94%B9%E8%84%9A%E6%B3%A8%E9%A2%9C%E8%89%B2%EF%BC%9F.png)
出于某种原因,我想更改幻灯片中引文的颜色。我使用此处发布的代码
作为一名 MWE。
\documentclass{beamer}
\usepackage[style=verbose]{biblatex}
\usepackage{filecontents}% to embed the file `myreferences.bib` in your `.tex` file
\begin{filecontents*}{myreferences.bib}
@online{foo12,
year = {2012},
title = {footnote-reference-using-european-system},
url = {https://tex.stackexchange.com/questions/69716/footnote-reference-using-european-system},
}
\end{filecontents*}
% File is created and written to disk by the above package
\addbibresource{myreferences.bib}
\begin{document}
\begin{frame}
footcite is in default color blue here.\footcite{foo12}
\end{frame}
\begin{frame}
How to make footcite red color here.\footcite{foo12}
\end{frame}
\begin{frame}
\printbibliography
\end{frame}
\end{document}
我该怎么做?我尝试使用 \color{red} 使引用显示为红色,但没有效果。
答案1
要在一帧内局部改变颜色,请将命令放入例如里面,{}
以便将更改保持在此组内。
\documentclass{beamer}
\usepackage[style=verbose]{biblatex}
\usepackage{filecontents}% to embed the file `myreferences.bib` in your `.tex` file
\begin{filecontents*}{myreferences.bib}
@online{foo12,
year = {2012},
title = {footnote-reference-using-european-system},
url = {http://tex.stackexchange.com/questions/69716/footnote-reference-using-european-system},
}
\end{filecontents*}
% File is created and written to disk by the above package
\addbibresource{myreferences.bib}
\begin{document}
\begin{frame}
footcite is in default color blue here.\footcite{foo12}
\end{frame}
{
\setbeamercolor{footnote mark}{fg=red}
\setbeamercolor{footnote}{fg=red}
\begin{frame}
How to make footcite red color here.\footcite{foo12}
\end{frame}
}
\begin{frame}
footcite is in default color blue here.\footcite{foo12}
\end{frame}
\begin{frame}
\printbibliography
\end{frame}
\end{document}