-
Rstudio中outline无法自动生成数字编号,OutlineNum 插件为Rmardown生成类似jupyter中对header的编号形式,效果如下:
2.png 安装方法及详细内容:
RStudio Addin: OutlineNum
OutlineNum is an RStudio addin for adding and removing numbering from headers/outline in your R Markdown.
Features
- Easily add or remove numbering from headers.
- Supports multiple levels of headers.
- Works with R Markdown and plain text documents.
Installation
OutlineNum is currently available for installation via GitHub. You can install it using the following command:
remotes::install_github("callAgene/OutlineNum")
Usage
To use the OutlineNum addin, please follow these steps:
Open RStudio and load your document.
<u>SELECT ALL</u> the text in your document by pressing Ctrl+A (Windows/Linux) or Command+A (macOS).
Navigate to the "Addins" menu in RStudio.
- Choose either "Add numbering" or "Remove numbering" from the list of available addins.
Your document's headers will be numbered or have numbering removed based on your selection.