我尝试使用以下代码来调整正文并使标题变为粗体。我想选择长标题中换行符的位置,但是当我编织 rmd 文件时,标题部分不会发生任何样式编辑。
---
title: "my really really really really \n really really long title"
author: "person"
date: "4/24/2020"
output:
html_document:
toc: true
toc_float:
collapsed: true
smooth_scroll: false
toc_depth: 4
theme: yeti
highlight: tango
code_folding: show
---
<style>
body {
text-align: justify}
title {
font-style: bold}
</style>
Run Code Online (Sandbox Code Playgroud)
您可以将标题格式设置为YAML. **text**用于使标题加粗并<br>换行。
---
title: "**my really really really really <br> really really long title**"
author: "person"
date: "4/24/2020"
output:
html_document:
toc: true
toc_float:
collapsed: true
smooth_scroll: false
toc_depth: 4
theme: yeti
highlight: tango
code_folding: show
---
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
5253 次 |
| 最近记录: |