ioslides 降价演示文稿标题页中的字体大小

Font size in ioslides markdown presentation title page

尝试更改 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.

我的 style.css 文件在哪里:

h1 { font-size: 12px;}

首先,spacing/indentation/tab 在 YAML 中很重要(注意 css 行上的附加选项卡):

output: 
  ioslides_presentation:
    css: slide.css

这并不完美,希望其他人可以插话,但您可以使用 hgrouph1 标签调整 .title-slide class:

.title-slide hgroup h1 {
  font-size: 12px;
  letter-spacing: 0;
}

注意:在当前示例中,您需要将 letter-spacing 修改为 0(与原始呈现的 3px 相对)。