简体   繁体   中英

Numbering in Rmarkdown

# Header 

## Header 

### Header 

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

*Text*

**Text**

My question is how to number the content in rmarkdown from for this line of code in r-markdown?

You can use number_sections: true option.

---
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**

The html output:

在此处输入图像描述

In case you want to number the lines other than headers, you just type the numbers on the beginning of each line:


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

The output:

在此处输入图像描述

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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