Intestazione .tex e impaginazione
This commit is contained in:
parent
e054abd985
commit
6390a35080
154
LibroArduino.tex
154
LibroArduino.tex
|
@ -1,10 +1,10 @@
|
|||
% Proudly written in LaTeX by Giulio & Stefano
|
||||
\title{Arduino da zero a maker}
|
||||
\author{Giulio e Stefano}
|
||||
\date{2016}
|
||||
\title{Errata corrige}
|
||||
\author{...}
|
||||
\date{\today}
|
||||
|
||||
% Parametri di impaginazione: margini, formato pagina, dimensione e tipo di font
|
||||
\documentclass[twoside, 12pt]{book}
|
||||
\documentclass[twoside, 12pt]{article}
|
||||
\usepackage[left=2cm,right=2cm,top=2.5cm,bottom=2.5cm]{geometry}
|
||||
\geometry{papersize={17cm,24cm},centering,dvips=false}
|
||||
|
||||
|
@ -15,7 +15,6 @@
|
|||
\usepackage[latin1]{inputenc}
|
||||
\usepackage[T1]{fontenc}
|
||||
\usepackage[italian]{babel}
|
||||
|
||||
% Fonts: testo, formule matematiche e simboli generici
|
||||
\usepackage{helvet}
|
||||
\usepackage{courier}
|
||||
|
@ -28,45 +27,6 @@
|
|||
|
||||
\usepackage{nicefrac}
|
||||
|
||||
% Personalizzazioni dei parametri LaTeX (formato titoli...)
|
||||
\usepackage[font={small,it}]{caption}
|
||||
%~ Titoli dei capitoli più in sù
|
||||
\makeatletter
|
||||
% "\@makechapterhead" applies to ordinary or numbered chapters
|
||||
\patchcmd{\@makechapterhead}{\vspace*{50\p@}}{}{}{}
|
||||
\patchcmd{\@makechapterhead}{\vskip 40\p@}{\vskip 20\p@}{}{}
|
||||
% "\@makeschapterhead" applies to "starred" or un-numbered chapters
|
||||
\patchcmd{\@makeschapterhead}{\vspace*{50\p@}}{}{}{}
|
||||
\patchcmd{\@makeschapterhead}{\vskip 40\p@}{\vskip 20\p@}{}{}
|
||||
\makeatother
|
||||
% personalizzazione intestazioni e pié di pagina
|
||||
\usepackage{fancyhdr}
|
||||
\pagestyle{fancy}
|
||||
\renewcommand{\chaptermark}[1]{\markboth{#1}{}}
|
||||
|
||||
\makeatletter
|
||||
\fancyhf{}
|
||||
|
||||
%%% INTESTAZIONE %%%
|
||||
% Left Even, Right Odd: Titolo del libro
|
||||
\fancyhead[LE]{\itshape\nouppercase{\@title}}
|
||||
% Right Even, Left Odd: Capitolo attuale
|
||||
\fancyhead[RO]{\itshape\nouppercase{\leftmark}}
|
||||
%%% PIE DI PAGINA %%%
|
||||
% Center: numero di pagina
|
||||
\fancyfoot[C]{\thepage}
|
||||
|
||||
\renewcommand{\headrulewidth}{0pt}
|
||||
\newcommand\footnoteref[1]{\protected@xdef\@thefnmark{\ref{#1}}\@footnotemark}
|
||||
|
||||
|
||||
%~ numeri romani maiuscoli
|
||||
\renewcommand\frontmatter{%
|
||||
\cleardoublepage
|
||||
\@mainmatterfalse
|
||||
\pagenumbering{Roman}
|
||||
}
|
||||
\makeatother
|
||||
% URL e relativa personalizzazione
|
||||
\usepackage{hyperref}
|
||||
\hypersetup{pdftex, hidelinks=true,linkcolor=blue, citecolor=blue, filecolor=blue, urlcolor=blue, pdftitle=}
|
||||
|
@ -88,63 +48,67 @@
|
|||
% Listati e codice
|
||||
\usepackage{listings}
|
||||
|
||||
% Linguaggio Arduino
|
||||
\lstdefinestyle{Carduino}{
|
||||
basicstyle=\footnotesize\ttfamily,
|
||||
language=C,
|
||||
numbers=left,
|
||||
numbersep=5pt,
|
||||
numberstyle=\tiny,
|
||||
stepnumber=5,
|
||||
firstnumber=1,
|
||||
numberfirstline=true,
|
||||
keywords={void, boolean, unsigned, byte, int, long, short, float, const, String, HIGH, LOW, INPUT, OUTPUT, INPUT_PULLUP},
|
||||
%~ keywordstyle=\color[rgb]{.08,.63,.64},
|
||||
keywordstyle=\bfseries,
|
||||
keywords=[2]{setup, loop, char, word, double, if, else, for, switch, case, while, do, while, break, continue, return},
|
||||
%~ keywordstyle=[2]{\color[rgb]{.37,.43,.01}},
|
||||
keywordstyle=[2]{\bfseries},
|
||||
keywords=[3]{pinMode, digitalWrite, digitalRead, analogReference, analogRead, analogWrite, tone, noTone, shiftOut, shiftIn, pulseIn, millis, micros, delay, delayMicroseconds, min, max, abs, constrain, map, pow, sqrt, sin, cos, tan, randomSeed, random, lowByte, highByte, bitRead, bitWrite, bitSet, bitClear, bit, attachInterrupt, detachInterrupt, interrupts, noInterrupts},
|
||||
%~ keywordstyle=[3]{\color[rgb]{.83,.34,.02}},
|
||||
keywordstyle=[3]{\bfseries},
|
||||
commentstyle=\color[rgb]{.35,.41,.43},
|
||||
stringstyle=\color{blue}
|
||||
}
|
||||
|
||||
\lstdefinestyle{bash} {
|
||||
language=bash,
|
||||
}
|
||||
|
||||
\lstdefinestyle{nonumbers} {
|
||||
numbers=none,
|
||||
}
|
||||
|
||||
\lstdefinestyle{small} {
|
||||
basicstyle=\scriptsize\ttfamily,
|
||||
}
|
||||
|
||||
\lstdefinestyle{CarduinoInline} {
|
||||
% Linguaggio Arduino
|
||||
\lstdefinestyle{Carduino}{
|
||||
basicstyle=\footnotesize\ttfamily,
|
||||
language=C,
|
||||
basicstyle=\footnotesize\ttfamily,
|
||||
}
|
||||
numbers=left,
|
||||
numbersep=5pt,
|
||||
numberstyle=\tiny,
|
||||
stepnumber=5,
|
||||
firstnumber=1,
|
||||
numberfirstline=true,
|
||||
keywords={void, boolean, unsigned, byte, int, long, short, float, const, String, HIGH, LOW, INPUT, OUTPUT, INPUT_PULLUP},
|
||||
%~ keywordstyle=\color[rgb]{.08,.63,.64},
|
||||
keywordstyle=\bfseries,
|
||||
keywords=[2]{setup, loop, char, word, double, if, else, for, switch, case, while, do, while, break, continue, return},
|
||||
%~ keywordstyle=[2]{\color[rgb]{.37,.43,.01}},
|
||||
keywordstyle=[2]{\bfseries},
|
||||
keywords=[3]{pinMode, digitalWrite, digitalRead, analogReference, analogRead, analogWrite, tone, noTone, shiftOut, shiftIn, pulseIn, millis, micros, delay, delayMicroseconds, min, max, abs, constrain, map, pow, sqrt, sin, cos, tan, randomSeed, random, lowByte, highByte, bitRead, bitWrite, bitSet, bitClear, bit, attachInterrupt, detachInterrupt, interrupts, noInterrupts},
|
||||
%~ keywordstyle=[3]{\color[rgb]{.83,.34,.02}},
|
||||
keywordstyle=[3]{\bfseries},
|
||||
commentstyle=\color[rgb]{.35,.41,.43},
|
||||
stringstyle=\color{blue}
|
||||
}
|
||||
|
||||
% wrapping
|
||||
\lstdefinestyle{wrap} {
|
||||
%~ breaklines=true,
|
||||
postbreak=\raisebox{0ex}[0ex][0ex]{\ensuremath{\color{red}\hookrightarrow\space}}
|
||||
}
|
||||
\lstdefinestyle{bash} {
|
||||
language=bash,
|
||||
}
|
||||
|
||||
% impostazioni di default
|
||||
\lstset {
|
||||
%~ frame=single,
|
||||
breaklines=true,
|
||||
basicstyle=\footnotesize\ttfamily,
|
||||
mathescape,
|
||||
}
|
||||
\lstdefinestyle{nonumbers} {
|
||||
numbers=none,
|
||||
}
|
||||
|
||||
\lstdefinestyle{small} {
|
||||
basicstyle=\scriptsize\ttfamily,
|
||||
}
|
||||
|
||||
\lstdefinestyle{CarduinoInline} {
|
||||
language=C,
|
||||
basicstyle=\footnotesize\ttfamily,
|
||||
}
|
||||
|
||||
% wrapping
|
||||
\lstdefinestyle{wrap} {
|
||||
%~ breaklines=true,
|
||||
postbreak=\raisebox{0ex}[0ex][0ex]{\ensuremath{\color{red}\hookrightarrow\space}}
|
||||
}
|
||||
|
||||
% impostazioni di default
|
||||
\lstset {
|
||||
%~ frame=single,
|
||||
breaklines=true,
|
||||
basicstyle=\footnotesize\ttfamily,
|
||||
mathescape,
|
||||
}
|
||||
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
%% Direi che qui comincia il documento %%
|
||||
%% %%
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
|
||||
\begin{document}
|
||||
{\LARGE \textbf{ERRATA CORRIGE} }\\
|
||||
\maketitle
|
||||
|
||||
A \textbf{pagina 42} le due formule per calcolare la resistenza del sensore $R_{sens}$ sono errate e devono essere corrette come segue:
|
||||
\begin{multicols}{2}
|
||||
|
|
Loading…
Reference in New Issue