仅在ioslides RStudio中的第一张(主)幻灯片上添加徽标 [英] add logo only on first (main) slide in ioslides RStudio

查看:98
本文介绍了仅在ioslides RStudio中的第一张(主)幻灯片上添加徽标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在RStudio中使用ioslides(rmarkdwon)从R创建演示文稿.我想添加徽标,但仅添加到呈现此信息的第一张幻灯片(主)上:

I'm using ioslides (rmarkdwon) in RStudio to create the presentation from R. I would like to add the logo, but only to the first slide (main) which renders this information:

---
title: "Presentation"
author: "Tom Hanks"
output: ioslides_presentation
logo: logo.jpg
---

我不希望徽标出现在每张幻灯片的左下角.谁能告诉我如何将其关闭?

I don't want the logo in the bottom-left footer of each slide. Can anyone tell me how to switch it off?

推荐答案

您可以修改ioslide模板,以删除每页上徽标的重复.在rmarkdown github存储库上下载模板 或在计算机上找到您的本地版本.删除以下部分:

You could modify the ioslide template to remove the repetition of the logo on each page. Download the template on the rmarkdown github repository or find your local version on your computer. Remove the following part:

$if(logo)$
    slides > slide:not(.nobackground):before {
      font-size: 12pt;
      content: "";
      position: absolute;
      bottom: 20px;
      left: 60px;
      background: url($logo$) no-repeat 0 50%;
      -webkit-background-size: 30px 30px;
      -moz-background-size: 30px 30px;
      -o-background-size: 30px 30px;
      background-size: 30px 30px;
      padding-left: 40px;
      height: 30px;
      line-height: 1.9;
    }
$endif$

将结果文件另存为您的pandoc主页中的default.ioslides:

Save the resulting file as default.ioslides in your pandoc home:

$HOME/.pandoc/templates (unix)
C:\Documents And Settings\USERNAME\Application Data\pandoc\templates (windows XP)
C:\Users\USERNAME\AppData\Roaming\pandoc\templates (windows 7)

在Yaml前件中链接的logo现在应该仅显示在标题幻灯片上.

The logo linked in your yaml front matter should now only appear on the title slide.

(我在此处回答了类似的问题)

(I answered a similar question here)

这篇关于仅在ioslides RStudio中的第一张(主)幻灯片上添加徽标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆