[英]How can I add space between the table of contents and the YAML title?
A basic R markdown script: 基本的R降价脚本:
---
title: "Untitled"
author: "Example example"
output:
html_document:
df_print: paged
toc: true
number_sections: true
---
# ALPHA Header
## Alpha sub-1
## Alpha sub-2
## Alpha sub-3
Will generate something akin to this: 会产生类似于以下内容:
I'd like to pad the space between the YAML headers and the table of contents - but I'm not sure how. 我想在YAML标头和目录之间填充空格-但我不确定如何填充。 I can specify CSS selector and styles but this only applies to Markdown after the auto generated ToC.
我可以指定CSS选择器和样式,但这仅适用于自动生成的ToC之后的Markdown。
Just add HTML line breaks in your author or title fields: 只需在您的作者或标题字段中添加HTML换行符:
author: "Example example<br><br>"
Or a div with a certain height: 或具有一定高度的div:
author: "Example example<div style=\"height: 100px;\"></div>"
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.