This repository has been archived by the owner on Apr 17, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
FFF.sty
170 lines (162 loc) · 4.44 KB
/
FFF.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
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
\newenvironment{sectionbib}[2]
{\subsubsection{#2}
\list{\@biblabel{\@arabic\c@enumiv}}%
{\settowidth\labelwidth{\@biblabel{#1}}%
\leftmargin\labelwidth
\advance\leftmargin\labelsep
\@openbib@code
\usecounter{enumiv}%
\let\p@enumiv\@empty
\renewcommand\theenumiv{\@arabic\c@enumiv}}%
\sloppy
\clubpenalty4000
\@clubpenalty \clubpenalty
\widowpenalty4000%
\sfcode`\.\@m}
{\def\@noitemerr
{\@latex@warning{Empty `sectionbib' environment}}%
\endlist}
\chardef\other=12
\renewcommand{\ttdefault}{pcr}
\renewcommand{\bfdefault}{b}
\DeclareFixedFont{\MotClefFont}{\encodingdefault}{pcr}{b}{\shapedefault}{10pt}
\def\sizeFF{\footnotesize}
\gdef\myendgraf{\catcode`\{=\active % left brace is begin-group character
\catcode`\}=\active\catcode`\^=\other\catcode`\_=11
% right brace is end-group character
% ---- FH --- remarque -------
%%% pour avoir des lignes blanche
\ifcmm\egroup \fi\upshape\cmmfalse\hbox to 0pt{}\endgraf}
%%% sans avoir des lignes blanche
%\ifcmm\egroup \fi\upshape\cmmfalse\endgraf}
% --------------------------------
\catcode`\@=\active
\def@{\bgroup\MotClefFont%\bfserie\ttfamily
\catcode`\0 = 11
\catcode`\1 = 11
\catcode`\2 = 11
\catcode`\3 = 11
\catcode`\4 = 11
\catcode`\5 = 11
\catcode`\6 = 11
\catcode`\7 = 11
\catcode`\8 = 11
\catcode`\9 = 11
\catcode`\_ = 11
\afterassignment\lecturecar\let\next= }
\catcode`\@=11
\def\lecturecar{%
\ifcat\noexpand\next a%
{\Blue{\next}}%
\def \nextnext{\afterassignment\lecturecar\let\next= }%
\else \ifcat\noexpand\next \space%
\space\fi
\global\let\nextnext\next\egroup
\fi
\nextnext}
{
\catcode`\>=2
\catcode`\<=1
\catcode`\}=\active
\catcode`\{=\active
\catcode`\[=\active
\catcode`\]=\active
\gdef\SetBrace<
\gdef}<\texttt<\string}>>
\gdef{<\string{>
\gdef[<\string[>
\gdef]<\string]>
>
\catcode`\}=2
\catcode`\{=1
\catcode`\>=\other
\catcode`\<=\other
}
\def\chiffreislettre{
\catcode`\0=11
\catcode`\1 = 11
\catcode`\2 = 11
\catcode`\3 = 11
\catcode`\4 = 11
\catcode`\5 = 11
\catcode`\6 = 11
\catcode`\7 = 11
\catcode`\8 = 11
\catcode`\9 = 11
\catcode`\_ = 11
}
\def\ttCC{\bgroup%
\chiffreislettre\catcode`\@=\active\ttCCC}
\def\ttCCC#1{{\texttt{#1}}\egroup}
{
\catcode`\<=\active
\catcode`\>=\active
\catcode`\/ = \active
%\gdef
\gdef\FFverbatim{
\begingroup\newif\ifcmm\cmmfalse
\let\mypar=\par\let\par=\myendgraf\sizeFF
\let\it=\itshape
\catcode`\è=\active\def\è{\`e}
\catcode`\à=\active\def\à{\`a}
\catcode`\î=\active\def\î{\^\i}
% \catcode`\$=\other
\def\expo##1{^{##1}}
\def\expo!##1!{^{##1}}
\def\indice##1{_{##1}}
\catcode`\&=\other
\catcode`\%=\other
\catcode`\#=\other
\catcode`\%=\other
\catcode`\~=\active\def~{\string~}
% \catcode`\_=\other
\catcode`\^=\other%\def\^{\string^}
\catcode`\}=\other
\catcode`\:=\other
\catcode`\{=\other
\catcode`\[=\other%\def[{$]$}
\catcode`\]=\other%\def]{$[$}
\catcode`\<=\other%\active\def<{\texttt{\string<}}
\catcode`\>=\other%\active\def>{\texttt{\string>}}
\catcode`\@= 13
\catcode`\0 = 11
\catcode`\1 = 11
\catcode`\2 = 11
\catcode`\3 = 11
\catcode`\4 = 11
\catcode`\5 = 11
\catcode`\6 = 11
\catcode`\7 = 11
\catcode`\8 = 11
\catcode`\9 = 11
\catcode`\_ = 11
\def\"{\string\"}
\def\n{\string\n}
\def\0{\string\0}
\def\t{\string\t}
\def\f{\string\f}
\def\\{\string\\}
\def\commentaire{\cmmtrue\bgroup\textRed\itshape\hfill\string/\string/ \catcode`\{=1 % left brace is begin-group character
\catcode`\}=2 % right brace is end-group character
\catcode`\$=3 % dollar sign is math shift
\catcode`\^=7
\catcode`\_=8
\catcode`\ =10
\catcode`\@=10\def\@{\string@}% le @ est un espace et \@ et @
\def\hfilll{\hskip 0pt plus 1filll}
\def/{\string/}
}%
\catcode`\/ = \active
\def/{\afterassignment\FFcomment\let\next= }
\def\FFcomment{\ifx/\next\commentaire \else \string/\next \fi}
\obeyspaces\obeylines}
{\obeyspaces\gdef {\ }}\SetBrace}
\outer\def\bFF{\bgroup\smallskip\par\parskip=0pt plus 2pt%\parskip=\z@\rightskip-5pc\medskip
\FFverbatim \sizeFF \tt}
\def\eFF{\ifcmm\egroup\fi\endgroup\par\egroup\medskip}
\outer\def\inputFF#1{\par\def\includefile{\input{#1}}\parskip=0pt plus 2pt
\FFverbatim\tt\includefile\endgroup}
%OT
\def\bT{\\\FFverbatim \small \tt
\hspace*{4ex}\begin{minipage}{.9\textwidth}}
\def\eT{\end{minipage}\endgroup\medskip\\}