Question
If I have a document with multiple tables of contents, can I limit the scope of a toc sections are added and reset the toc?
Situation
I have a document made up of 10 languages. (using \input{en}, \input{de}, \input{da}
etc.) There are 11 tables of contents:
- Language Directory (composed of each
\input
(probably going to have to just be a custom table containing hooks for each\input
. I don't know how I will implement this yet. - Local table of contents for each specific language (10 languages)
Example Code
Example of Main .tex
\documentclass{article}
\usepackage{fontspec}
\begin{document}
\maketableofcontents % language directory (list of inputs with language names)
\input{en}
\input{de}
\input{da}
\end{document}
Example of en.tex
\maketableofcontents % local toc
\section{apple}
%\somecommand % TOC scope limit
Example of de.tex
\maketableofcontents % local toc
\section{apfel}
%\somecommand % TOC scope limit
Example of da.tex
\maketableofcontents % local toc
\section{æble}
%\somecommand % TOC scope limit
tableof
has dedicated commands for that – Denis Feb 19 '15 at 10:43etoc
provides means for this – user31729 Feb 19 '15 at 12:02