-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmembres.sample.tex
199 lines (174 loc) · 7.66 KB
/
membres.sample.tex
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
\makeatletter
%%% MEMBRES
% Usage, applies to all macros:
% \macro -> returns the name
% \macro* -> returns the name, underlined
% \macro** -> returns the association name, underlined, followed by a colon
% \macro*** -> returns the association name
%%%
% To Create new entries:
%%%
% Open https://regex101.com
% Copy all the text from here to the source box on the site
% Add all the new entries in the following form:
% <Full Name> | <macro name> | <Association Name> | <homme|femme>
% In the regex field, enter the following regex (between the two /s)
% /^((?:[\s-]?\b\w+\b)+)\s?\|\s?\\?\b(\w+)\b\s?\|\s?\b(\w+)\b\s?\|\s?\b(homme|femme)\b\s?$\n/gimu
%%%
% KATE REGEX
%%%
% ((?:[\s-]?\w+)+)\s?\|\s?\\?(\w+)\s?\|\s?(\w+)\s?\|\s?(homme|femme)\s?\n
% In the modifier field (second box after the / ), set the following flags to enable UTF-8 multiline greedy mode:
% /gmu
% In the substitution field, enter the following instruction: (literrally between the %%%s)
%%%
% \1 %\n\\newcounter\{\2\}\n\\ifbool\{ca\}\{\\setcounter\{\2\}\{-1\}\}\{\}\n\\NewDocumentCommand\{\\\2\}\{sss\}\{\\IfBooleanTF\{\#2\}\{\\\@i\2\\IfBooleanTF\{\#3\}\{\3\}\{\\uline\{\3\~:\}\}\}\{\\IfBooleanTF\{\#1\}\{\\\@i\2\\uline\{\\\@\2\~:\}\}\{\\ifbool\{ca\}\{\\\@i\2\}\{\}\\\@\2\}\}\}\n\\newcommand\{\\\@i\2\}\{\\intervention\4\\stepcounter\{\3\}\\stepcounter\{\2\}\}\n\\newcommand\{\\\@\2\}\{\1\}\n
%%%
%%%
% KATE REGEX
%%%
% \1 %\n\\newcounter{\2}\n\\ifbool{ca}{\\setcounter{\2}{-1}}{}\n\\NewDocumentCommand{\\\2}{sss}{\\IfBooleanTF{#2\}{\\@i\2\\IfBooleanTF{#3}{\3}{\\uline\{\3\~:}}}{\\IfBooleanTF{#1}{\\@i\2\\uline{\\@\2\~:}}{\\ifbool{ca}{\\@i\2}{}\\@\2}}}\n\\newcommand{\\@i\2}{\\intervention\4\\stepcounter{\3}\\stepcounter{\2}}\n\\newcommand{\\@\2}{\1}\n
% Copy and paste the results back here
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%
% ADEEP
%%%
\newcounter{ADEEP}
% Inconnu ADEEP %
\newcounter{iADEEP}
\ifbool{ca}{\setcounter{iADEEP}{-2}}{}
\NewDocumentCommand{\iADEEP}{sss}{\IfBooleanTF{#2}{\@iiADEEP\IfBooleanTF{#3}{ADEEP}{\uline{ADEEP~:}}}{\IfBooleanTF{#1}{\@iiADEEP\uline{\@iADEEP~:}}{\ifbool{ca}{\@iiADEEP}{}\@iADEEP}}}
\newcommand{\@iiADEEP}{\interventionhomme\stepcounter{ADEEP}\stepcounter{iADEEP}}
\newcommand{\@iADEEP}{Inconnu ADEEP}
%%%
% AGED
%%%
\newcounter{AGED}
% Inconnu AGED %
\newcounter{iAGED}
\ifbool{ca}{\setcounter{iAGED}{-2}}{}
\NewDocumentCommand{\iAGED}{sss}{\IfBooleanTF{#2}{\@iiAGED\IfBooleanTF{#3}{AGED}{\uline{AGED~:}}}{\IfBooleanTF{#1}{\@iiAGED\uline{\@iAGED~:}}{\ifbool{ca}{\@iiAGED}{}\@iAGED}}}
\newcommand{\@iiAGED}{\interventionhomme\stepcounter{AGED}\stepcounter{iAGED}}
\newcommand{\@iAGED}{Inconnu AGED}
%%%
% AGEEFEUS
%%%
\newcounter{AGEEFEUS}
% Inconnu AGEEFEUS %
\newcounter{iAGEEFEUS}
\ifbool{ca}{\setcounter{iAGEEFEUS}{-2}}{}
\NewDocumentCommand{\iAGEEFEUS}{sss}{\IfBooleanTF{#2}{\@iiAGEEFEUS\IfBooleanTF{#3}{AGEEFEUS}{\uline{AGEEFEUS~:}}}{\IfBooleanTF{#1}{\@iiAGEEFEUS\uline{\@iAGEEFEUS~:}}{\ifbool{ca}{\@iiAGEEFEUS}{}\@iAGEEFEUS}}}
\newcommand{\@iiAGEEFEUS}{\interventionhomme\stepcounter{AGEEFEUS}\stepcounter{iAGEEFEUS}}
\newcommand{\@iAGEEFEUS}{Inconnu AGEEFEUS}
%%%
% AGEEMUS
%%%
\newcounter{AGEEMUS}
% Inconnu AGEEMUS %
\newcounter{iAGEEMUS}
\ifbool{ca}{\setcounter{iAGEEMUS}{-2}}{}
\NewDocumentCommand{\iAGEEMUS}{sss}{\IfBooleanTF{#2}{\@iiAGEEMUS\IfBooleanTF{#3}{AGEEMUS}{\uline{AGEEMUS~:}}}{\IfBooleanTF{#1}{\@iiAGEEMUS\uline{\@iAGEEMUS~:}}{\ifbool{ca}{\@iiAGEEMUS}{}\@iAGEEMUS}}}
\newcommand{\@iiAGEEMUS}{\interventionhomme\stepcounter{AGEEMUS}\stepcounter{iAGEEMUS}}
\newcommand{\@iAGEEMUS}{Inconnu AGEEMUS}
%%%
% AGEEP
%%%
\newcounter{AGEEP}
% Inconnu AGEEP %
\newcounter{iAGEEP}
\ifbool{ca}{\setcounter{iAGEEP}{-2}}{}
\NewDocumentCommand{\iAGEEP}{sss}{\IfBooleanTF{#2}{\@iiAGEEP\IfBooleanTF{#3}{AGEEP}{\uline{AGEEP~:}}}{\IfBooleanTF{#1}{\@iiAGEEP\uline{\@iAGEEP~:}}{\ifbool{ca}{\@iiAGEEP}{}\@iAGEEP}}}
\newcommand{\@iiAGEEP}{\interventionhomme\stepcounter{AGEEP}\stepcounter{iAGEEP}}
\newcommand{\@iAGEEP}{Inconnu AGEEP}
%%%
% AGEESIUS
%%%
\newcounter{AGEESIUS}
% Inconnu AGEESIUS %
\newcounter{iAGEESIUS}
\ifbool{ca}{\setcounter{iAGEESIUS}{-2}}{}
\NewDocumentCommand{\iAGEESIUS}{sss}{\IfBooleanTF{#2}{\@iiAGEESIUS\IfBooleanTF{#3}{AGEESIUS}{\uline{AGEESIUS~:}}}{\IfBooleanTF{#1}{\@iiAGEESIUS\uline{\@iAGEESIUS~:}}{\ifbool{ca}{\@iiAGEESIUS}{}\@iAGEESIUS}}}
\newcommand{\@iiAGEESIUS}{\interventionhomme\stepcounter{AGEESIUS}\stepcounter{iAGEESIUS}}
\newcommand{\@iAGEESIUS}{Inconnu AGEESIUS}
%%%
% AGEFLESH
%%%
\newcounter{AGEFLESH}
% Inconnu AGEFLESH %
\newcounter{iAGEFLESH}
\ifbool{ca}{\setcounter{iAGEFLESH}{-2}}{}
\NewDocumentCommand{\iAGEFLESH}{sss}{\IfBooleanTF{#2}{\@iiAGEFLESH\IfBooleanTF{#3}{AGEFLESH}{\uline{AGEFLESH~:}}}{\IfBooleanTF{#1}{\@iiAGEFLESH\uline{\@iAGEFLESH~:}}{\ifbool{ca}{\@iiAGEFLESH}{}\@iAGEFLESH}}}
\newcommand{\@iiAGEFLESH}{\interventionhomme\stepcounter{AGEFLESH}\stepcounter{iAGEFLESH}}
\newcommand{\@iAGEFLESH}{Inconnu AGEFLESH}
%%%
% AGEG
%%%
\newcounter{AGEG}
% Inconnu AGEG %
\newcounter{iAGEG}
\ifbool{ca}{\setcounter{iAGEG}{-2}}{}
\NewDocumentCommand{\iAGEG}{sss}{\IfBooleanTF{#2}{\@iiAGEG\IfBooleanTF{#3}{AGEG}{\uline{AGEG~:}}}{\IfBooleanTF{#1}{\@iiAGEG\uline{\@iAGEG~:}}{\ifbool{ca}{\@iiAGEG}{}\@iAGEG}}}
\newcommand{\@iiAGEG}{\interventionhomme\stepcounter{AGEG}\stepcounter{iAGEG}}
\newcommand{\@iAGEG}{Inconnu AGEG}
%%%
% AGER
%%%
\newcounter{AGER}
% Inconnu AGER %
\newcounter{iAGER}
\ifbool{ca}{\setcounter{iAGER}{-2}}{}
\NewDocumentCommand{\iAGER}{sss}{\IfBooleanTF{#2}{\@iiAGER\IfBooleanTF{#3}{AGER}{\uline{AGER~:}}}{\IfBooleanTF{#1}{\@iiAGER\uline{\@iAGER~:}}{\ifbool{ca}{\@iiAGER}{}\@iAGER}}}
\newcommand{\@iiAGER}{\interventionhomme\stepcounter{AGER}\stepcounter{iAGER}}
\newcommand{\@iAGER}{Inconnu AGER}
%%%
% AGES
%%%
\newcounter{AGES}
% Inconnu AGES %
\newcounter{iAGES}
\ifbool{ca}{\setcounter{iAGES}{-2}}{}
\NewDocumentCommand{\iAGES}{sss}{\IfBooleanTF{#2}{\@iiAGES\IfBooleanTF{#3}{AGES}{\uline{AGES~:}}}{\IfBooleanTF{#1}{\@iiAGES\uline{\@iAGES~:}}{\ifbool{ca}{\@iiAGES}{}\@iAGES}}}
\newcommand{\@iiAGES}{\interventionhomme\stepcounter{AGES}\stepcounter{iAGES}}
\newcommand{\@iAGES}{Inconnu AGES}
%%%
% REGS
%%%
\newcounter{REGS}
% Inconnu REGS %
\newcounter{iREGS}
\ifbool{ca}{\setcounter{iREGS}{-2}}{}
\NewDocumentCommand{\iREGS}{sss}{\IfBooleanTF{#2}{\@iiREGS\IfBooleanTF{#3}{REGS}{\uline{REGS~:}}}{\IfBooleanTF{#1}{\@iiREGS\uline{\@iREGS~:}}{\ifbool{ca}{\@iiREGS}{}\@iREGS}}}
\newcommand{\@iiREGS}{\interventionhomme\stepcounter{REGS}\stepcounter{iREGS}}
\newcommand{\@iREGS}{Inconnu REGS}
%%%
% FEUS
%%%
\newcounter{FEUS}
% Inconnu FEUS %
\newcounter{iFEUS}
\ifbool{ca}{\setcounter{iFEUS}{-2}}{}
\NewDocumentCommand{\iFEUS}{sss}{\IfBooleanTF{#2}{\@iiFEUS\IfBooleanTF{#3}{FEUS}{\uline{FEUS~:}}}{\IfBooleanTF{#1}{\@iiFEUS\uline{\@iFEUS~:}}{\ifbool{ca}{\@iiFEUS}{}\@iFEUS}}}
\newcommand{\@iiFEUS}{\interventionhomme\stepcounter{FEUS}\stepcounter{iFEUS}}
\newcommand{\@iFEUS}{Inconnu FEUS}
%%%
% Rectorat
%%%
\newcounter{Rectorat}
% Inconnu Rectorat %
\newcounter{iRectorat}
\ifbool{ca}{\setcounter{iRectorat}{-2}}{}
\NewDocumentCommand{\iRectorat}{sss}{\IfBooleanTF{#2}{\@iiRectorat\IfBooleanTF{#3}{Rectorat}{\uline{Rectorat~:}}}{\IfBooleanTF{#1}{\@iiRectorat\uline{\@iRectorat~:}}{\ifbool{ca}{\@iiRectorat}{}\@iRectorat}}}
\newcommand{\@iiRectorat}{\interventionhomme\stepcounter{Rectorat}\stepcounter{iRectorat}}
\newcommand{\@iRectorat}{Inconnu Rectorat}
%%%
% REMDUS
%%%
\newcounter{REMDUS}
% Inconnu REMDUS %
\newcounter{iREMDUS}
\ifbool{ca}{\setcounter{iREMDUS}{-2}}{}
\NewDocumentCommand{\iREMDUS}{sss}{\IfBooleanTF{#2}{\@iiREMDUS\IfBooleanTF{#3}{REMDUS}{\uline{REMDUS~:}}}{\IfBooleanTF{#1}{\@iiREMDUS\uline{\@iREMDUS~:}}{\ifbool{ca}{\@iiREMDUS}{}\@iREMDUS}}}
\newcommand{\@iiREMDUS}{\interventionhomme\stepcounter{REMDUS}\stepcounter{iREMDUS}}
\newcommand{\@iREMDUS}{Inconnu REMDUS}
%%% END MEMBRES
\makeatother