%% marge et suppression des pieds de page
\usepackage[paperheight=22cm,paperwidth=14cm, textwidth=10.3cm, textheight=17cm, left=2cm,right=1.7cm,top=2.5cm,headsep=0.7cm,nofoot]{geometry}

% traits de coupe
\usepackage[a4,cam,noaxes,pdflatex,center]{crop}

%% Définition des polices
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{fourier}
\usepackage{csquotes}

%% Quelques caractères spéciaux
%\usepackage{textcomp}
%% En-têtes
\usepackage{fancyhdr}
\pagestyle{fancy}
\renewcommand{\chaptermark}[1]{\markboth{#1}{}}
\fancyhead[LO]{\small{\textsc{\leftmark}}}
\fancyhead[RE]{\small{\textsc{agnese trocchi}}}
\fancyhead[RO,LE]{\small{\thepage}}
\fancyfoot{}
\setlength{\headheight}{0.5cm}
\renewcommand{\headrulewidth}{0pt}

% En-têtes pour les premières pages de chapitre
\fancypagestyle{plain}{%
  \fancyhf{}%
  \fancyfoot{}%
  \renewcommand{\headrulewidth}{0pt}%
  \renewcommand{\footrulewidth}{0pt}}

%% Supprimer les sauts de paragraphes
\setlength{\parskip}{0cm}
\setlength{\parsep}{0cm}
%% Format partie
\renewcommand{\partname}{} % On supprime le num
\renewcommand{\thepart}{} % et le nom des parts pour tt le doc

\usepackage{titlesec, titletoc}
\titleformat{\part}[display]
  {\normalfont\centering}{}{0pt}{\Huge}


%% Format chapitre
\titleformat{\chapter}[display]
  {\normalfont\scshape\centering}{}{0pt}{\Large}
\titlespacing*{\chapter}{0pt}{1cm}{1.3cm}  

%% Format sections
\titleformat{\section}[hang]
  {\normalfont\itshape}{}{0pt}{\large}
\titlespacing*{\section}{0cm}{0.4cm}{0.3cm}  

%% Format subsection
\titleformat{\subsection}[hang]
  {\normalfont\itshape}{}{0pt}{\normalsize}
\titlespacing*{\subsection}{2em}{0.3cm}{0.2cm}  

%% Format Glossario
\titleformat{\subsubsection}[runin]
{\normalfont\bfseries}{\thesubsection}{1em}{}

%% Pas d'en-tête pour les pages vraiment vides
\usepackage{emptypage}

%% TOC
%% Un seul niveau de table des matières
\setcounter{tocdepth}{0}

\titlecontents{part}[0em]
    {\vspace{30pt}\normalfont\Large\centering}
    {\thecontentslabel[\relax]{0em}}{}{\vspace{10pt}}
    
\titlecontents{chapter}[0em]
    {\normalfont\scshape}
    {\contentslabel[\relax]{0em}}
    {\hspace*{-2em}\uppercase}
    {\titlerule*[.75em]{.}\contentspage}

% % Suppression des brackets dans la bibliographie va avec la suppression des
% % numéros dans l'appel de biblatex
% \renewrobustcmd{\mkbibbrackets}{}
% \renewcommand{\newunitpunct}[0]{\addcomma\addspace} %% virgules au lieu des points

% \renewbibmacro*{publisher+location+date}{%
%   \ifentrytype{book}
%     {\printlist{publisher}%
%      \iflistundef{location}
%        {\setunit*{\addcomma\space}}
%        {\setunit*{\addcomma\space}}%
%      \printlist{location}}
%     {\printlist{location}%
%      \iflistundef{publisher}
%       {\setunit*{\addcomma\space}}
%       {\setunit*{\addcolon\space}}%
%      \printlist{publisher}}
%   \setunit*{\addcomma\space}%
%   \usebibmacro{date}%
%   \newunit}%

% Typo geek
\usepackage{microtype}
%\widowpenalty=10000
%\clubpenalty=10000
\usepackage[defaultlines=3,all]{nowidow}

% Def des listes à puces
\usepackage{enumitem}
\setlist{nosep} % or \setlist{noitemsep} to leave space around whole list

% Paquet pour insérer des images
\usepackage{graphicx}
%% Paquets pour le test
\usepackage{lipsum}

\usepackage{layout}

\usepackage[british]{babel}

%% Pour page noire
\usepackage{pdfpages}
\newcommand\postpart{}
%% Macro pur titre
\def\purtitre{%
\clearpage\null
\pagebreak
\hspace{0pt}
\vfill
\begin{center}
  {\huge Internet, mon amour}
\end{center}
\vfill
\hspace{0pt}
\thispagestyle{empty}
\pagebreak
\cleardoublepage}

%% Macro page droits
\def\secondpage{%
\clearpage\null\vfill%
\pagestyle{empty}
\begin{minipage}[b]{0.9\textwidth}
\footnotesize\centering
\setlength{\parskip}{0.5\baselineskip}
Internet, mon amour\\[0.8\baselineskip]

\textcopyright 2018 C.I.R.C.E. % mod \textcopyright{}

\textcopyright 2019 Agnese Trocchi% mod \textcopyright{}

\textcopyright 2020 Agnese Trocchi - English translation% mod \textcopyright{}

Originally published 2019 - Italian 

Graphics by C.I.R.C.E.\\[0.8\baselineskip]

\url{https://ima.circex.org}

\url{info@circex.org}\\[0.8\baselineskip]

ISBN cartaceo: 978-88-5526-305-4\\
Ledizioni LediPublishing\\
Via Alamanni 11 – 20141 Milano – Italy\\
\url{www.ledizioni.it} - \url{info@ledizioni.it}\\[0.8\baselineskip]

\includegraphics{./00-titolo_etc/by-nc-sa.png}

This text has been released under Creative Commons
Attribution-NonCommercial-ShareAlike 4.0 International. \\
To read a copy of the licence:
\url{http://creativecommons.org/licenses/by-sa/4.0/} \\ or send an e-mail to:

Creative Commons,
PO Box 1866, Mountain View,
CA 94042, USA
\end{minipage}
\vspace*{2\baselineskip}
\cleardoublepage}

%% Macro dernièrepage

\def\lastpagina{%
\clearpage\null\vfill%
\pagestyle{empty}
\begin{minipage}[b]{0.9\textwidth}
\footnotesize\centering
\setlength{\parskip}{0.5\baselineskip}
composition flow: markdown + org mode $\,\to\,$  \LaTeX $\,\to\,$ PDF

layout: GNU Emacs

font: Fourier

\vspace{1cm}

\decoone

cover image: graphic rework from Karen Watson

Anatomical Heart Images

from a Vintage Circa 1884 Science Book,

\url{https://thegraphicsfairy.com}

\vspace{1cm}

\decoone

first edition --- 200 copies \\

Cover paper Favini Shiro Eco White FSC~---~100\% recycled 250 gr. \\
Inside pages paper Musa Green 1.6 FSC 80 gr. \\

printed in September 2020 \\
at Geca~srl~---~San Giuliano Milanese (Milano)

\end{minipage}
\vspace*{2\baselineskip}}

\author{Agnese Trocchi}
\title{Internet mon amour}
