summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/minitoc/minitoc.pre
blob: 5d20ccaf0e11b64d621ce8d49f6e2117d25978df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
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
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
%% LaTeX2e file `./minitoc.pre'
%% generated by the `filecontents' environment
%% from source `minitoc' on 2005/09/17.
%%
\usepackage{xspace}
\usepackage{comment}
\usepackage{enumerate}
%<ADDITIONS
\usepackage{ragged2e}
\usepackage{array}
% colonne de type `p', mais raggedright...
\newcolumntype{R}[1]{>{\RaggedRight\arraybackslash}p{#1}}
\newcolumntype{L}[1]{>{\RaggedLeft\arraybackslash}p{#1}}
\newcolumntype{C}[1]{>{\Centering\arraybackslash}p{#1}}
%La somme des coeffs doit être égale au nombre de colonnes Z, P et X.
\newcolumntype{Z}[1]{>{\hsize=#1\hsize\relax\leavevmode\RaggedRight\arraybackslash}X}
\newcolumntype{Y}[1]{>{\hsize=#1\hsize\relax\leavevmode\RaggedLeft\arraybackslash}X}
\newcolumntype{O}[1]{>{\hsize=#1\hsize\relax\leavevmode\Centering\arraybackslash}X}
%La somme des coeffs doit être égale au nombre de colonnes Z, O, P et X.
\newcolumntype{P}[1]{>{\hsize=#1\hsize\relax\leavevmode\arraybackslash}X}
%ADDITIONS>
\usepackage{textcomp}
\DeclareTextSymbol{\textbackslash}{TS1}{92}
\DeclareTextSymbolDefault{\textbackslash}{TS1}
\IfFileExists{txfonts.sty}{\usepackage{txfonts}}{\relax}
\newif\ifDP\DPfalse
\IfFileExists{dpfloat.sty}{\usepackage{dpfloat}\DPtrue}{\DPfalse}
\usepackage{tocbibind}
\usepackage{nameref}
\input{\jobname.lan}
\newif\ifFTR
\makeatletter                  % ESSAI pour tromper varioref
\@twosidetrue\@mparswitchtrue  % ESSAI pour tromper varioref
\makeatother                   % ESSAI pour tromper varioref
\ifcase\LANG\relax
\FTRfalse
\usepackage[english]{varioref}
\or\relax
\FTRtrue
\usepackage{frbib}
\usepackage[french]{varioref}
\fi
\makeatletter                  % ESSAI pour tromper varioref
\@twosidefalse\@mparswitchfalse% ESSAI pour tromper varioref
\makeatother                   % ESSAI pour tromper varioref
\usepackage{ifpdf}
\ifcase\LANG\relax
\def\gpdftitle{The minitoc package}
\or\relax
\def\gpdftitle{Le paquetage minitoc}
\fi
\ifpdf
  \usepackage[pdftex]{color}
  \usepackage[pdftex,pstarrows]{pict2e}
  \usepackage[pdftex]{graphicx}
  \usepackage[pdftex, colorlinks,%
   pdfpagelayout=SinglePage,%
%   pdfpagetransition=Dissolve,% slow
%   pdfpagetransition={Split /H /O},%
   pdftitle={\gpdftitle},%
   pdfsubject={minitoc},%
   pdfauthor={Jean-Pierre F. Drucbert},%
   pdfcreator={pdflatex},%
   pagebackref=true,%
   pdfnewwindow=true,%
   bookmarksnumbered=true,%
%   plainpages=false,%
   bookmarksopen]%
            {hyperref}
\else
  \usepackage[dvips]{color}
  \usepackage[dvips,pstarrows]{pict2e}
  \usepackage[dvips]{graphicx}
  \usepackage{hyperref}
\fi
\makeatletter % to include some useful commands
%avoid warnings
\providecommand*{\toclevel@xpart}{0}
\providecommand*{\toclevel@xchapter}{0}
\providecommand*{\toclevel@xsection}{0}
\providecommand*{\toclevel@starpart}{0}
\providecommand*{\toclevel@starchapter}{0}
\providecommand*{\toclevel@starsection}{0}
\providecommand*{\toclevel@ppart}{0}
\providecommand*{\toclevel@pchapter}{0}
\providecommand*{\toclevel@psection}{0}
\makeatother
\usepackage{tabularx}
\usepackage{multicol}% v40
\usepackage{fixfoot}
% Check if booktabs package is available
\newif\ifBT \BTfalse
\IfFileExists{booktabs.sty}{\BTtrue\usepackage{booktabs}}{\BTfalse}
% Check if url package is available
\IfFileExists{url.sty}{\usepackage{url}}{\let\url\texttt}
\ifcase\LANG\relax
\usepackage[french,english]{babel}
\or\relax
\usepackage[french,english]{babel}
\usepackage{franc,frnew}
\fi
\usepackage[TS1,T1]{fontenc}
%\def\ij{i\kern-.1ex j}
\DeclareTextSymbol{\ij}{T1}{188}
\DeclareTextSymbol{\IJ}{T1}{156}
\usepackage[isolatin]{inputenc}
\ifcase\LANG\relax
\or\relax
\IfFileExists{mypatches.sty}{\usepackage{mypatches}}{\relax}
\fi
%\usepackage[latin1]{inputenc}
% gray rules for tables/figures
\definecolor{figrulecolor}{gray}{.82}
%\definecolor{figrulecolor}{cmyk}{.7,.1,.1,.1} % ESSAIS
\providecommand{\topfigrule}{\relax}
\providecommand{\botfigrule}{\relax}
\providecommand{\medfigrule}{\relax}
\iffalse % NO figrules... sight
\renewcommand{\topfigrule}{%
  \vspace*{3pt}%
  \noindent\textcolor{figrulecolor}{\rule[0pt]{\textwidth}{2pt}}%
  \vspace*{-5pt}}
\renewcommand{\botfigrule}{%
  \vspace*{-3pt}%
  \noindent\textcolor{figrulecolor}{\rule[0pt]{\textwidth}{2pt}}%
  \vspace*{1pt}}
\renewcommand{\medfigrule}{%
  \vspace*{-3pt}%
  \noindent\textcolor{figrulecolor}{\rule[0pt]{\textwidth}{2pt}}%
  \vspace*{-2pt}}
\fi % NO figrules... sight
%
%
\makeatletter % to include some useful commands
\providecommand{\BibTeX}{{\rm B\kern-.05em\textsc{i\kern-.025em b}\kern-.08em
    T\kern-.1667em\lower.7ex\hbox{E}\kern-.125emX}}
\renewcommand{\BibTeX}{{\rm B\kern-.05em\textsc{i\kern-.025em b}\kern-.08em
    T\kern-.1667em\lower.7ex\hbox{E}\kern-.125emX}}
\let\BiBTeX\BibTeX
% IF YOU NOT HAVE THE manfnt FONT, the dangerous bends will not be printed...
\IfFileExists{manfnt.sty}{% does not work with .tfm
\typeout{manfnt.tfm FOUND}
\newfont{\manfnt}{manfnt}
\newcommand\virage{\marginpar[\raggedleft
 {{\manfnt\symbol{'177}}~~}]{\raggedright {~~\manfnt\symbol{'177}}}}
\def\@Vir{\hbox to12mm{\hbox{}\leaders%
 \hbox{{\manfnt\char127}\kern2pt}\hfil\hbox{}}}
\newcommand\Virage{\marginpar[\hfill{\@Vir~~}]{{~~\@Vir}\hfill}}%
}%ELSE
{\let\Virage\relax \let\virage\relax}
%%%%%%%%%%%%%%%%% END OF REPLACE
\def\smooth{\spaceskip=0.3em  plus .8em minus .1em
\xspaceskip=0.6em plus 1em minus .2em
\pretolerance=10 \tolerance=10000 \looseness=-10000
\parfillskip=0pt plus10fill\relax}%
\newenvironment{SMOOTH}{\bgroup\smooth}{\par\egroup}
%
\def\Cat#1{\hbox{$\langle$\emph{#1}$\rangle$}}
\def\<#1>{\Cat{#1}}
%%%
%%%% Some useful commands from Stefan Ulrich
\newcommand\changeskips{%
  \@tempdima\abovecaptionskip
  \abovecaptionskip\belowcaptionskip
  \belowcaptionskip\@tempdima
}
\newcommand\thickline{%
  \noalign{\hrule\@height1pt\vskip.8ex\relax}%
}
\newcommand\V[1]{\texttt{\string#1}}
\newcommand\Chap{$^*$}
\newcommand\Sec{$^{**}$}
\newcommand\Lang{$^\dag$}
\newcommand\Strut{\rule[2.5ex]{0pt}{0pt}}
\newcommand\Strutt{\rule[3.5ex]{0pt}{0pt}}
\newcommand\FontDefault[2]{%
  \begin{tabular}[t]{@{}l@{}}%
      #1\\
      \hspace*{2em}#2
  \end{tabular}%
}
\newcommand\FontChapSec[3]{%
  \begin{tabular}[t]{@{}l@{}}%
      #1\\
      \hspace*{2em}#2\Chap\\
      \hspace*{2em}#3\Sec
  \end{tabular}%
}
%\makeatother
%\makeatletter
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\def\ps@chapterverso{\ps@empty}%
\def\cleardoublepage{\clearpage
 \if@twoside
  \ifodd\c@page\else
   \null\thispagestyle{chapterverso}\newpage
   \if@twocolumn\null\newpage\fi
   \fi
  \fi
 }%
\def\ps@chapterverso{\ps@empty}%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\makeatother
\def\name#1#2{\penalty-1\mbox{\textrm{#1}~\textsc{#2}}}
\def\xname#1#2{\mbox{\textrm{#1}~\textsc{#2}}}
\parskip=12pt
%\def\bs{{\ttfamily\char'134}}
\def\bs{\textbackslash} %ESSAI
\setcounter{tocdepth}{6}
\setcounter{parttocdepth}{0} % only chapters
\setcounter{minitocdepth}{6}
\setcounter{secnumdepth}{6}
\renewcommand{\textfraction}{.0}
\renewcommand{\topfraction}{.9999}
\renewcommand{\bottomfraction}{.9999}
\renewcommand{\floatpagefraction}{.9999}
\setcounter{totalnumber}{10}
\setcounter{topnumber}{10}
\setcounter{bottomnumber}{10}
\makeatletter
\setlength{\@fptop}{0pt}% to push floats to top on float pages
\makeatother
\clubpenalty=10000
\widowpenalty=10000
\let\mysize\small
\author{\name{Jean-Pierre F.}{Drucbert}\\%
ONERA~/~Centre de Toulouse~/~SRI\\%
\url{mailto:jean-pierre.drucbert@onera.fr}}
\date{\today}
\title{The \texttt{minitoc} package\\(version~\#43)}
\parindent=0pt
\hyphenation{biblio-gra-phy}
\hyphenation{Biblio-gra-phy}
\makeatletter
\let\o@tocrmarg\@tocrmarg
\def\@tocrmarg{\o@tocrmarg plus 1fil}
% macros for needed vertical space
\def\need#1{\ifhmode\unskip\par\fi \penalty-100 \begingroup % preserve \dimen@, \dimen@i
   \ifdim\prevdepth>\maxdepth \dimen@i\maxdepth \else \dimen@i\prevdepth\fi
   \kern-\dimen@i
   \dimen@\pagegoal \advance\dimen@-\pagetotal % space left
   \ifdim #1>\dimen@
        \vfill\eject\PackageInfo{'need' macro}{WARNING- EJECT BY NEED}
   \fi
   \kern\dimen@i
   \endgroup}
\def\lneed#1{\need{#1\baselineskip}}
\def\sneed#1{\ifhmode\unskip\par\fi \penalty-100 \begingroup % preserve \dimen@, \dimen@i
   \ifdim\prevdepth>\maxdepth \dimen@i\maxdepth \else \dimen@i\prevdepth\fi
   \kern-\dimen@i
   \dimen@\pagegoal \advance\dimen@-\pagetotal % space left
   \ifdim #1>\dimen@
        \vfill\null\newpage\PackageInfo{'sneed' macro}{WARNING- SOFT EJECT BY NEED}
   \fi
   \kern\dimen@i
   \endgroup}
\def\lsneed#1{\sneed{#1\baselineskip}}
% to avoid a page break just after
% a part/chapter/section title in a table of contents.
\let\old@l@part\l@part
\def\l@part{\lneed{6}\old@l@part}
\let\old@l@chapter\l@chapter
\def\l@chapter{\lneed{2.5}\old@l@chapter}
\let\old@l@section\l@section
\def\l@section{\lneed{1.5}\old@l@section}
%
%Donald Arseneau                         asnd@reg.triumf.ca
% bottomfnote.sty
\let\bf@makecolold=\@makecol
\def\@makecol{\advance\skip\footins\fill \bf@makecolold}
% end of bottomfnote.sty
% enlarge section mumbers (numwidth) in tocs.
\renewcommand*\l@section{\@dottedtocline{1}{1.5em}{2.8em}}
\renewcommand*\l@subsection{\@dottedtocline{2}{4.3em}{3.7em}}
\renewcommand*\l@subsubsection{\@dottedtocline{3}{7.0em}{4.6em}}
\renewcommand*\l@paragraph{\@dottedtocline{4}{10em}{5.5em}}
\renewcommand*\l@subparagraph{\@dottedtocline{5}{12em}{6.5em}}
%
\renewcommand*\l@figure{\@dottedtocline{1}{1.5em}{2.3em}}
\let\l@table\l@figure
\makeatother
\providecommand{\AmS}{$\mathcal{A}$\kern-.1667em\lower.5ex\hbox{$\mathcal{M}$}%
            \kern-.125em$\mathcal{S}$}%
%%%
\providecommand{\BAR}{\texttt{\textbar}}