2016-03-29 8 views
4

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;} 

enter image description here

答えて

5

まず、間隔/インデント/タブがYAMLに重要である(cssライン上に追加のタブに注意してください):

output: 
    ioslides_presentation: 
    css: slide.css 

これは完璧ではないし、うまくいけば他の誰かがチャイムことができますが、あなたとhgrouph1タグで.title-slideクラスを調整することができます。

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

注:0letter-spacingを変更したいと思うでしょう(と現在の例ではレンダリングされた元の3pxとは対照的です)。

+0

です。完璧。ありがとう。 – gjabel

関連する問題