blob: 2d2517dcb4c87a0f88012c47958c5003bb66da60 (
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
|
%%
%% This is file `mtc-2nd.tex',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% minitoc.dtx (with options: `mtc-2nd')
%% This is a generated file.
%%
%% Copyright (C) 2005, 2006 by:
%% Jean-Pierre F. Drucbert (JPFD)
%% <jean-pierre.drucbert@onera.fr>
%%
%% This file may be distributed and/or modified under the conditions of
%% the LaTeX Project Public License, either version 1.3 of this license
%% or (at your option) any later version. The latest version of this
%% license is in:
%%
%% http://www.latex-project.org/lppl.txt
%%
%% and version 1.3 or later is part of all distributions of LaTeX version
%% 2003/12/01 or later.
%%
%% This work has the LPPL maintenance status "author-maintained".
%%
%% This Current Maintainer of this work is Jean-Pierre F. Drucbert (JPFD).
%%
%% This work consists of all the files listed in the file `minitoc.l'
%% distributed with it.
%% Test de french2.mld:
%% « seconde » ou « deuxième » partie?
%% compilez 3 fois.
\documentclass{report}
\ProvidesFile{mtc-2nd.tex}%
[2007/01/04]
\usepackage[french2,tight,listfiles]{minitoc}
\usepackage[french]{babel}
\usepackage{franc,frnew}
\usepackage[OT1,TS1,T1]{fontenc}
\usepackage[isolatin]{inputenc}
\usepackage{mypatches}
\begin{document}
\ifmtcsecondpart
Il n'y a que 2 parties: seconde.
\else
Il y a une partie ou plus de deux parties: deuxième.
\fi
\clearpage
\doparttoc
\faketableofcontents
\part{P1}
\parttoc
\chapter{P1C1}
\chapter{P1C2}
\part{P2}
\parttoc
\chapter{P2C1}
\chapter{P2C2}
%% Commentez la ligne suivante puis recompilez 2 ou 3 fois.
\end{document}
\part{P3}
\parttoc
\chapter{P3C1}
\chapter{P3C2}
\end{document}
\endinput
%%
%% End of file `mtc-2nd.tex'.
|