Nuovo stile copertina e retro

This commit is contained in:
giuliof 2020-04-17 12:43:38 +02:00
parent eb6f70aa8e
commit a430e59065
5 changed files with 105 additions and 21 deletions

BIN
img/raster/cover.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 384 KiB

View File

@ -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}

28
tex/0-cover.tex Normal file
View File

@ -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

View File

@ -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

33
tex/99-footer.tex Normal file
View File

@ -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