如何仅在将 rmarkdown 文档渲染为 pdf 时更改目录的字体大小?
我只知道YAML中的
fontsize:
参数,但它改变了整个pdf文档的字体大小。还有其他特定于目录的参数吗?也许通过 .css 文件?
谢谢!
---
title: "Changing font size of TOC"
output:
pdf_document:
number_sections: true
toc: true
header-includes:
- \usepackage{tocloft}
- \renewcommand\cftsecfont{\huge}
---
# R Markdown
This is an R Markdown document.
# Including Plots
You can also embed plots.