% -*- mode: latex; mode: auto-fill -*-

  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 %%% Setup Document Style
  %%%
% \documentclass[paper=5.5in:8.5in,pagesize,
\documentclass[paper=4.13in:5.83in,pagesize,
               open=any,% ,chapterprefix=false,
               titlepage=false,
               headsepline=true,footsepline=false,
               fontsize=10pt,headings=small]{scrbook}

% \addtokomafont{chapter}{\rmfamily}
% \addtokomafont{chapterentry}{\rmfamily}
% \addtokomafont{sectioning}{\rmfamily}

% \areaset[-.15in]{3.85in}{7.50in}
\areaset[0.3in]{3.15in}{5.0in}

\pagestyle{headings}
\usepackage{bookman}

% DOES NOT WORK
% \usepackage[italian]{babel}

\usepackage{amsmath,amssymb,latexsym,xspace}

\usepackage[absolute]{textpos}
\usepackage{graphicx}
\usepackage{wrapfig}

\usepackage{pdfpages}

% for digital version, use package on
% next line, which will include hyperlinks
\usepackage{hyperref}

% \usepackage{background}   % full image pages

% \usepackage{DejaVuSans}
%% Another possibility is
%% \usepackage{dejavu}
%% which loads the DejaVu Serif and DejaVu Sans Mono fonts as well
\renewcommand*\familydefault{\sfdefault} %% Only if the base font of the document is to be sans serif
\usepackage[T1]{fontenc}

% the following block sets all the hyperref params,
% and might need to be all commented out for the print version
\hypersetup{
    bookmarks=true,         % show bookmarks bar?
    unicode=false,          % non-Latin characters in Acrobat’s bookmarks
    pdftoolbar=true,        % show Acrobat’s toolbar?
    pdfmenubar=true,        % show Acrobat’s menu?
    pdffitwindow=true,     % window fit to page when opened
    pdfstartview={FitH},    % fits the width of the page to the window
    pdfpagelayout={TwoColumnRight},
    pdftitle={Crypt r Die},    % title
    pdfauthor={AvANa},     % author
    pdfsubject={Digital Justice},   % subject of the document
    pdfcreator={LaTeX},   % creator of the document
    pdfproducer={AvANAa}, % producer of the document
    pdfkeywords={sicurezza, repressione digitale}, % list of keywords
    pdfnewwindow=true,      % links in new window
    colorlinks=false,       % false: boxed links; true: colored links
%     linkcolor=red,          % color of internal links
    linkcolor=white,          % color of internal links
    citecolor=green,        % color of links to bibliography
    filecolor=magenta,      % color of file links
    urlcolor=cyan           % color of external links
}

% for printed version, use package on
% next line, instead, for better printing
%\usepackage{url}

% turn off numbers for chapters
\setcounter{secnumdepth}{-1}
\newcommand{\mychapter}[1]{
  \chapter{#1}
%  \addcontentsline{toc}{chapter}{\protect\numberline{}#1}
}


% uncomment this next line to include a grid for easier
% layout work
%\usepackage[colorgrid,texcoord]{eso-pic}


\usepackage{color}
\definecolor{altbg}{gray}{0}
\definecolor{altfg}{gray}{1}

\recalctypearea

% SILLABARE LE PAROLE CHE ECCEDONO I MARGINI..

\hyphenation{ri-chie-sto}
\hyphenation{ris-chi}
\hyphenation{chat-ti}
\hyphenation{cer-to}
\hyphenation{pre-fe-ri-sce}
\hyphenation{ar-chi-via-zio-ne}
\hyphenation{am-mi-ni-stra-to-re}
\hyphenation{crit-to-gra-fia}
\hyphenation{vo-stro}
\hyphenation{of-fu-sca-men-to}
\hyphenation{me-glio}
\hyphenation{in-ter-cet-ta-zio-ne}
\hyphenation{que-sti}
\hyphenation{pro-vi-der}
\hyphenation{pro-teg-ge-re}
\hyphenation{Freep-to}
\hyphenation{quo-ti-dia-na-men-te}
\hyphenation{se-guo-no}
\hyphenation{ca-pir-ne}
\hyphenation{brow-ser}
\hyphenation{i-den-ti-fi-ca-zio-ne}
\hyphenation{i-Pho-ne}

%% Enable license helpers
% \input{cc_beamer}

%
% AvANa custom conf
%
\linespread{1.2}
\newcommand*{\ricettafont}{\fontfamily{pag}\selectfont}
\newcommand*{\headerfonts}{\fontfamily{pag}\selectfont}

\setcounter{tocdepth}{1}

% Header e Footer
\usepackage{fancyhdr}
\pagestyle{fancy}
% Header elements
\lhead{}
\chead{}
\rhead{}
% Footer elements
\lfoot{}
\cfoot{\includegraphics[height=.56cm]{images/scritta.jpg}}
\rfoot{{\headerfonts\footnotesize\thepage}}
\renewcommand{\headrulewidth}{0.0pt} % riga sotto l'header
% \renewcommand{\footrulewidth}{0.4pt} % riga sopra il footer
% \setlength{\voffset}{-0.35in}
% \setlength{\textheight}{+0.01in}


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% The document
%%%

\begin{document}


%
% PRIMA PAGINA : COPERTINA
%

\pagestyle{empty}

\includepdf{images/page1.pdf}

% \thispagestyle{empty}
% $\qquad$
% \vspace{3em}
% \begin{center}
% \Huge Crypt r Die
% \end{center}

% \vspace{3em}
% \begin{center}
% AVANA
% \end{center}
%
% \newpage


% \thispagestyle{empty}
% \begin{center}
% $\qquad$
% \end{center}
%
% \TPGrid{1}{7}
%
% 	\vfill
% 	\begin{center}
% 		\CcGroupByNcSa{0.83}{0.95ex}\\[2.5ex]
% 		{\tiny Released under the \emph{Creative Commons\CcLongnameByNcSa} license.}\\
%                 {\tiny Art/Articles copyright their individual
%                   authors.\\
%                   Some rights reserved.}
% 	\end{center}
%
% % \begin{textblock}{1}(0,1)
% % \includegraphics[width=.9\TPHorizModule,height=.9\TPHorizModule]{frontcover}
% % \end{textblock}
%
% \begin{textblock}{1}(0,6)
% \begin{center}
% \url{http://we.riseup.net/avana}
% \end{center}
% \end{textblock}



%%%  Don't start counting pages until after the cover


% \TPGrid{1}{7}

% \begin{textblock}{1}(-.05,0)
% \includegraphics[width=.8\TPHorizModule,height=7\TPVertModule]{bird_tree}
% \end{textblock}

% PRESENTAZIONE AVANA
% \sffamily
% \thispagestyle{empty}

\begin{wrapfigure}{l}{4cm}
\includegraphics[width=3.6cm]{images/avana.jpg}
\end{wrapfigure}

Il collettivo AvANa (Avvisi Ai Naviganti) fin dalle origini ha dato sempre centralit\`{a} al
tema della repressione a mezzo digitale.
\\

Quando ci \`{e} passato tra le mani l'opuscolo ``Prima e dopo un corteo'', scritto
dalla Rete Evasioni, abbiamo letto il paragrafetto dedicato ai computer e non abbiamo
saputo resistere.
\\

\textbf{Crypt'r Die} \`{e} un vademecum per tutte e tutti coloro che vogliono iniziare
a riprendersi la propria libert\`{a} e che sentono il il bisogno di difendersi da ogni
tipo di controlo e sorveglianza digitale.

% % PAGINA BIANCA DOPO L'INTRO DI AVANA
% \newpage
% \thispagestyle{empty}
% \mbox{}

% PAGINA NO COPYRIGHT
\newpage

%
% PAGINA NO COPYRIGHT
%
% \thispagestyle{empty}

\null
\vfill

\begin{center}

  \begin{figure}[h!]
    \begin{center}
      \includegraphics[width=.16\textwidth]{images/nocopyright.jpg}
    \end{center}
  \end{figure}
  {\scriptsize
Finito di stampare nel giugno 2014.\\
Materiale non sottoposto ad alcun tipo di copyright\\
Scarica, fotocopia e diffondi!\\
  \url{https://we.riseup.net/assets/144942/crypt-or-die.pdf}
}
\end{center}

\pagestyle{empty}

% PAGINA BIANCA DOPO IL NO COPYRIGHT
\newpage
% \thispagestyle{empty}
\mbox{}

\newpage
% TABELLA DEI CONTENUTI
% \pagestyle{empty}
% \tableofcontents


\renewcommand*\contentsname{INDICE}
\tableofcontents
\clearpage
\pagestyle{fancy}

% \thispagestyle{empty}
\newpage
\setcounter{page}{1}

% % PAGINA BIANCA DOPO L'INTRO DI AVANA
% \newpage
% \thispagestyle{empty}
% \mbox{}

% \newpage
% \thispagestyle{empty}
% \mbox{}


%
% TESTO
%
\include{cryptrdie}


%
% PARTE FINALE
%

% PAGINA CON LINK AD AVANA
\newpage
\thispagestyle{empty}
\null
\vfill % riempi verticalmente
%
\begin{center}
\url{http://we.riseup.net/avana}
\end{center}

% Ultima di copertina
\newpage
\thispagestyle{empty}
%
\includepdf{images/pageLast.pdf}
%
\end{document}
