diff --git a/img/raster/cover.jpg b/img/raster/cover.jpg new file mode 100644 index 0000000..1eb4ade Binary files /dev/null and b/img/raster/cover.jpg differ diff --git a/main.tex b/main.tex index 3e9e89a..1690e6e 100644 --- a/main.tex +++ b/main.tex @@ -87,11 +87,32 @@ \newenvironment{boxino}{\begin{mdframed}[backgroundcolor=lightgray!30,linecolor=green!60!black,linewidth=2pt, topline=false,rightline=false,leftline=false]} {\end{mdframed}} +\newcommand*\cleartoleftpage{% + \clearpage + \ifodd\value{page}\hbox{}\newpage\fi +} + +%% Doppia riga per copertina e retro +\newcommand{\doublerule}{ + \rule{\textwidth}{1pt}\par % Thick horizontal line + \vspace{2pt}\vspace{-\baselineskip} % Whitespace between lines + \rule{\textwidth}{0.4pt}\par % Thin horizontal line +} + \usepackage{graphicx} +% nome del mese in italiano della compilazione +\usepackage{datetime} + +%% Comandi per richiamare rapidamente titolo e autore +\makeatletter +\newcommand{\gettitle} {\@title} +\newcommand{\getauthor}{\@author} +\makeatother + \title{Manuale Trashware} \author{GOLEM} -\date{2018} +\date{2018} % Data inizio lavoro \begin{document} @@ -103,11 +124,16 @@ %~ Your abstract goes here %~ \end{abstract} -\maketitle +%\maketitle +\thispagestyle{empty} +\include{tex/0-cover} \include{tex/0-home} +\clearpage +\frontmatter \tableofcontents +\mainmatter \include{tex/1-trashware} \include{tex/2-software} \include{tex/3-hardware} @@ -116,25 +142,10 @@ \include{tex/6-lavorare} \include{tex/7-internet} +\backmatter + %%%%%% LAST (funny) PAGE %%%%% -\clearpage -\centering -\pagestyle{empty} - -\vspace*{\fill} - -\includegraphics[width=.4\linewidth]{img/vectors/golem-dontpanic} - -\vspace{2em} -{\fontsize{60pt}{0pt}\selectfont \textsc{Don't Panic}} -\vspace{2em} -\begin{flushright} -Guida Galattica per Autostoppisti\\ -\emph{Douglas Adams} -\end{flushright} - -\vspace*{\fill} -%%%%%% /LAST (funny) PAGE %%%%% - +\cleartoleftpage +\include{tex/99-footer} \end{document} diff --git a/tex/0-cover.tex b/tex/0-cover.tex new file mode 100644 index 0000000..df6931a --- /dev/null +++ b/tex/0-cover.tex @@ -0,0 +1,28 @@ +\thispagestyle{empty} % No page numbering + +\doublerule + +\vspace{\fill} % Whitespace between the top lines and title + +\begin{center} + {\Huge \textbf{\gettitle}} % Title line + + \vspace{1.5em} % Whitespace between the title and short horizontal line + \rule{0.3\textwidth}{0.4pt}\par % Short horizontal line under the title + \vspace{1.5em} % Whitespace between the thin horizontal line and the author name + + { \Large % Author line + a cura dell'associazione + \par + \textbf{GOLEM} + \par + \textit{Gruppo Operativo Linux Empoli} + } + + \vspace{\fill} % Whitespace between author and cover photo + + \includegraphics[width=0.8\linewidth]{img/raster/cover} +\end{center} + +\vspace{\fill} %% Whitespace between cover photo and bottom lines +\doublerule \ No newline at end of file diff --git a/tex/0-home.tex b/tex/0-home.tex index 3210b0e..fd6e7ba 100644 --- a/tex/0-home.tex +++ b/tex/0-home.tex @@ -1,3 +1,11 @@ +\thispagestyle{empty} % No page numbering + +\doublerule + +\null % Magia nera per permettere il centramento +\vspace{\fill} + +\textbf{Credits} %\begin{hyphenrules}{nohyphenation} %\Huge Attenzione! La seguente è una \textbf{bozza} in revisione dai soci GOLEM. @@ -11,3 +19,7 @@ Speriamo di poter utilizzare il testo per i futuri soci dell'Officina Informatic Il manuale è redatto in \LaTeX ~ed è rilasciato secondo licenza GPL3. Questa revisione è datata \today. + +\vspace{\fill} + +\doublerule \ No newline at end of file diff --git a/tex/99-footer.tex b/tex/99-footer.tex new file mode 100644 index 0000000..157209a --- /dev/null +++ b/tex/99-footer.tex @@ -0,0 +1,33 @@ +\thispagestyle{empty} % No page numbering + +\doublerule + +\null\vspace{\fill} % Whitespace between the top rules and image + +\begin{center} + \includegraphics[height=20em]{img/vectors/golem-dontpanic} + \vspace{2em} + + \parbox[t]{11cm}{ + { + \fontsize{50pt}{0pt}\selectfont\textsc{Don't Panic} + } + \begin{flushright} + Guida Galattica per Autostoppisti + \\ + \emph{Douglas Adams} + \end{flushright} + } + + \vspace*{\fill} + + Un opuscolo a cura dell'associazione GOLEM\\ + Rilasciato sotto licenza GPL (salvo dove diversamente specificato)\\ + \texttt{golem.linux.it} + + \textit{Impaginato con \LaTeX} + \\ + Autoprodotto in \textit{\monthname{} \the\year} +\end{center} + +\doublerule \ No newline at end of file