【问题标题】:minitoc: updating tocdepth counterminitoc:更新 tocdepth 计数器
【发布时间】:2016-03-28 12:44:05
【问题描述】:

我正在使用 LaTeX 撰写论文,我想在每章的开头包含一个仅包含部分的迷你目录。我正在使用我在序言文件中声明的minitoc 包。在我的主文件中,我发现自己必须包含以下内容,以便 minitoc 自行更新:

% *********************** Adding TOC and List of Figures ***********************
\dominitoc
\tableofcontents 
\listoffigures \mtcaddchapter 
\listoftables \mtcaddchapter

当我将节计数器设置为 2 时:

\setcounter{secnumdepth}{2}
 \setcounter{tocdepth}{2}

我得到的迷你目录包括小节(这似乎是默认的 minitoc 节深度)。我尝试通过包括以下内容来更改部分 toc 深度:

\newcounter{secttocdepth}
\setcounter{secttocdepth}{1}

到处都没有成功。非常欢迎您的帮助!

【问题讨论】:

    标签: latex tableofcontents


    【解决方案1】:

    您是否尝试过使用

    \setcounter{minitocdepth}{1}
    

    就像 minitoc 手册中描述的那样

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2023-04-11
      • 1970-01-01
      • 2023-03-04
      • 2015-05-04
      • 2012-08-11
      • 2015-06-17
      • 2011-02-23
      • 2012-05-04
      相关资源
      最近更新 更多