包装cleanrmd的主题水暗真的很好。但我无法让toc和自动编号工作。这个主题似乎以某种方式覆盖了他们。有没有一种方法可以在使用软件包cleanrmd的同时恢复toc和自动编号的“基本”功能?我的RMarkdown看起来像这个atm:
output:
cleanrmd::html_document_clean:
theme: water-dark
toc: true
toc_float: true
number_sections: true
number_sections_depth: 3
pandoc_args: ["-V", "classoption=fullwidth"]
bibliography: references.bib
```{css, echo=FALSE}
body {
font-family: Bahnschrift;
font-size: 12pt;
max-width: 100%;
margin 0 auto;
}
a{
text-decoration: none ;
color: white;
}
a:focus, a:hover {
text-decoration: none ;
color: grey;
}
```
我试着用css让toc看起来不错,但它的注释实际上是一样的。除了toc:true之外,所有的toc命令似乎都不起作用。
我试着在html中查看css,但我不知道自己在做什么。