【问题标题】:R-Markdown, restart and edit the numbering of sectionsR-Markdown,重启和编辑章节编号
【发布时间】:2022-01-14 11:01:05
【问题描述】:

我有一个 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

【问题讨论】:

    标签: r latex r-markdown


    【解决方案1】:

    快速破解:

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2021-08-26
      • 1970-01-01
      • 1970-01-01
      • 2022-01-18
      • 1970-01-01
      • 2018-11-17
      • 1970-01-01
      相关资源
      最近更新 更多