如何在R的revealjs演示文稿中制作小写标题?

时间:2017-08-01 13:23:08

标签: html css r reveal.js

我希望在R.的revealjs演示文稿中有一个小写标题。默认标题是大写的,我找不到任何内置选项来更改它,所以我创建了一段HTML代码来做到这一点。

我的a.html文件:

<style>
.title-custom {
text-align: right;
text-transform: lowercase;
}  
</style>   

<section>
    <h1 class="title-custom"><br> right lowercase title </h1>
</section>

我的index.Rmd文件:

---
output:
  revealjs::revealjs_presentation:
    theme: black
    highlight: pygments
    self_contained: false
    center: true
    reveal_options:
      slideNumber: true
      previewLinks: true
---
```{r, echo = FALSE}
shiny::includeHTML("a.html")
```

我得到的输出带有一个右对齐文本的幻灯片(因此index.Rmd文件&#39;看到了a.html文件)但仍然是大写的。我做错了什么以及如何制作小写标题?

1 个答案:

答案 0 :(得分:1)

好像在css部分我必须在自定义样式之前放置.reveal以覆盖默认设置。

<style>
.reveal .title-custom {
    text-align: right;
    text-transform: lowercase;
}  
</style>