R markdown 中投影仪的颜色变化

R markdown 中投影仪的颜色变化

尊敬的

我在制作投影仪演示文稿时遇到了麻烦。我想将标题、页脚和项目设置为绿色色调。

我感谢任何帮助。

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.

答案1

CambridgeUS主题的大部分元素都基于一种名为 的自定义颜色darkred。如果您将此颜色更改为绿色光谱中的某种颜色,您将获得各种深浅不一的绿色/灰色元素:

---
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]{example-image-duck}}{}
  - \definecolor{darkred}{rgb}{0,0.8,0}
---
# Introduction   

* text1;  

* text2;  
 
* text3;

* text4.

相关内容