GeneralTwo table of contents

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
lars12
Posts: 1
Joined: Sat Oct 31, 2009 12:55 pm

Two table of contents

Post by lars12 »

I need to create two table of contents. Doing one the normal way is easy, but the second one...
The document, and the first table of content are not in english, but the 2nd one is going to be in english.

What I have tried is something like this:

\makeatletter
\newcounter {epart}
\newcounter {echapter}
\newcounter {esection}[echapter]
\newcounter {esubsection}[esection]
\newcounter {esubsubsection}[esubsection]

\renewcommand\theepart{\@Roman\c@epart}
\renewcommand\theechapter{\@arabic\c@echapter}
\renewcommand\theesection{\theechapter.\@arabic\c@esection}
\renewcommand\theesubsection{\theechapter.\theesection.\@arabic\c@esubsection}
\renewcommand\theesubsubsection{\theechapter.\theesubsection.\@arabic\c@esubsubsection}

\newcommand*{\etocname}{Table of Contents}
\makeatother
\setcounter{secnumdepth}{5}
\setcounter{tocdepth}{5}

\begin{document}

\tableofcontents
\newpage
\etoc

\chapter{Non english}
\echapter{English}
Blah, blah, ... the chapter.

\end{document}

I'm afraid it isn't a minimun working example because it doesn't work.

I do not need to create a new chapter, but just having a reference to create the other table of contents.

Thank you for any help.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Post Reply