侧面带有页面导航的rmarkdown [英] rmarkdown with page navigation on the side

查看:21
本文介绍了侧面带有页面导航的rmarkdown的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,我想在我的Rmarkdown文件一侧添加一个页面导航。如果它看起来像侧边栏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

有人能帮忙吗?

推荐答案

我试过了,效果很好:

---
title: "TEST"
output: 
  html_document:
  toc: true
  toc_float: true
  toc_collapsed: true
toc_depth: 3
number_sections: true
theme: lumen
---

有关详细信息,请查看此链接中的答案:RMarkdown: Floating TOC and TOC at beginning

这篇关于侧面带有页面导航的rmarkdown的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆