Skip to content
Snippets Groups Projects
Commit 92cae991 authored by Martin Mareš's avatar Martin Mareš
Browse files

Table of contents

parent 13cf0ab0
No related branches found
No related tags found
No related merge requests found
\fakechapter{Table of contents}
\def\tocchaplabel#1#2^^X{\if0#1\else#1#2~\fi}
\def\tocchapter#1#2#3#4{\bigskip
\line{\bf\tocchaplabel#2^^X\toclink{#2}{#4}\hfil\pagelink{#1}}
\tocoutline{#2}{#4}
}
\def\tocsection#1#2#3#4{%
\line{\qquad#2#3~~\toclink{#2}{#4}\hfil\pagelink{#1}}
\tocoutline{#2}{#4}
}
\def\toclink#1#2{%
\ifprint
#2
\else
\pdfextension startlink\commonlinkargs goto name {s#1}\relax #2\pdfextension endlink
\fi
}
\def\tocoutline#1#2{
\ifprint\else
\directlua{pdfmeta.add_outline('\luaescapestring{#1}', '\luaescapestring{s#1}', '\luaescapestring{#2}')}
\fi
}
\def\tocstar{\rlap{*}}
{
\catcode`@=11
\catcode`*=\active
\let*=\tocstar
\input toc.aux
\catcode`@=12
}
\bigskip
Sections and exercises marked with one or two asterisks contain advanced material.
We suggest that the reader skips them first time.
\vfill\eject
...@@ -4,6 +4,8 @@ ...@@ -4,6 +4,8 @@
%\debuggrid %\debuggrid
%\debugindex %\debugindex
\input 98-misc/toc.tex
\def\includechapaux#1-#2@{\input #1-#2/#2.tex} \def\includechapaux#1-#2@{\input #1-#2/#2.tex}
\def\includechapter#1{\includechapaux#1@} \def\includechapter#1{\includechapaux#1@}
\input chapters.tex \input chapters.tex
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment