我想修改Rmd文档的“作者”和“日期”的默认字体大小和颜色。我查找并尝试使用CSS样式表对其进行修改。“标题”的字体已修改,但我不能修改“作者”和“日期”。这是我到目前为止对“作者”所做的尝试。
<style type="text/css">
body{ /* Normal */
font-size: 14px;
}
h1.title {
font-size: 20px;
color: DarkRed;
}
h2.author {
font-size: 16px;
color: DarkBlue;
}
</style>
发布于 2021-06-29 22:12:18
默认情况下,YAML中指定的author和date标头为h4。以下是工作原理:
<style type="text/css">
body{ /* Normal */
font-size: 14px;
}
h1.title {
font-size: 20px;
color: DarkRed;
}
h4.author {
font-size: 16px;
color: DarkBlue;
}
</style>
https://stackoverflow.com/questions/48958406
复制相似问题