diff --git a/main.tex b/main.tex index fae83b4..ff06eff 100755 --- a/main.tex +++ b/main.tex @@ -1,4 +1,4 @@ -\documentclass[12pt]{book} +\documentclass[14pt]{book} \input{structure.tex} \begin{document} @@ -9,9 +9,9 @@ \thispagestyle{empty} \begin{tikzpicture}[remember picture,overlay] \node[inner sep=0pt] (background) at (current page.center) {\includegraphics[width=\paperwidth]{background-guide-preparation-vacances.pdf}}; -\draw (current page.center) node [fill=turquoisefonce!30!white,fill opacity=0.6,text opacity=1,inner sep=1cm]{\Huge\centering\bfseries\sffamily\parbox[c][][t]{\paperwidth}{\centering Sur la route de l'autonomie,\\un guide de préparation de vacances\\[15pt] -{\Large Un guide 100\% logiciel libre}\\[20pt] -{\huge Je valide ça, par François Pelletier}}}; +\draw (current page.center) node [fill=turquoisefonce!20!white,fill opacity=0.6,text opacity=1,inner sep=1cm]{\Huge\centering\bfseries\sffamily\parbox[c][][t]{\paperwidth}{\centering Sur la route de l'autonomie,\\un guide de préparation de vacances\\[20pt] +{\huge Un guide 100\% logiciel libre}\\[24pt] +{\Large Je valide ça, par François Pelletier}\\}}; \end{tikzpicture} \vfill \endgroup @@ -28,7 +28,7 @@ \noindent Cette œuvre est mise à disposition sous licence Attribution - Pas d’Utilisation Commerciale - Partage dans les Mêmes Conditions 4.0 International. Pour voir une copie de cette licence, visitez http://creativecommons.org/licenses/by-nc-sa/4.0/ ou écrivez à Creative Commons, PO Box 1866, Mountain View, CA 94042, USA.\\ -\noindent \textit{Publié le 12 juillet 2021} % Printing/edition date +\noindent \textit{Publié le 12 juillet 2021} %table des matières @@ -45,7 +45,7 @@ \chapterimage{chapter-cover-ebook-guide-preparation-vacances.pdf} -\chapter{Automatiser ses tâches récurrentes} +\chapter{Scripter les tâches récurrentes} \section{Paragraphe 1-1} \lipsum[1-5] @@ -55,7 +55,7 @@ \lipsum[1-5] -\chapter{Préparer ses sauvegardes} +\chapter{Tester ses sauvegardes} \section{Paragraphe 3-1} \lipsum[1-5] @@ -75,15 +75,15 @@ \section{Paragraphe 1-2} \lipsum[1-5] -\chapter{Assembler un recueil de recettes exotiques} +\chapter{Rassembler les recettes exotiques} \section{Paragraphe 2-2} \lipsum[1-5] -\chapter{Définir un parcours touristique} +\chapter{Tracer un parcours touristique} \section{Paragraphe 3-2} \lipsum[1-5] -\chapter{Préparer son journal de bord} +\chapter{Faire un journal de visite} \section{Paragraphe 4-2} \lipsum[1-5] @@ -98,15 +98,15 @@ \section{Paragraphe 1-3} \lipsum[1-5] -\chapter{Identifier les meilleures sorties en ville} +\chapter{Identifier les meilleures sorties} \section{Paragraphe 2-3} \lipsum[1-5] -\chapter{Résumer les avis sur un restaurant} +\chapter{Choisir un restaurant} \section{Paragraphe 3-3} \lipsum[1-5] -\chapter{Éviter le plus possible les travaux routiers} +\chapter{Éviter les travaux routiers} \section{Paragraphe 4-3} \lipsum[1-5] diff --git a/structure.tex b/structure.tex index d93faca..5c0c19f 100755 --- a/structure.tex +++ b/structure.tex @@ -23,14 +23,14 @@ \usepackage{geometry} \geometry{ - paper=letterpaper, - top=2cm, - bottom=2cm, - left=2cm, - right=2cm, - headheight=16pt, - footskip=1.4cm, - headsep=12pt, + paper=a5paper, + top=10mm, + bottom=5mm, + left=5mm, + right=5mm, + headheight=8pt, + footskip=5mm, + headsep=8pt, } \usepackage{avant} @@ -53,36 +53,37 @@ % styles de titres \titlecontents{part} [0cm] - {\addvspace{20pt}\bfseries} + {\addvspace{5pt}\bfseries} {} {} {} \titlecontents{chapter} [1cm] - {\addvspace{12pt}\large\sffamily\bfseries} - {\color{turquoisefonce!60}\contentslabel[\Large\thecontentslabel]{1.25cm}\color{turquoisefonce}} - {\color{turquoisefonce}} {\color{turquoisefonce!60}\normalsize\;\titlerule*[.5pc]{.}\;\thecontentspage} + {\addvspace{2pt}\large\sffamily\bfseries} + {\color{turquoisefonce!80}\contentslabel[\Large\thecontentslabel]{1cm}\color{turquoisefonce}} + {} + {} \titlecontents{section} [1cm] - {\addvspace{4pt}\sffamily\bfseries} + {\addvspace{1pt}\sffamily\bfseries} {\contentslabel[\thecontentslabel]{1cm}} {} {\hfill\color{black}\thecontentspage} \titlecontents{subsection} [1cm] - {\addvspace{2pt}\sffamily\small} + {\addvspace{1pt}\sffamily\small} {\contentslabel[\thecontentslabel]{1cm}} {} {\ \titlerule*[.5pc]{.}\;\thecontentspage} \titlecontents{figure} [1cm] - {\addvspace{2pt}\sffamily\small} + {\addvspace{1pt}\sffamily\small} {\thecontentslabel\hspace*{1em}} {} {\ \titlerule*[.5pc]{.}\;\thecontentspage} \titlecontents{table} [1] - {\addvspace{2pt}\sffamily\small} + {\addvspace{1pt}\sffamily\small} {\thecontentslabel\hspace*{1em}} {} {\ \titlerule*[.5pc]{.}\;\thecontentspage} @@ -90,20 +91,20 @@ % styles de titres sur page de partie \titlecontents{lchapter} [0em] - {\addvspace{15pt}\large\sffamily\bfseries} + {\addvspace{10pt}\large\sffamily\bfseries} {\color{turquoisefonce}\contentslabel[\Large\thecontentslabel]{1cm}\color{turquoisefonce}} {} {\color{turquoisefonce}\normalsize\sffamily\bfseries\;\titlerule*[.5pc]{.}\;\thecontentspage} \titlecontents{lsection} [0em] {\sffamily\small} - {\contentslabel[\thecontentslabel]{1cm}} + {\contentslabel[\thecontentslabel]{0.5cm}} {} {} \titlecontents{lsubsection} [.5em] % Left indentation {\sffamily\footnotesize} % Spacing and font options for subsections - {\contentslabel[\thecontentslabel]{1cm}} + {\contentslabel[\thecontentslabel]{0.5cm}} {} {} @@ -195,10 +196,10 @@ \begin{tikzpicture}[remember picture,overlay]% \node at (current page.north west){\begin{tikzpicture}[remember picture,overlay]% \fill[turquoisefonce!10](0cm,0cm) rectangle (\paperwidth,-\paperheight); -\node[anchor=south east] at (\paperwidth-1cm,-\paperheight+1cm){\parbox[t][][t]{15cm}{ +\node[anchor=south east] at (\paperwidth-1cm,-\paperheight+1cm){\parbox[t][][t]{11cm}{ \printcontents{l}{0}{\setcounter{tocdepth}{1}} }}; -\node[anchor=north east] at (\paperwidth-1.5cm,-3.25cm){\parbox[t][][t]{18cm}{\strut\raggedleft\color{turquoisefonce!60!white}\fontsize{30}{30}\sffamily\bfseries\thepart.#2}}; +\node[anchor=north east] at (\paperwidth-1cm,-1cm){\parbox[t][][t]{9cm}{\strut\raggedleft\color{turquoisefonce!60!white}\fontsize{30}{30}\sffamily\bfseries\thepart.#2}}; \end{tikzpicture}}; \end{tikzpicture}}% \@endpart} @@ -209,7 +210,7 @@ \begin{tikzpicture}[remember picture,overlay]% \node at (current page.north west){\begin{tikzpicture}[remember picture,overlay]% \fill[turquoisefonce!10](0cm,0cm) rectangle (\paperwidth,-\paperheight); -\node[anchor=north east] at (\paperwidth-1.5cm,-3.25cm){\parbox[t][][t]{15cm}{\strut\raggedleft\color{turquoisefonce!60!white}\fontsize{30}{30}\sffamily\bfseries#1}}; +\node[anchor=north east] at (\paperwidth-1.5cm,-3.25cm){\parbox[t][][t]{9cm}{\strut\raggedleft\color{turquoisefonce!60!white}\fontsize{30}{30}\sffamily\bfseries#1}}; \end{tikzpicture}}; \end{tikzpicture}} \addcontentsline{toc}{part}{\texorpdfstring{% @@ -241,8 +242,8 @@ \node at (current page.north west) {\begin{tikzpicture}[remember picture,overlay] \node[anchor=north west,inner sep=0pt] at (0,0) {\ifusechapterimage\includegraphics[width=\paperwidth]{\thechapterimage}\fi}; -\draw[anchor=west] (\Gm@lmargin,-9cm) node [line width=2pt,rounded corners=15pt,draw=turquoisefonce,fill=white,fill opacity=0.5,inner sep=15pt]{\strut\makebox[22cm]{}}; -\draw[anchor=west] (\Gm@lmargin+.3cm,-9cm) node {\huge\sffamily\bfseries\color{black}\thechapter\autodot~#1\strut}; +\draw[anchor=west] (\Gm@lmargin,-2.25cm) node [line width=2pt,rounded corners=10pt,draw=turquoisefonce,fill=white,fill opacity=0.6,inner sep=15pt]{\strut\makebox[15cm]{}}; +\draw[anchor=west] (\Gm@lmargin+.5cm,-2.35cm) node {\huge\sffamily\bfseries\color{black}\thechapter\autodot~#1\strut}; \end{tikzpicture}}; \end{tikzpicture} \else @@ -250,11 +251,11 @@ \node at (current page.north west) {\begin{tikzpicture}[remember picture,overlay] \node[anchor=north west,inner sep=0pt] at (0,0) {\ifusechapterimage\includegraphics[width=\paperwidth]{\thechapterimage}\fi}; -\draw[anchor=west] (\Gm@lmargin,-9cm) node [line width=2pt,rounded corners=15pt,draw=turquoisefonce,fill=white,fill opacity=0.5,inner sep=15pt]{\strut\makebox[22cm]{}}; -\draw[anchor=west] (\Gm@lmargin+.3cm,-9cm) node {\huge\sffamily\bfseries\color{black}#1\strut}; +\draw[anchor=west] (\Gm@lmargin,-2.25cm) node [line width=2pt,rounded corners=10pt,draw=turquoisefonce,fill=white,fill opacity=0.6,inner sep=15pt]{\strut\makebox[11cm]{}}; +\draw[anchor=west] (\Gm@lmargin+.5cm,-2.35cm) node {\huge\sffamily\bfseries\color{black}#1\strut}; \end{tikzpicture}}; \end{tikzpicture} -\fi\fi\par\vspace*{270\p@}}} +\fi\fi\par\vspace*{175\p@}}} %------------------------------------------- @@ -262,12 +263,12 @@ \begin{tikzpicture}[remember picture,overlay] \node at (current page.north west) {\begin{tikzpicture}[remember picture,overlay] -\node[anchor=north west,inner sep=0pt] at (0,0) {\ifusechapterimage\includegraphics[width=\paperwidth]{\thechapterimage}\fi}; -\draw[anchor=west] (\Gm@lmargin,-5cm) node [line width=2pt,rounded corners=15pt,draw=turquoisefonce,fill=white,fill opacity=0.5,inner sep=15pt]{\strut\makebox[22cm]{}}; -\draw[anchor=west] (\Gm@lmargin+.3cm,-5cm) node {\huge\sffamily\bfseries\color{black}#1\strut}; +%\node[anchor=north west,inner sep=0pt] at (0,0) {\ifusechapterimage\includegraphics[width=\paperwidth]{\thechapterimage}\fi}; +\draw[anchor=west] (\Gm@lmargin,-2.25cm) node [line width=2pt,rounded corners=10pt,draw=turquoisefonce,fill=white,fill opacity=0.6,inner sep=15pt]{\strut\makebox[11cm]{}}; +\draw[anchor=west] (\Gm@lmargin+.5cm,-2.35cm) node {\huge\sffamily\bfseries\color{black}#1\strut}; \end{tikzpicture}}; \end{tikzpicture} -\par\vspace*{270\p@}} +\par\vspace*{135\p@}} \makeatother \usepackage{hyperref}