【问题标题】:Change font for 'Author', RMarkdown更改“作者”的字体,RMarkdown
【发布时间】:2018-02-24 01:21:22
【问题描述】:

我想修改 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>

【问题讨论】:

  • &lt;h4 class="author"&gt;
  • 非常感谢!!完美运行。

标签: html css fonts r-markdown


【解决方案1】:

YAML 中指定的作者和日期标头默认为 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>

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2019-07-07
    • 2023-03-02
    • 2015-05-18
    • 2014-08-16
    • 2017-09-13
    • 2021-08-20
    • 2023-04-07
    相关资源
    最近更新 更多