template.tex 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223
  1. %% marge et suppression des pieds de page
  2. \usepackage[paperheight=22cm,paperwidth=14cm, textwidth=10.3cm, textheight=17cm, left=2cm,right=1.7cm,top=2.5cm,headsep=0.7cm,nofoot]{geometry}
  3. % traits de coupe
  4. \usepackage[a4,cam,noaxes,pdflatex,center]{crop}
  5. %% Définition des polices
  6. \usepackage[utf8]{inputenc}
  7. \usepackage[T1]{fontenc}
  8. \usepackage{fourier}
  9. \usepackage{csquotes}
  10. %% Quelques caractères spéciaux
  11. %\usepackage{textcomp}
  12. %% En-têtes
  13. \usepackage{fancyhdr}
  14. \pagestyle{fancy}
  15. \renewcommand{\chaptermark}[1]{\markboth{#1}{}}
  16. \fancyhead[LO]{\small{\textsc{\leftmark}}}
  17. \fancyhead[RE]{\small{\textsc{agnese trocchi}}}
  18. \fancyhead[RO,LE]{\small{\thepage}}
  19. \fancyfoot{}
  20. \setlength{\headheight}{0.5cm}
  21. \renewcommand{\headrulewidth}{0pt}
  22. % En-têtes pour les premières pages de chapitre
  23. \fancypagestyle{plain}{%
  24. \fancyhf{}%
  25. \fancyfoot{}%
  26. \renewcommand{\headrulewidth}{0pt}%
  27. \renewcommand{\footrulewidth}{0pt}}
  28. %% Supprimer les sauts de paragraphes
  29. \setlength{\parskip}{0cm}
  30. \setlength{\parsep}{0cm}
  31. %% Format partie
  32. \renewcommand{\partname}{} % On supprime le num
  33. \renewcommand{\thepart}{} % et le nom des parts pour tt le doc
  34. \usepackage{titlesec, titletoc}
  35. \titleformat{\part}[display]
  36. {\normalfont\centering}{}{0pt}{\Huge}
  37. %% Format chapitre
  38. \titleformat{\chapter}[display]
  39. {\normalfont\scshape\centering}{}{0pt}{\Large}
  40. \titlespacing*{\chapter}{0pt}{1cm}{1.3cm}
  41. %% Format sections
  42. \titleformat{\section}[hang]
  43. {\normalfont\itshape}{}{0pt}{\large}
  44. \titlespacing*{\section}{0cm}{0.4cm}{0.3cm}
  45. %% Format subsection
  46. \titleformat{\subsection}[hang]
  47. {\normalfont\itshape}{}{0pt}{\normalsize}
  48. \titlespacing*{\subsection}{2em}{0.3cm}{0.2cm}
  49. %% Format Glossario
  50. \titleformat{\subsubsection}[runin]
  51. {\normalfont\bfseries}{\thesubsection}{1em}{}
  52. %% Pas d'en-tête pour les pages vraiment vides
  53. \usepackage{emptypage}
  54. %% TOC
  55. %% Un seul niveau de table des matières
  56. \setcounter{tocdepth}{0}
  57. \titlecontents{part}[0em]
  58. {\vspace{30pt}\normalfont\Large\centering}
  59. {\thecontentslabel[\relax]{0em}}{}{\vspace{10pt}}
  60. \titlecontents{chapter}[0em]
  61. {\normalfont\scshape}
  62. {\contentslabel[\relax]{0em}}
  63. {\hspace*{-2em}\uppercase}
  64. {\titlerule*[.75em]{.}\contentspage}
  65. % % Suppression des brackets dans la bibliographie va avec la suppression des
  66. % % numéros dans l'appel de biblatex
  67. % \renewrobustcmd{\mkbibbrackets}{}
  68. % \renewcommand{\newunitpunct}[0]{\addcomma\addspace} %% virgules au lieu des points
  69. % \renewbibmacro*{publisher+location+date}{%
  70. % \ifentrytype{book}
  71. % {\printlist{publisher}%
  72. % \iflistundef{location}
  73. % {\setunit*{\addcomma\space}}
  74. % {\setunit*{\addcomma\space}}%
  75. % \printlist{location}}
  76. % {\printlist{location}%
  77. % \iflistundef{publisher}
  78. % {\setunit*{\addcomma\space}}
  79. % {\setunit*{\addcolon\space}}%
  80. % \printlist{publisher}}
  81. % \setunit*{\addcomma\space}%
  82. % \usebibmacro{date}%
  83. % \newunit}%
  84. % Typo geek
  85. \usepackage{microtype}
  86. %\widowpenalty=10000
  87. %\clubpenalty=10000
  88. \usepackage[defaultlines=3,all]{nowidow}
  89. % Def des listes à puces
  90. \usepackage{enumitem}
  91. \setlist{nosep} % or \setlist{noitemsep} to leave space around whole list
  92. % Paquet pour insérer des images
  93. \usepackage{graphicx}
  94. %% Paquets pour le test
  95. \usepackage{lipsum}
  96. \usepackage{layout}
  97. \usepackage[british]{babel}
  98. %% Pour page noire
  99. \usepackage{pdfpages}
  100. \newcommand\postpart{}
  101. %% Macro pur titre
  102. \def\purtitre{%
  103. \clearpage\null
  104. \pagebreak
  105. \hspace{0pt}
  106. \vfill
  107. \begin{center}
  108. {\huge Internet, mon amour}
  109. \end{center}
  110. \vfill
  111. \hspace{0pt}
  112. \thispagestyle{empty}
  113. \pagebreak
  114. \cleardoublepage}
  115. %% Macro page droits
  116. \def\secondpage{%
  117. \clearpage\null\vfill%
  118. \pagestyle{empty}
  119. \begin{minipage}[b]{0.9\textwidth}
  120. \footnotesize\centering
  121. \setlength{\parskip}{0.5\baselineskip}
  122. Internet, mon amour\\[0.8\baselineskip]
  123. \textcopyright 2018 C.I.R.C.E. % mod \textcopyright{}
  124. \textcopyright 2019 Agnese Trocchi% mod \textcopyright{}
  125. \textcopyright 2020 Agnese Trocchi - English translation% mod \textcopyright{}
  126. Originally published 2019 - Italian
  127. Graphics by C.I.R.C.E.\\[0.8\baselineskip]
  128. \url{https://ima.circex.org}
  129. \url{info@circex.org}\\[0.8\baselineskip]
  130. ISBN cartaceo: 978-88-5526-305-4\\
  131. Ledizioni LediPublishing\\
  132. Via Alamanni 11 – 20141 Milano – Italy\\
  133. \url{www.ledizioni.it} - \url{info@ledizioni.it}\\[0.8\baselineskip]
  134. \includegraphics{./00-titolo_etc/by-nc-sa.png}
  135. This text has been released under Creative Commons
  136. Attribution-NonCommercial-ShareAlike 4.0 International. \\
  137. To read a copy of the licence:
  138. \url{http://creativecommons.org/licenses/by-sa/4.0/} \\ or send an e-mail to:
  139. Creative Commons,
  140. PO Box 1866, Mountain View,
  141. CA 94042, USA
  142. \end{minipage}
  143. \vspace*{2\baselineskip}
  144. \cleardoublepage}
  145. %% Macro dernièrepage
  146. \def\lastpagina{%
  147. \clearpage\null\vfill%
  148. \pagestyle{empty}
  149. \begin{minipage}[b]{0.9\textwidth}
  150. \footnotesize\centering
  151. \setlength{\parskip}{0.5\baselineskip}
  152. composition flow: markdown + org mode $\,\to\,$ \LaTeX $\,\to\,$ PDF
  153. layout: GNU Emacs
  154. font: Fourier
  155. \vspace{1cm}
  156. \decoone
  157. cover image: graphic rework from Karen Watson
  158. Anatomical Heart Images
  159. from a Vintage Circa 1884 Science Book,
  160. \url{https://thegraphicsfairy.com}
  161. \vspace{1cm}
  162. \decoone
  163. first edition --- 200 copies \\
  164. Cover paper Favini Shiro Eco White FSC~---~100\% recycled 250 gr. \\
  165. Inside pages paper Musa Green 1.6 FSC 80 gr. \\
  166. printed in September 2020 \\
  167. at Geca~srl~---~San Giuliano Milanese (Milano)
  168. \end{minipage}
  169. \vspace*{2\baselineskip}}
  170. \author{Agnese Trocchi}
  171. \title{Internet mon amour}