在rmarkDown中编号

发布于 2025-01-26 19:04:16 字数 186 浏览 3 评论 0原文

# Header 

## Header 

### Header 

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

*Text*

**Text**

我的问题是如何从r-markdown中的这条代码中从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?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

十年不长 2025-02-02 19:04:16

您可以使用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输出:

“在此处输入图像描述”

如果要编号除标题以外的其他行,则只需在每行开头键入数字:


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

输出:

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:

enter image description here

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:

enter image description here

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文