簡體   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