[英]Color change in beamer at 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.
像下面這樣的事情應該做。 您可以使用xcolor
包中的\\definecolor
函數來定義可在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.
有一些有用的資源,這本 wikibook標識了許多不同的元素,它們的顏色可以用setbeamercolor
聲明來設置。 我也在我的回答中使用了這篇文章。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.