在文档的每个新部分中以1开头的章节编号

问题描述 投票:0回答:1

我正在使用André Miede's classicthesis作为Lyx。但是,我不知道在开始新部分后如何全局重置章节编号。这就是TOC的外观:

  • 第1部分
    • 1章
    • 1章
  • 第2部分
    • 3章

但是我希望它看起来像这样:

  • 第1部分
    • 1章
    • 1章
  • 第2部分
    • 1章

感谢您的每一项帮助!在此先多谢!

latex lyx
1个回答
0
投票

您只需要在零件开始时重置适当的计数器。

例如:

\newcommand{\mypart}[1]{\setcounter{chapter}{0} % reset chapter counter
                         \part{#1}              % then create the part
}

然后您可以简单地使用\mypart而不是\part,并且编号将根据您的需要。

© www.soinside.com 2019 - 2024. All rights reserved.