下载:如何更改章节标题的大小? [英] Bookdown: How can I change the size of the chapter titles?
问题描述
我使用bookdown来生成工作室的幻灯片。我使用菜单中的大字母选项显示为幻灯片。然而,那么章节标题字体大小太大。在哪里/如何修改这个?
I am using bookdown to generate slides for a workshop. I use the 'big' letter option in the menu for display as slides. However then the chapter title font size is too large. Where/how can I modify that one?
感谢,
Paul
推荐答案
您可以使用.css将其控制为 yihui 建议在您的预订项目顶层的
you can control this with .css as yihui suggests
有一个名为style.css的文件
打开它并粘贴:
in the top level of your bookdown project there is a file called style.css open it and paste in:
.book .book-body .page-wrapper .page-inner section.normal h1{font-size:1em}
这将增加你的顶级标题字体的大小,当你构建这本书。您可以更改'em'的值,或者您可以使用其他指定字体大小的方式,例如'%'或'pt'。您也可以将h1更改为h2,h3等以更改第2级,第3级标题等。
this will increase the size of your top level header font when you build the book. you can change the value of 'em' or you can use other ways of specifiying font size such as '%' or 'pt'. you can also change h1 to h2, h3 etc to change 2nd, 3rd level headers and so on.
我建议您阅读一下.css
i recommend reading a little about .css
把web风格化成一个badass
style the web like a badass
这篇关于下载:如何更改章节标题的大小?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!