当我将Rmd文件编成html时,我在浏览器中看到的输出始终居中。 我怎样才能证明左侧的所有内容正确无误? 浪费的空间是指TOC左侧有未使用的空间
编辑我知道这个线程,但是我想保留TOC,我真正想要的是将所有内容都向左移动,因此TOC在左对齐的旁边
码:---
title: "Example SO"
output:
html_document:
toc: true
number_sections: true
code_folding: "hide"
toc_float:
collapse: false
smooth_scroll: false
---
```{r setup, echo=FALSE}
knitr::opts_chunk$set(error = TRUE,
echo = TRUE,
message = FALSE,
comment = "",
fig.align = "left"
)
```
# H1 Stuff
```{r, DT}
DT::datatable(mtcars, rownames = FALSE, options = list(pageLength = 2))
```
# H2 More stuff
Bla
输出: