![两个单独的目录](https://linux22.com/image/267069/%E4%B8%A4%E4%B8%AA%E5%8D%95%E7%8B%AC%E7%9A%84%E7%9B%AE%E5%BD%95.png)
我需要有两个单独的目录,它们只共享一个章节,如下所示:
目录 - 统计数据
简介......1
概率......10
随机变量...20
目录 - 几何
简介......1
曲线......50
表面...............60
我尝试了各种方法,但经过几个小时的尝试后我最终放弃了。有人能帮忙吗?谢谢
答案1
这里setcounter{page}{...}
仅用于演示。
\documentclass{article}
%\setcounter{secnumdepth}{0}% for unnumbered sections
%\setcounter{tocdepth}{1} % for unnumbered sections
\begin{document}
\tableofcontents
\addtocontents{toc}{\protect\contentsline{section}{Table of Contents -- Statistics}{}}
\newpage\setcounter{page}{1}
\section{Introduction}
\newpage\setcounter{page}{10}
\section{Probability}
\newpage\setcounter{page}{20}
\section{Random Variables}
\addtocontents{toc}{\protect\contentsline{section}{Table of Contents -- Geometry}{}}
\addtocontents{toc}{\protect\contentsline{section}{\numberline {1}Introduction}{1}}
%\addtocontents{toc}{\protect\contentsline{section}{\numberline {}Introduction}{1}}% for an unnumbered section
\newpage\setcounter{page}{50}
\section{Curves}
\newpage\setcounter{page}{60}
\section{Surfaces}
\end{document}