Bookdown: How can I change the size of the chapter titles?

拈花ヽ惹草 提交于 2019-12-21 12:32:07

问题


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?

Thanks,

Paul


回答1:


you can control this with .css as yihui suggests

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}

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.

i recommend reading a little about .css

style the web like a badass



来源:https://stackoverflow.com/questions/40215141/bookdown-how-can-i-change-the-size-of-the-chapter-titles

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!