本文介绍了ioslides markdown演示文稿标题页中的字体大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
尝试从ioslides演示文稿更改标题页的默认文本大小,但失败:
Trying to alter the default text size of the title page from an ioslides presentation but failing:
---
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文件在哪里:
Where my style.css file is:
h1 { font-size: 12px;}
推荐答案
首先,在YAML中,空格/缩进/制表符很重要(请注意css
行上的其他选项卡):
First, spacing/indentation/tab is important in YAML (notice the additional tab on the css
line):
output:
ioslides_presentation:
css: slide.css
这不是完美的,希望其他人也可以加入,但是您可以使用hgroup
和h1
标签通过以下方式调整.title-slide
类:
This is not perfect and hopefully somebody else can chime in, but you can adjust .title-slide
class with hgroup
and h1
tags with:
.title-slide hgroup h1 {
font-size: 12px;
letter-spacing: 0;
}
注意:在当前示例中,您需要将letter-spacing
修改为0
(与原始渲染的3px
相对).
Note: You will want to modify letter-spacing
to 0
(as opposed to the original rendered 3px
) in the current example.
这篇关于ioslides markdown演示文稿标题页中的字体大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!