-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathchapitre.sty
51 lines (44 loc) · 1.89 KB
/
chapitre.sty
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
% MAY BE superseded by titlesec.sty
% given by svial
% change: CMR was hardcoded for the chapter number -> use of PNFSS (fontsize)
\typeout{Style "chapitre.sty"}
% \chaptername = Chapter/Chapitre
% \appendixname = Appendix/Annexe
% \@chapapp : nom du chapitre = \chaptername ou \appendixname
% \thechapter : numéro du chapitre = 1,2 ... ou A,B, ...
%\newfont{\chapfonte}{cmr10 scaled 6000} % sr
% La taille (=hauteur) de la fonte est 10pt * scaled / 1000
% Remarque : \magstep<n> vaut 1000*(1.2)^n
% Donc \magstep1 multiplie la fonte par 1.2, ie l'augmente de 20%
\def\haut{20mm} % Hauteur des chiffres, à ajuster avec 'scaled'
\def\decal{1.75ex} % Pour aligner la ligne avec le haut de CHAPITRE
\newlength{\lgnamechap}
\newlength{\lgnumchap}
\newlength{\lgall}
\def\@makechapterhead#1{%
% \def\myboxtwo{\mbox{\chapfonte\thechapter}} %sr
\def\myboxtwo{\mbox{\fontsize{60}{80}\selectfont\thechapter}}
\ifcat 0\thechapter% chapitre ou annexe ? (\@chapapp ne marche pas !)
\def\myboxone{\Large\sc\expandafter{\chaptername}}\else
\def\myboxone{\Large\sc\expandafter{\appendixname}}\fi
\settowidth{\lgnamechap}{\myboxone}
\settowidth{\lgnumchap}{\myboxtwo}
\addtolength{\lgnumchap}{6mm}
\setlength{\lgall}{\linewidth+.4cm}%baaaaad
\addtolength{\lgall}{-\lgnamechap}
\addtolength{\lgall}{-\lgnumchap}
{\parindent\z@
\begin{tabular}{ll}
\begin{tabular}{c}
\parbox[t]{\lgnamechap}{\myboxone} \\[3mm]
\parbox[t]{\lgnumchap}{\hspace{3mm}\myboxtwo}
\end{tabular}
&
\raisebox{1.15cm}{\parbox[t]{\lgall}{\rule{\lgall}{1mm}\\\raggedright\Huge\bf{#1}}}
\end{tabular}
\par
% \nobreak
\vskip 80\p@
}
}
\endinput