重命名和重置LaTeX中的章节

yCa*_*ran 9 latex

我在LaTeX中有两个问题:

  1. 如何将章节计数器重置为1或将其设置为任何其他数字?
  2. 如何将第1章重命名为纸张A?要将其重命名为Paper 1,我有这个解决方案:

    \renewcommand\chaptername{Paper}
    
    Run Code Online (Sandbox Code Playgroud)

第一章然后成为论文1.但我不能将1重命名为A以便得到论文A.

Sop*_*ert 12

这是来自内存,但对于第一个:

\setcounter{chapter}{1}
Run Code Online (Sandbox Code Playgroud)

而对于第二个:

\renewcommand{\chaptername}{Paper}
\renewcommand{\thechapter}{\Alph{chapter}}
Run Code Online (Sandbox Code Playgroud)


cri*_*ito 5

为了第一:

\setcounter {chapter} {1}
Run Code Online (Sandbox Code Playgroud)

对于第二个,尝试使用\Alph- 这可能有效:

\setcounter {chapter} {\Alph{1}}
Run Code Online (Sandbox Code Playgroud)

看到这个