Debian Codegraph @

texmf-dist/doc/latex/minitoc/examples/mtc-gap.tex

raw
1 %%
2 %% This is file `mtc-gap.tex',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% minitoc.dtx (with options: `mtc-gap')
8 %% This is a generated file.
9 %%
10 %%
11 %% This file may be distributed and/or modified under the conditions of
12 %% the LaTeX Project Public License, either version 1.3 of this license
13 %% or (at your option) any later version. The latest version of this
14 %% license is in:
15 %%
16 %% http://www.latex-project.org/lppl.txt
17 %%
18 %% and version 1.3 or later is part of all distributions of LaTeX version
19 %% 2003/12/01 or later.
20 %%
21 %% This work has the LPPL maintenance status "maintained".
22 %%
23 %% The Current Maintainer of this work is GitHub minitoc organisation.
24 %%
25 %% This work consists of all the files listed in the file `minitoc.l'
26 %% distributed with it.
27 %% Copyright 1993 1994 1995 1996 1997 1998 1999 2000
28 %% 2001 2002 2003 2004 2005 2006 2007 2008
29 %% Jean-Pierre F. Drucbert
30 %% Copyright 2018 GitHub minitoc organisation (David Carlisle)
31 \documentclass[a4paper,oneside,12pt]{book}
32 \ProvidesFile{mtc-gap.tex}[2007/01/04]%
33 \usepackage{txfonts,vruler} % vertical graduation to note positions (Zhuhan Jiang)
34 \usepackage[english2,tight,listfiles]{minitoc}
35 \begin{document}
36 \setvruler[1cm][0][10][3][0][0pt][0pt][0pt][] % with vruler package
37 \doparttoc \faketableofcontents
38 \part{First part}
39 \parttoc
40 \chapter{First chapter of first part} \chapter{Second chapter of first part}
41 \part{Second part}
42 \renewcommand{\mtcgapbeforeheads}{100pt}
43 \renewcommand{\mtcgapafterheads}{80pt}
44 \parttoc
45 \chapter{First chapter of second part} \chapter{Second chapter of second part}
46 \part{Third part}
47 \renewcommand{\mtcgapbeforeheads}{20pt}
48 \renewcommand{\mtcgapafterheads}{10pt}
49 \parttoc
50 \chapter{First chapter of third part} \chapter{Second chapter of third part}
51 \end{document}
52 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118 %%
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158 \endinput
159 %%
160 %% End of file `mtc-gap.tex'.