我想找到最有效的方法,使徽标作为标题和作者姓名下的大徽标出现在 Rmarkdown/Quarto 中的投影仪演示文稿的标题页上。相同的徽标应作为角落中的小图形出现在所有幻灯片(第一张幻灯片除外)上。
两个徽标(标题徽标和角徽标)的大小和位置都应该易于操作。
最好的方法是将解决方案合并到标题中引用的样式文件中。标题示例:
---
title: "sample title"
author: author name
format:
beamer:
theme: Boadilla
colortheme: "seagull"
include-in-header: presentQuartoStyle.sty
---
目前,我有一个解决方案,可以通过简单的方式将徽标放置在角落里。缺点包括它出现在所有幻灯片上,包括第一张幻灯片,并且不容易操纵其大小和位置。
当前QuartoStyle.sty文件的内容:
\usepackage{graphicx}
\setlength{\fboxsep}{0.5pt}
\setbeamertemplate{logo}{\includegraphics[width=2cm]{logo.png}}
---
title: "sample title"
author: author name
format:
beamer:
theme: Boadilla
colortheme: "seagull"
header-includes:
- \logo{\ifnum\thepage>1\includegraphics[width=1cm]{example-image-duck}\fi}
- \titlegraphic{\includegraphics[width=3cm]{example-image-duck}}
---