我在整理投影仪演示文稿时遇到困难。我想将标题、页脚和项目设为绿色。
title: "long title"
date: "10/10/2020"
output:
beamer_presentation:
theme: "CambridgeUS"
keep_tex: true
header-includes:
- \AtBeginDocument{\title[short title]{"long title"}}
- \AtBeginDocument{\author[author1; author2; author3; author4]{author1\\author2\\author3\\author4}}
- \addtobeamertemplate{headline}{\includegraphics[width=\paperwidth,height=2cm,page=2]{img.png}}
---
# Introduction
* text1;
* text2;
* text3;
* text4.
像下面这样的事情应该可以做到。您可以使用
\definecolor
包中的 xcolor
函数来定义可在 setbeamercolor
和 setbeamertemplate
声明中使用的命名颜色。我没有您想要包含的图像,因此我从下面的代码中删除了该行。我也不确定你在说什么页脚。
---
title: "long title"
date: "10/10/2020"
output:
beamer_presentation:
theme: "CambridgeUS"
keep_tex: true
header-includes:
- \AtBeginDocument{\title[short title]{"long title"}}
- \AtBeginDocument{\author[author1; author2; author3; author4]{author1\\author2\\author3\\author4}}
- \usepackage{xcolor}
- \definecolor{olive}{rgb}{0.3, 0.4, .1}
- \setbeamercolor{itemize/enumerate body}{fg=olive}
- \setbeamercolor{title}{fg=green}
- \setbeamercolor{frametitle}{fg=green}
- \setbeamertemplate{itemize item}{\color{green}$\blacktriangleright$}
- \setbeamertemplate{itemize subitem}{\color{green}$\blacktriangleright$}
---
# Introduction
* text1;
* text2;
* text3;
* text4.
有一些有用的资源本维基书标识了许多不同的元素,其颜色可以使用
setbeamercolor
声明进行设置。我还在我的回答中使用了这篇文章。