[英]rmarkdown with page navigation on the side
Hi I would like to a add a page navigation on the side of my Rmarkdown file.嗨,我想在我的 Rmarkdown 文件的一侧添加一个页面导航。 It would be nice if it could look like the sidebar on this page .
如果它看起来像这个页面上的侧边栏就好了。
---
title: "My Title"
author: "My Name"
date: "`r format(Sys.time(), '%d %B, %Y')`"
output:
html_document:
theme: united
highlight: tango
code_folding: hide
df_print: paged
toc: true
toc_depth: 2
---
# Section 1
abc
## Section 1.1
abcabc
# Section 2
abcabcabc
can anyone help?有人可以帮忙吗?
I've tried this and works pretty well: 我已经尝试过并且效果很好:
---
title: "TEST"
output:
html_document:
toc: true
toc_float: true
toc_collapsed: true
toc_depth: 3
number_sections: true
theme: lumen
---
For more info please check the answer in this link: RMarkdown: Floating TOC and TOC at beginning 有关更多信息,请检查此链接中的答案: RMarkdown:开始时是浮动TOC和TOC
Adding one more answer which fixes the incorrect indentation on the answer given by @alika:添加另一个答案以修复@alika 给出的答案中的错误缩进:
---
title: "TEST"
output:
html_document:
toc: true
toc_float: true
toc_collapsed: true
toc_depth: 3
number_sections: true
theme: lumen
---
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.