-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhurlus.tex
312 lines (275 loc) · 8.97 KB
/
hurlus.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
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
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% LaTeX model https://hurlus.fr %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Needed before document class
\RequirePackage{pdftexcmds} % needed for tests expressions
\RequirePackage{fix-cm} % correct units
% Define mode
\def\mode{a4}
\newif\ifaiv % a4
\newif\ifav % a5
\newif\ifbooklet % booklet
\newif\ifcover % cover for booklet
\ifnum \strcmp{\mode}{cover}=0
\covertrue
\else\ifnum \strcmp{\mode}{booklet}=0
\booklettrue
\else\ifnum \strcmp{\mode}{a5}=0
\avtrue
\else
\aivtrue
\fi\fi\fi
\ifbooklet % do not enclose with {}
\documentclass[twoside]{book} % ,notitlepage
\usepackage[%
papersize={105mm, 297mm},
inner=12mm,
outer=12mm,
top=20mm,
bottom=15mm,
marginparsep=3pt,
marginpar=7mm,
]{geometry}
\usepackage[fontsize=9.5pt]{scrextend} % for Roboto
\else\ifav % A5
\documentclass[twoside]{book} % ,notitlepage
\usepackage[%
a5paper
]{geometry}
\usepackage[fontsize=12pt]{scrextend}
\else% A4 2 cols
\documentclass[twocolumn]{report}
\usepackage[%
a4paper,
inner=15mm,
outer=10mm,
top=25mm,
bottom=18mm,
marginparsep=0pt,
]{geometry}
\setlength{\columnsep}{20mm}
\usepackage[fontsize=9.5pt]{scrextend}
\fi\fi
%%%%%%%%%%%%%%
% Alignments %
%%%%%%%%%%%%%%
% before teinte macros
\setlength{\arrayrulewidth}{0.2pt}
\setlength{\columnseprule}{\arrayrulewidth} % twocol
%%%%%%%%%%
% Colors %
%%%%%%%%%%
% before Teinte macros
\usepackage[dvipsnames]{xcolor}
\definecolor{rubric}{HTML}{0c71c3} % the tonic
\def\columnseprulecolor{\color{rubric}}
\colorlet{borderline}{rubric!30!} % definecolor need exact code
\definecolor{shadecolor}{gray}{0.95}
\definecolor{grey50}{HTML}{808080}
%%%%%%%%%%%%%%%%%
% Teinte macros %
%%%%%%%%%%%%%%%%%
\input{../latex/teinte}
\setmainlanguage{french}
%%%%%%%%%%%%%
% footnotes %
%%%%%%%%%%%%%
\renewcommand{\thefootnote}{\bfseries\textcolor{rubric}{\arabic{footnote}}} % color for footnote marks
%%%%%%%%%
% Fonts %
%%%%%%%%%
% \linespread{0.90} % too compact, keep font natural
\ifav % A5
\usepackage{DejaVuSans} % correct
\setsansfont{DejaVuSans} % seen, if not set, problem with printer
\else\ifbooklet
\usepackage[]{roboto} % SmallCaps, Regular is a bit bold
\setmainfont[
ItalicFont={Roboto Light Italic},
]{Roboto}
\setsansfont{Roboto Light} % seen, if not set, problem with printer
\newfontfamily\fontrun[]{Roboto Condensed Light} % condensed runing heads
\else
\usepackage[]{roboto} % SmallCaps, Regular is a bit bold
\setmainfont[
ItalicFont={Roboto Italic},
]{Roboto Light}
\setsansfont{Roboto Light} % seen, if not set, problem with printer
\newfontfamily\fontrun[]{Roboto Condensed Light} % condensed runing heads
\fi\fi
\renewcommand{\LettrineFontHook}{\bfseries\color{grey50}}
% \renewenvironment{labelblock}{\begin{center}\bfseries\color{rubric}}{\end{center}}
%%%%%%%%
% MISC %
%%%%%%%%
\setdefaultlanguage[frenchpart=false]{french} % bug on part
\newenvironment{quotebar}{%
\def\FrameCommand{{\color{rubric!10!}\vrule width 0.5em} \hspace{0.9em}}%
\def\OuterFrameSep{0pt} % séparateur vertical
\MakeFramed {\advance\hsize-\width \FrameRestore}
}%
{%
\endMakeFramed
}
\renewenvironment{quoteblock}% may be used for ornaments
{%
\savenotes
\setstretch{0.9}
\begin{quotebar}
\smallskip
}
{%
\smallskip
\end{quotebar}
\spewnotes
}
\renewcommand{\headrulewidth}{\arrayrulewidth}
\renewcommand{\headrule}{{\color{rubric}\hrule}}
\renewcommand{\lnatt}[1]{\marginpar{\sffamily\scriptsize #1}}
\titleformat{name=\chapter} % command
[display] % shape
{\vspace{1.5em}\centering} % format
{} % label
{0pt} % separator between n
{}
[{\color{rubric}\huge\textbf{#1}}\bigskip] % after code
% \titlespacing{command}{left spacing}{before spacing}{after spacing}[right]
\titlespacing*{\chapter}{0pt}{-2em}{0pt}[0pt]
\titleformat{name=\section}
[display]{}{}{}{}
[\vbox{\color{rubric}\large\centering\textbf{#1}}]
\titlespacing{\section}{0pt}{0pt plus 4pt minus 2pt}{\baselineskip}
\titleformat{name=\subsection}
[block]
{}
{} % \thesection
{} % separator \arrayrulewidth
{}
[\vbox{\large\textbf{#1}}]
% \titlespacing{\subsection}{0pt}{0pt plus 4pt minus 2pt}{\baselineskip}
\ifaiv
\fancypagestyle{main}{%
\fancyhf{}
\setlength{\headheight}{1.5em}
\fancyhead{} % reset head
\fancyfoot{} % reset foot
\fancyhead[L]{\truncate{0.45\headwidth}{\fontrun\elbibl}} % book ref
\fancyhead[R]{\truncate{0.45\headwidth}{ \fontrun\nouppercase\leftmark}} % Chapter title
\fancyhead[C]{\thepage}
}
\fancypagestyle{plain}{% apply to chapter
\fancyhf{}% clear all header and footer fields
\setlength{\headheight}{1.5em}
\fancyhead[L]{\truncate{0.9\headwidth}{\fontrun\elbibl}}
\fancyhead[R]{\thepage}
}
\else
\fancypagestyle{main}{%
\fancyhf{}
\setlength{\headheight}{1.5em}
\fancyhead{} % reset head
\fancyfoot{} % reset foot
\fancyhead[RE]{\truncate{0.9\headwidth}{\fontrun\elbibl}} % book ref
\fancyhead[LO]{\truncate{0.9\headwidth}{\fontrun\nouppercase\leftmark}} % Chapter title, \nouppercase needed
\fancyhead[RO,LE]{\thepage}
}
\fancypagestyle{plain}{% apply to chapter
\fancyhf{}% clear all header and footer fields
\setlength{\headheight}{1.5em}
\fancyhead[L]{\truncate{0.9\headwidth}{\fontrun\elbibl}}
\fancyhead[R]{\thepage}
}
\fi
\ifav % a5 only
\titleclass{\section}{top}
\fi
\newcommand\chapo{{%
\vspace*{-3em}
\centering\parindent0pt % no vskip ()
\eltitlepage
\bigskip
{\color{rubric}\hline}
\bigskip
{\Large TEXTE LIBRE À PARTICIPATIONS LIBRES\par}
\centerline{\small\color{rubric} {\href{https://hurlus.fr}{\dotuline{hurlus.fr}}}, tiré le \today}\par
\bigskip
}}
\newcommand\cover{{%
\thispagestyle{empty}
\centering\parindent0pt
\eltitlepage
\vfill\null
{\color{rubric}\setlength{\arrayrulewidth}{2pt}\hline}
\vfill\null
{\Large TEXTE LIBRE À PARTICIPATIONS LIBRES\par}
\centerline{\href{https://hurlus.fr}{\dotuline{hurlus.fr}}, tiré le \today}\par
}}
\begin{document}
\pagestyle{empty}
\ifbooklet{
\cover\newpage
\thispagestyle{empty}\hbox{}\newpage
\cover\newpage\noindent Les voyages de la brochure\par
\bigskip
\begin{tabularx}{\textwidth}{l|X|X}
\textbf{Date} & \textbf{Lieu}& \textbf{Nom/pseudo} \\ \hline
\rule{0pt}{25cm} & & \\
\end{tabularx}
\newpage
\addtocounter{page}{-4}
}\fi
\thispagestyle{empty}
\ifaiv
\twocolumn[\chapo]
\else
\chapo
\fi
{\it\elabstract}
\bigskip
\makeatletter\@starttoc{toc}\makeatother % toc without new page
\bigskip
\pagestyle{main} % after style
\setcounter{footnote}{0}
\setcounter{footnoteA}{0}
%text%
% at least one empty page at end (for booklet couv)
\ifbooklet
\pagestyle{empty}
\clearpage
% 2 empty pages maybe needed for 4e cover
\ifnum\modulo{\value{page}}{4}=0 \hbox{}\newpage\hbox{}\newpage\fi
\ifnum\modulo{\value{page}}{4}=1 \hbox{}\newpage\hbox{}\newpage\fi
\hbox{}\newpage
\ifodd\value{page}\hbox{}\newpage\fi
{\centering\color{rubric}\bfseries\noindent\large
Hurlus ? Qu’est-ce.\par
\bigskip
}
\noindent Des bouquinistes électroniques, pour du texte libre à participations libres,
téléchargeable gratuitement sur \href{https://hurlus.fr}{\dotuline{hurlus.fr}}.\par
\bigskip
\noindent Cette brochure a été produite par des éditeurs bénévoles.
Elle n’est pas faite pour être possédée, mais pour être lue, et puis donnée, ou déposée dans une boîte à livres.
En page de garde, on peut ajouter une date, un lieu, un nom ;
comme une fiche de bibliothèque en papier qui enregistre \emph{les voyages de la brochure}.
\par
Ce texte a été choisi parce qu’une personne l’a aimé,
ou haï, elle a pensé qu’il partipait à la formation de notre présent ;
sans le souci de plaire, vendre, ou militer pour une cause.
\par
L’édition électronique est soigneuse, tant sur la technique
que sur l’établissement du texte ; mais sans aucune prétention scolaire, au contraire.
Le but est de s’adresser à tous, sans distinction de science ou de diplôme.
\par
Cet exemplaire en papier a été tiré sur une imprimante personnelle
ou une photocopieuse. Tout le monde peut le faire.
Il suffit de
télécharger un fichier sur \href{https://hurlus.fr}{\dotuline{hurlus.fr}},
d’imprimer, et agrafer (puis lire et donner).\par
\bigskip
\noindent PS : Les hurlus furent aussi des rebelles protestants qui cassaient les statues dans les églises catholiques. En 1566 démarra la révolte des gueux dans le pays de Lille. L’insurrection enflamma la région jusqu’à Anvers où les gueux de mer bloquèrent les bateaux espagnols.
Ce fut une rare guerre de libération dont naquit un pays toujours libre : les Pays-Bas.
En plat pays francophone, par contre, restèrent des bandes de huguenots, les hurlus, progressivement réprimés par la très catholique Espagne.
Cette mémoire d’une défaite est éteinte, rallumons-la. Sortons les livres du culte universitaire, débusquons les idoles de l’époque, pour les démonter.
\fi
\end{document}