R-Markdown,重新启动并编辑部分编号

R-Markdown, restart and edit the numbering of sections

我有一个 PDF 降价文件。在论文的最后,我有一个附录。我想重新开始计算附录中的部分,并可能在附录部分前面引入一个“A”。诸如“A1”、“A2”、“A3”等。

有人知道怎么做吗?

非常感谢您的帮助

这里有一个例子。

---
title: "My paper with an appendix"
output:
  pdf_document:
    number_sections: yes
---


# my normally numbered section 

text

## another normally numbered section 

text

\newpage

# Appendix {-}
this section should not be numbered

## This is a new section that I would like to be numbered "A1"

text

## Every other section should be numbered "A..." 

starting from A1 to AN

快速破解:

---
title: "My paper with an appendix"
output:
  pdf_document:
    number_sections: yes
---


# my normally numbered section 

text

## another normally numbered section 

text

\newpage

\appendix
\renewcommand{\thesection}{A}
# Appendix {-}
this section should not be numbered

## This is a new section that I would like to be numbered "A1"

text

## Every other section should be numbered "A..." 

starting from A1 to AN