2017-08-01 37 views
1

我想在R的revealjs演示文稿中使用小写字母标题。默认标题是大写字母,我找不到任何内置选项来更改它,所以我创建了一段HTML代码来执行此操作。如何在R中的revealjs演示文稿中制作小写字母标题?

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文件 '看到' 的a.html文件)但仍然是大写字母。我做错了什么以及如何制作小写字幕?

回答

1

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

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