gja*_*bel 5 css r rstudio knitr r-markdown
尝试从ioslides演示文稿更改标题页的默认文本大小但失败:
---
title: "My title is a bit too long to fully fit on the title page. I would really like to alter the font size to provide a better fit. I have limited CSS skills to do so"
author: "My Name"
date: "29 March 2016"
output:
ioslides_presentation:
css: slide.css
---
## R Markdown
This is an R Markdown presentation.
Run Code Online (Sandbox Code Playgroud)
我的style.css文件是:
h1 { font-size: 12px;}
Run Code Online (Sandbox Code Playgroud)
首先,间距/缩进/标签在YAML中很重要(注意css线上的附加标签):
output:
ioslides_presentation:
css: slide.css
Run Code Online (Sandbox Code Playgroud)
这并不完美,希望其他人可以加入,但你可以调整.title-slide课程hgroup和h1标签:
.title-slide hgroup h1 {
font-size: 12px;
letter-spacing: 0;
}
Run Code Online (Sandbox Code Playgroud)
注意:您要修改letter-spacing到0(而不是渲染原来3px在当前的例子).
| 归档时间: |
|
| 查看次数: |
1678 次 |
| 最近记录: |