Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

"Everybody is talking about the weather but nobody does anything about it." -- Mark Twain


computers / comp.text.tex / Re: two tables of contents

SubjectAuthor
o Re: two tables of contentsDenis Bitouzé

1
Re: two tables of contents

<87o8d9noko.fsf@example.com>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=3617&group=comp.text.tex#3617

  copy link   Newsgroups: comp.text.tex
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: dbitouze@wanadoo.fr (Denis Bitouzé)
Newsgroups: comp.text.tex
Subject: Re: two tables of contents
Date: Mon, 17 May 2021 21:32:39 +0200
Organization: A noiseless patient Spider
Lines: 37
Message-ID: <87o8d9noko.fsf@example.com>
References: <ee412012-cb9a-4fe2-afbd-fbac02e138e2n@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Info: reader02.eternal-september.org; posting-host="4acfcc46be34213436df21551bdd1315";
logging-data="25114"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19C60qFIBu53PHCzgDwM1tXnhQh2hS3cRY="
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)
Cancel-Lock: sha1:sv/SBgfC6kUSq2Dk13MAiuMfXtA=
sha1:jlf3DQdVOv6WyZC+vfaFWqgSxSQ=
X-Archive: encrypt
X-Url: http://gte.univ-littoral.fr/members/dbitouze/pub/latex
 by: Denis Bitouzé - Mon, 17 May 2021 19:32 UTC

Le 14/05/21 à 11h49, Russ P. a écrit :

> Suppose I want two tables of contents, a high-level one and a detailed
> one (both with links). I tried this:
>
> \setcounter{tocdepth}{1}
> \tableofcontents
> \newpage
> \setcounter{tocdepth}{4}
> \tableofcontents
> \newpage
>
> However, the second table of contents was empty. Is there a trick to
> make it work?

In addition to other suggestions, you can make use of the `etoc`
package:

--8<---------------cut here---------------start------------->8---
\documentclass{article}
\usepackage{blindtext}
\usepackage{etoc}
\usepackage{hyperref}
\begin{document}
\etocsettocdepth{section}
\tableofcontents
\blinddocument
\etocsettocdepth{subsection}
\tableofcontents
\end{document}
--8<---------------cut here---------------end--------------->8---

> Thanks.

You're welcome.
--
Denis


computers / comp.text.tex / Re: two tables of contents

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor