首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >R-标记,重新启动和编辑节号

R-标记,重新启动和编辑节号
EN

Stack Overflow用户
提问于 2021-12-09 15:54:40
回答 1查看 351关注 0票数 1

我有一个PDF标记文件。在论文的末尾,我有一个附录。我想重新开始计算附录中的一节,并可能在附录的前面加上一个"A“。比如"A1","A2","A3“等等。

有人知道怎么做吗?

非常感谢你的帮助

下面是一个例子。

代码语言:javascript
运行
复制
---
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
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2021-12-09 16:19:01

快速黑客:

代码语言:javascript
运行
复制
---
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
票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/70292874

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档