简体   繁体   English

重命名和重置LaTeX中的章节

[英]Renaming and resetting Chapter in LaTeX

I have two questions in LaTeX: 我在LaTeX中有两个问题:

  1. How to reset the chapter counter to 1 or to set it to any other number? 如何将章节计数器重置为1或将其设置为任何其他数字?
  2. How to rename Chapter 1 to Paper A? 如何将第1章重命名为纸张A? To rename it to Paper 1, I have this solution: 要将其重命名为Paper 1,我有这个解决方案:

     \\renewcommand\\chaptername{Paper} 

The first chapter then becomes Paper 1. But I can't get to rename 1 to A so as to get Paper A. 第一章然后成为论文1.但我不能将1重命名为A以便得到论文A.

This is from memory, but for the first: 这是来自内存,但对于第一个:

\setcounter{chapter}{1}

And for the second: 而对于第二个:

\renewcommand{\chaptername}{Paper}
\renewcommand{\thechapter}{\Alph{chapter}}

For the first: 为了第一:

\setcounter {chapter} {1}

For the second, try using \\Alph - this might work: 对于第二个,尝试使用\\Alph - 这可能有效:

\setcounter {chapter} {\Alph{1}}

See this . 看到这个

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM