如何在.RPres R演示文稿中编辑标题幻灯片样式?

3

我在编辑.RPres R演示文稿的标题幻灯片风格时遇到了麻烦。

我正在使用.css文件设置样式,已经尝试过以下方法:

.title-slide{
text-align: center;
background-color: white;
background-size: cover;
color: black;
font-family: 'Montserrat';}

但是我只能看到字幕标签的白色背景,但幻灯片仍然具有默认样式。我在标题幻灯片中放置了以下代码:

Title of the presentation
========================================================
class: title-slide
author:
autosize: true
css: prueba1.css

Subtitle of the title slide

如果有人可以告诉我如何删除标题幻灯片,那也会对我有所帮助。 我正在使用R版本3.4.4在Linux x86_64虚拟机上。
1个回答

1
我已经找到了如何编辑它的方法。第一张幻灯片恰好是“section”类型,因此,要编辑其样式,我必须在CSS中编写:
.section .reveal .state-background{
background-color: white;
background-size: cover;
}

设置我想要的背景颜色:

.section .reveal h1, h2{
    color: black;
    font-weight: bold;
  }

有了这个,我就可以用我想要的样式制作第一张幻灯片了。 我还没有能够编辑的只有作者和日期。有人知道它们的标签是什么吗?


要更改作者和日期的属性,您可以使用: .section .reveal p{ color: brown; } - Vladimir S.

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接