【问题标题】:Putting image the top centered with the beamer in R-markdown将图像放在 R-markdown 中以投影仪为中心的顶部
【发布时间】:2020-10-08 15:54:40
【问题描述】:

尊敬的,

我需要你的帮助。

从下面的代码中,我如何把这个标志放在标题的顶部?

---
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"
---

感谢您的帮助。

【问题讨论】:

    标签: latex r-markdown presentation beamer


    【解决方案1】:

    您可以将图像添加到标题页模板,而不是使用\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"
    ---
    

    【讨论】:

    • 非常好,非常感谢@samcarter_is_at_topanswers.xyz !!!
    猜你喜欢
    • 2015-04-01
    • 2021-05-11
    • 2019-08-03
    • 2016-04-21
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-10-02
    相关资源
    最近更新 更多