如何更改html/rmarkDown中内容表中的字体颜色OD?
当我指定这样的代码时,内容表中的字体以html中的红色给出。那么,如何更改字体颜色?
output:
html_document:
toc: true
toc_depth: 2
theme: united
When I specify the code like this, the fonts in the table of content is given in red in HTML. So, how can I change the font colour?
output:
html_document:
toc: true
toc_depth: 2
theme: united
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以在rmarkDown文件中添加CSS块:
内容表的
div
称为#toc
,并且可以直接更改属性。you can add a css chunk in your rmarkdown-file:
The
div
for the table of content is called#TOC
and it is possible to directly change the properties.