Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
ds2-notes
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
datovky
ds2-notes
Commits
92cae991
Commit
92cae991
authored
5 years ago
by
Martin Mareš
Browse files
Options
Downloads
Patches
Plain Diff
Table of contents
parent
13cf0ab0
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
98-misc/toc.tex
+39
-0
39 additions, 0 deletions
98-misc/toc.tex
ds.tex
+2
-0
2 additions, 0 deletions
ds.tex
with
41 additions
and
0 deletions
98-misc/toc.tex
0 → 100644
+
39
−
0
View file @
92cae991
\fakechapter
{
Table of contents
}
\def\tocchaplabel
#1#2
^^
X
{
\if
0#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
This diff is collapsed.
Click to expand it.
ds.tex
+
2
−
0
View file @
92cae991
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment