如何删除标题的编号?

How can I remove the number of the heading?

每次我尝试用#做标题时,标题前都会出现一个数字。我怎么可能仍然使用#、##、### 方法,但没有出现数字?只是字体大小的变化。

例如:

# **Activity 1**

## **1a** 

这看起来像:

1 Activity 1

1.1。 1a

我只想为“Activity 1”获得更大的标题,为“1a”获得更小的标题。我怎样才能删除号码?

谢谢,

艾丽西亚

要取消特定标题的编号,请在其后放置 {-}

# **Activity 1** {-}

## **1a** {-}

要取消所有标题编号,请尝试 knitr::opts_chunk$set(number_sections = FALSE)