繁体   English   中英

Rmarkdown 中的编号

[英]Numbering in Rmarkdown

# Header 

## Header 

### Header 

[my favorite site](https://www.vseborec.cz/index.php?xx=3)

*Text*

**Text**

我的问题是如何为r-markdown中的这行代码对rmarkdown中的内容进行编号?

您可以使用number_sections: true选项。

---
title: "Numbered"
author: "Abdur Rohman"
date: '2022-05-07'
output: 
 html_document:
   number_sections: true
---


# Header 

## Header 

### Header 

[my favorite site](https://www.vseborec.cz/index.php?xx=3)

*Text*

**Text**

html output:

在此处输入图像描述

如果您想对标题以外的行进行编号,只需在每行的开头键入数字即可:


1. [my favorite site](https://www.vseborec.cz/index.php?xx=3)
2. *Text*
3. **Text**

output:

在此处输入图像描述

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM