在R-markdown中将图像顶部放在投影仪的中心位置

问题描述

尊敬的

我需要你的帮助。

从下面的代码中,如何将这个徽标放在标题的顶部?

---
title: "Title_article"  
author: "My name"
date: "08/10/2020"
output: 
  beamer_presentation:
    theme: "Madrid"
header-includes: 
- \titlegraphic{\centering \includegraphics[width=1.5cm]{logo.png}\\LARGE}
classoption: "aspectratio=169"
---

感谢您的帮助。

解决方法

您可以将图像添加到标题页模板中,而不使用\titlegraphic

---
title: "Title_article"  
author: "My name"
date: "08/10/2020"
output: 
  beamer_presentation:
    theme: "Madrid"
    keep_tex: true
header-includes: 
- \addtobeamertemplate{title page}{\centering \includegraphics[width=1.5cm]{example-image}\par TEXT}{}
classoption: "aspectratio=169"
---

enter image description here

相关问答

Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其...
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。...
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbc...