I'm creating a PDF which will mainly be used on mobile apps. I have a clickable table of contents via the following:
\documentclass{report}
\usepackage{hyperref}
\hypersetup{
colorlinks,
citecolor=black,
filecolor=black,
linkcolor=blue,
urlcolor=black
}
\begin{document}
\tableofcontents
\chapter{A}
Lorem ipsum
\chapter{a}
Lorem ipsum
\chapter{aa}
Lorem ipsum
\chapter{aal}
Lorem ipsum
\chapter{aalii}
Lorem ipsum
\chapter{aam}
Lorem ipsum
\chapter{Aani}
Lorem ipsum
\chapter{aardvark}
Lorem ipsum
\chapter{aardwolf}
Lorem ipsum
\chapter{Aaron}
Lorem ipsum
\chapter{Aaronic}
Lorem ipsum
\chapter{Aaronical}
Lorem ipsum
\chapter{Aaronite}
Lorem ipsum
\chapter{Aaronitic}
Lorem ipsum
\chapter{Aaru}
Lorem ipsum
\chapter{Ab}
Lorem ipsum
\chapter{aba}
Lorem ipsum
\chapter{Ababdeh}
Lorem ipsum
\chapter{Ababua}
Lorem ipsum
\chapter{abac}
Lorem ipsum
\chapter{abaca}
Lorem ipsum
\chapter{abacate}
Lorem ipsum
\chapter{abacay}
Lorem ipsum
\chapter{abacinate}
Lorem ipsum
\chapter{abacination}
Lorem ipsum
\chapter{abaciscus}
Lorem ipsum
\chapter{abacist}
Lorem ipsum
\chapter{aback}
Lorem ipsum
\chapter{abactinal}
Lorem ipsum
\chapter{abactinally}
Lorem ipsum
\chapter{abaction}
Lorem ipsum
\chapter{abactor}
Lorem ipsum
\chapter{abaculus}
Lorem ipsum
\chapter{abacus}
Lorem ipsum
\chapter{Abadite}
Lorem ipsum
\chapter{abaff}
Lorem ipsum
\chapter{abaft}
Lorem ipsum
\chapter{abaisance}
Lorem ipsum
\chapter{abaiser}
Lorem ipsum
\chapter{abaissed}
Lorem ipsum
\chapter{abalienate}
Lorem ipsum
\chapter{abalienation}
Lorem ipsum
\chapter{abalone}
Lorem ipsum
\chapter{Abama}
Lorem ipsum
\end{document}
The problem is, the table of contents is huge, so it's difficult for a user to navigate to chapter 2, section 500, subsection 350. It's a lot of scrolling within the table of contents (in the example, the table of contents is 2 pages long).
To solve this problem, I want to have a table of contents before the table of contents, which does something like this (the sections are alphabetized):
Meta-table of contents
- A-Ababua
- abac-Abama
Table of contents
- A
- a
- aa
...
- Ababua
---Page break---
- abac
...
- Abama
Actual content
...
How can I achieve this in LaTeX? Can I hook into the table of contents somehow or will I have to generate my own table of contents? I don't need page numbers, so if I have to generate my own table of contents I wouldn't have to worry about that.
\documentclass{...}
and ending with\end{document}
.