suftesi 文档类中的目录仅显示文章名称,但不显示章节标题

suftesi 文档类中的目录仅显示文章名称,但不显示章节标题

我将其suftesi用于一本包含多篇文章的书。该书的目录仅显示文章的标题。我该如何更改以包括章节?

我的(简化的)代码:

\documentclass[12pt
    , structure=collection
    , pagelayout=compactaureo
    , version=draft
    , headerstyle=inner
    , footnotestyle=bulged
    , liststyle=indented
    , revauthortitle=false  % to have the author after the title 
    , titlefont=roman
    ]{suftesi}
\usepackage[utf8]{inputenc}
\usepackage{hyperref}
\usepackage{natbib} 
\usepackage{csquotes}
\usepackage{amsmath}

\begin{document}
    \collectiontitle{ontobook}
    \collectioneditor {AUF}
    \tableofcontents
    \input{intro_papersSelected}
\end{document}

文章intro_papersSelected内容如下:

\begin{article}
    \author { }
    \title{Introduction - The paper selected}
    \maketitle

\section{Papers to include:}
\begin{itemize}[align=left]
\item [{N}] The rationality of epistemology and the rationality of ontology.\\\\
Philosophers have proposed many different ontologies. 

\item [{K}] Ontology for spatio-temporal databases. \citet{frank03:9[TUW-119444]}
\end{itemize}

\section{test}
Towards a Mathematical Theory for Snapshot. In order to achieve
interoperability of \{GIS\}, the meaning of the 
data must be expressed in a compatible description. 

\end{article}

必须进行哪些更改才能将章节名称包含在目录中?目前它仅列出文章标题Introduction - The paper selected和页码。

如果我添加\chapter{exampletitle} in the article included then theexampletitle` 在目录中列为 1

答案1

只需添加

\setcounter{tocdepth}{1}

\begin{document}

顺便说一句,hyperref应该是您加载的包中的最后一个。

在示例中,我使用filecontents它来使其自足,并避免破坏我的文件。

\begin{filecontents}{\jobname-article}
\begin{article}
    \author { }
    \title{Introduction - The paper selected}
    \maketitle

\section{Papers to include:}
\begin{itemize}[align=left]
\item [{N}] The rationality of epistemology and the rationality of ontology.\\\\
Philosophers have proposed many different ontologies. 

\item [{K}] Ontology for spatio-temporal databases. \citet{frank03:9[TUW-119444]}
\end{itemize}

\section{test}
Towards a Mathematical Theory for Snapshot. In order to achieve
interoperability of \{GIS\}, the meaning of the 
data must be expressed in a compatible description. 

\end{article}
\end{filecontents}

\documentclass[
  12pt,
  structure=collection,
  pagelayout=compactaureo,
  version=draft,
  headerstyle=inner,
  footnotestyle=bulged,
  liststyle=indented,
  revauthortitle=false,  % to have the author after the title 
  titlefont=roman,
]{suftesi}
\usepackage[utf8]{inputenc}
\usepackage{natbib} 
\usepackage{csquotes}
\usepackage{amsmath}
\usepackage{hyperref} % should be last

\setcounter{tocdepth}{1}

\begin{document}

\collectiontitle{ontobook}

\collectioneditor {AUF}

\tableofcontents

\input{\jobname-article}

\end{document}

enter image description here

来自课程文档:

enter image description here

相关内容