![BookTemplate](https://writelatex.s3.amazonaws.com/published_ver/31689.jpeg?X-Amz-Expires=14400&X-Amz-Date=20231014T100214Z&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAWJBOALPNFPV7PVH5/20231014/us-east-1/s3/aws4_request&X-Amz-SignedHeaders=host&X-Amz-Signature=399426378f78bd563ee1f2e2f44ec128b253de8d00b90923ea6434bef750fdd6)
BookTemplate
Author
Mattia Puddu
Last Updated
14 days ago
License
Creative Commons CC BY 4.0
Abstract
Book template (the comments are in Italian, maybe later I will update them in English...)
![BookTemplate](https://writelatex.s3.amazonaws.com/published_ver/31689.jpeg?X-Amz-Expires=14400&X-Amz-Date=20231014T100214Z&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAWJBOALPNFPV7PVH5/20231014/us-east-1/s3/aws4_request&X-Amz-SignedHeaders=host&X-Amz-Signature=399426378f78bd563ee1f2e2f44ec128b253de8d00b90923ea6434bef750fdd6)
%Tipo di documento
\documentclass[10pt, a4paper, twoside, lualatex]{book}
%Se si aggiunge l'opzione 'draft' le immagini non vengono caricate e la compilazione è più rapida; utile nelle fasi di preparazione di un documento
%Custom package
\usepackage{FileAusiliari/CustomBook}
%Format di pagina
\usepackage[top=30mm, bottom=30mm, twoside, textwidth=120mm, left=15mm, right=40mm, outer=40mm, marginparsep=8mm, headsep=20pt, marginparwidth=\dimexpr 17.5mm+25pt+5pt]{geometry}
%Indice
\makeindex
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% ALERT: Su Texifier tcbcolback va sostituito con tcbcol@back (PACCHETTO NON AGGIORNATO 29/09/2023)
\begin{document}
%TITOLO
\newgeometry{top=40mm, bottom=20mm, left=30mm, right=30mm}
\input{FileAusiliari/Titolo}
\restoregeometry
\frontmatter
% Frontmatter style
\pagestyle{fancy}
\pagestyle{fancyfront}
%INDICE
\newgeometry{top=40mm, bottom=20mm, left=20mm, right=20mm}
\tableofcontents
\restoregeometry
%INTRODUZIONE
\titleformat{\chapter}
[hang]
{\huge}
{}
{0em}
{}
[\large {\begin{tikzpicture} [remember picture, overlay]
\pgftext[x=.8\textwidth, y=0.2cm]{\color{black}\Huge\sc\bfseries
Introduzione};
\end{tikzpicture}}]
\chapter*{}
\addcontentsline{toc}{chapter}{Introduzione}
\input{FileAusiliari/Introduzione}
\mainmatter
\pagestyle{fancy}
\renewcommand{\chaptermark}[1]{ \markboth{#1}{} }
\renewcommand{\sectionmark}[1]{ \markright{#1}{} }
\pagestyle{fancymain}
\titleformat{\chapter}[display]
{\bfseries\scshape\Large}
{\filleft\MakeUppercase{\chaptertitlename} \Huge\thechapter}
{1ex}
{\titlerule\vspace{1ex}\filleft}
[\vspace{1ex}\titlerule]
\fancyheadoffset[L]{\dimexpr\oddsidemargin+0.425in\relax}
\fancyheadoffset[R]{\dimexpr\oddsidemargin+0.425in\relax}
%ERRATA
%\chapter*{Errata corridge}
%\addcontentsline{toc}{chapter}{Errata corrige}
%\begin{tabular}{p{3cm}p{1cm}p{10cm}}
% Data di correzione&Pagina&\\\hline
% \end{tabular}
%CAPITOLO 1
\chapter{Environments}
%\lipsum[66]
\section{Teoremi, dimostrazioni, proposizioni, lemmi, corollari}
\begin{verbatim}
\begin{The} \lipsum[1] \end{The}
\end{verbatim}
\begin{The} \lipsum[1] \end{The}
\begin{verbatim}
\begin{Proof} \lipsum[1] \end{Proof}
\end{verbatim}
\begin{Proof} \lipsum[2] \end{Proof}
\begin{verbatim}
\begin{Pro} \lipsum[1] \end{Pro}
\end{verbatim}
\begin{Pro} \lipsum[3] \end{Pro}
\begin{verbatim}
\begin{Le} \lipsum[1] \end{Le}
\end{verbatim}
\begin{Le} \lipsum[5] \end{Le}
\begin{verbatim}
\begin{Co} \lipsum[1] \end{Co}
\end{verbatim}
\begin{Co} \lipsum[6] \end{Co}
\section{Definizioni, esempi, osservazioni}
\begin{verbatim}
\begin{De} \lipsum[1] \end{De}
\end{verbatim}
\begin{De} \lipsum[7] \end{De}
\begin{verbatim}
\begin{Exa} \lipsum[1] \end{Exa}
\end{verbatim}
\begin{Exa}\lipsum[8] \end{Exa}
\begin{verbatim}
\begin{Oss} \lipsum[1] \end{Oss}
\end{verbatim}
\begin{Oss}\lipsum \end{Oss}
\section{Description, itemize, enumerate}
\paragraph*{} \underline{Description}
\begin{verbatim}
\begin{description} \item[Oggetto 1] Prova \item[Oggetto 2] Prova \end{description}
\end{verbatim}
\begin{description}
\item[Oggetto 1] Prova
\item[Oggetto 2] Prova
\end{description}
\begin{verbatim}
\begin{itemize} \item Prova \item Prova \item Prova \end{itemize}
\end{verbatim}
\paragraph*{} \underline{Itemize}
\begin{itemize}
\item Prova
\item Prova
\item \lipsum[9]
\end{itemize}
\begin{verbatim}
\begin{enumerate} \item[Oggetto 1] Prova \item[Oggetto 2] Prova \end{enumerate}
\end{verbatim}
\paragraph*{} \underline{Enumerate}
\begin{enumerate}
\item Prova
\item Prova
\end{enumerate}
\section{Note a margine}
\lipsum[1] \lipsum[1]
\note{Nota a margine: può essere utile come segnaposto per definizioni, teoremi... Si usa col comando \text{$\setminus$note\{\#1\}}}
\lipsum[1]
\expl{Ho impostato una versione con un colore diverso per spiegare passaggi nelle dimostrazioni. Si usa col comando \text{$\setminus$expl\{\#1\}}}
\lipsum[1]
\section{Collegamenti ipertestuali, citazioni, indici, url}
\paragraph*{} Un collegamento ipertestuale si realizza con
\begin{verbatim}\label{Label}\end{verbatim}
e si richiama con
\begin{verbatim}\ref{LabelTesto}\end{verbatim}
Risultato: \label{LabelTesto}\ref{LabelTesto}
\paragraph*{} Una citazione a un libro in bibliografia si realizza con
\begin{verbatim}\cite{LabelLibro}\end{verbatim}
Risultato: \cite{Label}
\paragraph*{} Si inserisce un nuovo elemento nell'indice analitico con i comandi
\begin{verbatim}\index{Index}\end{verbatim}
\begin{verbatim}\index{Index!SecondaVoce}\end{verbatim}
Per il risultato di questi comandi vedere l'indice analitico a fine documento. \index{Index}\index{Index!SecondaVoce}
\paragraph*{} Per mettere un link si può usare
\begin{verbatim}\url{https://poisson.phc.dm.unipi.it/~puddu}\end{verbatim}
Risultato: \url{https://poisson.phc.dm.unipi.it/~puddu}
\chapter{Nuovi comandi introdotti in 'Custom.sty'}
\Minipage{.45}{\begin{longtable}{r|r|r}
Mathbb ($\setminus$A)& Mathcal ($\setminus$AA) & Mathscr ($\setminus$AAA)\\\hline
$\A$ & $\AA$ & $\AAA$\\[0.1cm]
$\B$ & $\BB$ & $\BBB$\\[0.1cm]
$\C$ & $\CC$ & $\CCC$\\[0.1cm]
$\D$ & $\DD$ & $\DDD$\\[0.1cm]
$\E$ & $\EE$ & $\EEE$\\[0.1cm]
$\F$ & $\FF$ & $\FFF$\\[0.1cm]
$\G$ & $\GG$ & $\GGG$\\[0.1cm]
$\H$ & $\HH$ & $\HHH$\\[0.1cm]
$\I$ & $\II$ & $\III$\\[0.1cm]
$\J$ & $\JJ$ & $\JJJ$\\[0.1cm]
$\K$ & $\KK$ & $\KKK$\\[0.1cm]
$\L$ & $\LL$ & $\LLL$\\[0.1cm]
$\M$ & $\MM$ & $\MMM$\\[0.1cm]
$\N$ & $\NN$ & $\NNN$\\[0.1cm]
$\O$ & $\OO$ & $\OOO$\\[0.1cm]
$\P$ & $\PP$ & $\PPP$\\[0.1cm]
$\Q$ & $\QQ$ & $\QQQ$\\[0.1cm]
$\R$ & $\RR$ & $\RRR$\\[0.1cm]
$\S$ & $\SS$ & $\SSS$\\[0.1cm]
$\T$ & $\TT$ & $\TTT$\\[0.1cm]
$\U$ & $\UU$ & $\UUU$\\[0.1cm]
$\V$ & $\VV$ & $\VVV$\\[0.1cm]
$\W$ & $\WW$ & $\WWW$\\[0.1cm]
$\X$ & $\XX$ & $\XXX$\\[0.1cm]
$\Y$ & $\YY$ & $\YYY$\\[0.1cm]
$\Z$ & $\ZZ$ & $\ZZZ$\\[0.1cm]
\end{longtable}
}{.35}{
\begin{longtable}{rl}
& \bf Simboli\\\hline
\text{$\setminus$d}& $\d$ \\[0.1cm]
\text{$\setminus$e}& $\e$ \\[0.1cm]
\text{$\setminus$exp}& $\exp$ \\[0.1cm]
\text{$\setminus$f}& $\f$ \\[0.1cm]
\text{$\setminus$g}& $\g$ \\[0.1cm]
\text{$\setminus$i}& $\i$ \\[0.1cm]
\text{$\setminus$Id\{A\}}& $\Id{A}$ \\[0.1cm]
\text{$\setminus$j}& $\j$ \\[0.1cm]
\text{$\setminus$l}& $\l$ \\[0.1cm]
\text{$\setminus$sbullet}& $\sbullet$ \\[0.1cm]
\text{$\setminus$v}& $\v$ \\[0.1cm]
\text{$\setminus$Zero}& $\Zero$ \\[0.1cm]
\end{longtable}
\begin{longtable}{rl}
& \bf Operatori\\\hline
\text{$\setminus$*}& $\*$ \\[0.1cm]
\text{$\setminus$CF\{A\}\{B\}}& $\CF{A}{B}$ \\[0.1cm]
\text{$\setminus$codim\{A\}\{B\}}& $\codim{A}{B}$ \\[0.1cm]
\text{$\setminus$Dif\{A\}\{B\}}& $\Dif{A}{B}$ \\[0.1cm]
\text{$\setminus$Diff\{A\}\{B\}}& $\Diff{A}{B}$ \\[0.1cm]
\text{$\setminus$Floor\{A\}}& $\Floor{A}$ \\[0.1cm]
\text{$\setminus$Imm\{A\}}& $\Imm{A}$ \\[0.1cm]
\text{$\setminus$Leg\{A\}\{B\}}& $\Leg{A}{B}$ \\[0.1cm]
\text{$\setminus$nobarfrac\{A\}\{B\}}& $\nobarfrac{A}{B}$ \\[0.1cm]
\text{$\setminus$Norma\{A\}}& $\Norma{A}$ \\[0.1cm]
\text{$\setminus$Lie\{A\}\{B\}}& $\Lie{A}{B}$ \\[0.1cm]
\text{$\setminus$PS\{A\}\{B\}}& $\PS{A}{B}$ \\[0.1cm]
\text{$\setminus$Rad\{A\}}& $\Rad{A}$ \\[0.1cm]
\text{$\setminus$Re\{A\}}& $\Re{A}$ \\[0.1cm]
\text{$\setminus$Res\{A\}\{B\}}& $\Res{A}{B}$ \\[0.1cm]
\text{$\setminus$Stirling\{A\}\{B\}}& $\Stirling{A}{B}$ \\[0.1cm]
\text{$\setminus$Val\{A\}\{B\}}& $\Val{A}{B}$ \\[0.1cm]
\end{longtable}
}
\newpage
\begin{longtable}{rl}
&\bf Insiemi e gruppi\\\hline
\text{$\setminus$Ann\{A\}}& $\Ann{A}$ \\[0.1cm]
\text{$\setminus$AutD\{A\}}& $\AutD{A}$ \\[0.1cm]
\text{$\setminus$Aut\{A\}}& $\Aut{A}$ \\[0.1cm]
\text{$\setminus$Fix\{A\}}&$\Fix{A}$ \\[0.1cm]
\text{$\setminus$FixAut\{A\}\{B\}}& $\FixAut{A}{B}$ \\[0.1cm]
\text{$\setminus$FixAutD\{A\}\{B\}}& $\FixAutD{A}{B}$ \\[0.1cm]
\text{$\setminus$FixD\{A\}}& $\FixD{A}$ \\[0.1cm]
\text{$\setminus$FixGAut\{A\}\{B\}}& $\FixGAut{A}{B}$ \\[0.1cm]
\text{$\setminus$FixGAutD\{A\}\{B\}}& $\FixGAutD{A}{B}$ \\[0.1cm]
\text{$\setminus$GAut\{A\}}& $\GAut{A}$ \\[0.1cm]
\text{$\setminus$GAutD\{A\}}& $\GAutD{A}$ \\[0.1cm]
\text{$\setminus$GL\{A\}\{B\}}& $\GL{A}{B}$ \\[0.1cm]
\text{$\setminus$gl\{A\}}& $\gl{A}$ \\[0.1cm]
\text{$\setminus$GLE\{A\}}& $\GLE{A}$ \\[0.1cm]
\text{$\setminus$glm\{A\}\{B\}}& $\glm{A}{B}$ \\[0.1cm]
\text{$\setminus$Hom\{A\}\{B\}\{C\}}& $\Hom{A}{B}{C}$ \\[0.1cm]
\text{$\setminus$Im\{A\}}& $\Im{A}$ \\[0.1cm]
\text{$\setminus$Ker\{A\}}& $\Ker{A}$ \\[0.1cm]
\text{$\setminus$LLie\{A\}}& $\LLie{A}$ \\[0.1cm]
\text{$\setminus$OM\{A\}\{B\}}& $\OM{A}{B}$ \\[0.1cm]
\text{$\setminus$Seq\{A\}\{B\}\{C\}}& $\Seq{A}{B}{C}$ \\[0.1cm]
\text{$\setminus$Set\{A\}}& $\Set{A}$ \\[0.1cm]
\text{$\setminus$sl\{A\}}& $\sl{A}$ \\[0.1cm]
\text{$\setminus$SLM\{A\}\{B\}}& $\SLM{A}{B}$ \\[0.1cm]
\text{$\setminus$slm\{A\}\{B\}}& $\slm{A}{B}$ \\[0.1cm]
\text{$\setminus$SO\{A\}\{B\}}& $\SO{A}{B}$ \\[0.1cm]
\text{$\setminus$Span\{A\}}& $\Span{A}$ \\[0.1cm]
\text{$\setminus$SU\{A\}\{B\}}& $\SU{A}{B}$ \\[0.1cm]
\text{$\setminus$Stab\{A\}\{B\}}& $\Stab{A}{B}$ \\[0.1cm]
\text{$\setminus$Sym\{A\}\{B\}}& $\Sym{A}{B}$ \\[0.1cm]
\text{$\setminus$tm\{A\}\{B\}}& $\tm{A}{B}$ \\[0.1cm]
\text{$\setminus$TM\{A\}\{B\}}& $\TM{A}{B}$ \\[0.1cm]
\text{$\setminus$Tr\{A\}}& $\Tr{A}$ \\[0.1cm]
\text{$\setminus$UM\{A\}\{B\}}& $\UM{A}{B}$ \\[0.1cm]
\end{longtable}
\section{Ambienti equazione}
\text{$\setminus$EqL\{A\}\{B\}} \EqL{Equazione\ con\ label}{B}
\text{$\setminus$Eq\{A\& B\textbackslash\textbackslash C\& D\}} \Eq{A& B\\C&D}
\section{Ambienti funzione}
\text{$\setminus$Map\{A\}\{B\}\{C\}\{D\}\{E\}} $$\Map{A}{B}{C}{D}{E}$$
\text{$\setminus$NMap\{A\}\{B\}\{C\}\{D\}} $$\NMap{A}{B}{C}{D}$$
\section{Ambiente introduzione ai capitoli (ad esempio)}
\text{$\setminus$begin\{TitoloIntro\}[colbacktitle=red]\{Titolo\}\{Riquadro\}$\setminus$end\{TitoloIntro\}} \begin{TitoloIntro}[colbacktitle=red]{Titolo}{Riquadro}\end{TitoloIntro}
\section{Ambiente minipage}
\text{$\setminus$Minipage\{A\}\{B\}\{C\}\{D\}}\newline\newline
\Minipage{0.45}{Pagina a sinistra}{0.45}{Pagina a destra}
\section{Citazione}
\Quote{A}{B}{.5}
\section{Pacchetto "polynomial"}
\paragraph*{}Offre un migliore typesetting dei polinomi (si scrivono solo i coefficienti: la variabile e gli esponenti sono gestiti con le opzioni all'inizio del comando e non si devono scrivere in ogni monomio). Una lista esaustiva di comandi disponibili è la seguente:
\begin{center}
\begin{minipage}{.7\textwidth}
\begin{verbatim}
\polynomial{1,1,2,c,0,0,0,0,5}
%Lista dei coefficienti di x^0, x^1,x^2 ecc
\end{verbatim}
\end{minipage}
\begin{minipage}{.2\textwidth}
\Eq{\polynomial{1,1,2,c,0,0,0,0,5}}
\end{minipage}
\begin{minipage}{.7\textwidth}
\begin{verbatim}
\polynomialfrac{1,1,2,c,0,0,0,0,5}{0,1,1,4}
%Funzione razionale: elenca i coeff. di numeratore,
denominatore
\end{verbatim}
\end{minipage}
\begin{minipage}{.2\textwidth}
\Eq{\polynomialfrac{1,1,2,c,0,0,0,0,5}{0,1,1,4}}
\end{minipage}
\begin{minipage}{.7\textwidth}
\begin{verbatim}
\polynomial[falling]{a,b,c,-d,e}
\end{verbatim}
\end{minipage}
\begin{minipage}{.2\textwidth}\vspace{-.1cm}
\Eq{\polynomial[falling]{a,b,c,-d,e}}
\end{minipage}
\begin{minipage}{.7\textwidth}
\begin{verbatim}
\polynomial[reciprocal]{a,b,c,d,e}
\end{verbatim}
\end{minipage}
\begin{minipage}{.2\textwidth}
\Eq{\polynomial[reciprocal]{a,b,c,d,e}}
\end{minipage}
\begin{minipage}{.7\textwidth}
\begin{verbatim}
\polynomial[var=t]{1,1,2,c,0,0,0,0,5}
\end{verbatim}
\end{minipage}
\begin{minipage}{.2\textwidth}
\Eq{\polynomial[var=t]{1,1,2,c,0,0,0,0,5}}
\end{minipage}
\begin{minipage}{.7\textwidth}
\begin{verbatim}
\polynomial[start=1000]{1,1,2,c,0,0,0,0,5}
\end{verbatim}
\end{minipage}
\begin{minipage}{.2\textwidth}
\Eq{\polynomial[start=1000]{1,1,2,c,0,0,0,0,5}}
\end{minipage}
\begin{minipage}{.7\textwidth}
\begin{verbatim}
\polynomial[step=-5]{1,1,2,c,0,0,0,0,5}
\end{verbatim}
\end{minipage}
\begin{minipage}{.2\textwidth}
\Eq{\polynomial[step=-5]{1,1,2,c,0,0,0,0,5}}
\end{minipage}
\begin{minipage}{.7\textwidth}
\begin{verbatim}\polynomial[add=\otimes]{1,1,2,c,0,0,0,0,5}
\end{verbatim}
\end{minipage}
\begin{minipage}{.2\textwidth}
\Eq{\polynomial[add=\otimes]{1,1,2,c,0,0,0,0,5}}
\end{minipage}
\begin{minipage}{.7\textwidth}
\begin{verbatim}\polynomial[sub=\times]{1,2,-c,0,0,0,0,-5}
\end{verbatim}
\end{minipage}
\begin{minipage}{.2\textwidth}
\Eq{\polynomial[sub=\times]{1,2,-c,0,0,0,0,-5}}
\end{minipage}
\end{center}
\section{Pacchetto "accents"}
Migliora il typesetting di lettere accentate in ambiente matematico. Ad esempio
\begin{center}
\begin{minipage}{.4\textwidth}
\begin{verbatim}
\undertilde{Prova}
\end{verbatim}
\end{minipage}
\begin{minipage}{.2\textwidth}
\Eq{\undertilde{Prova}}
\end{minipage}
\begin{minipage}{.4\textwidth}
\begin{verbatim}
\underaccent{under}{a}
\end{verbatim}
\end{minipage}
\begin{minipage}{.2\textwidth}
\Eq{\underaccent{under}{a}}
\end{minipage}
\begin{minipage}{.4\textwidth}
\begin{verbatim}
\accentset{over}{a}
\end{verbatim}
\end{minipage}
\begin{minipage}{.2\textwidth}
\Eq{\accentset{over}{a}}
\end{minipage}
\begin{minipage}{.4\textwidth}
\begin{verbatim}
\hat{\accentset{\pi}{a}}
\end{verbatim}
\end{minipage}
\begin{minipage}{.2\textwidth}
\Eq{\hat{\accentset{over}{a}}}
\end{minipage}
\begin{minipage}{.4\textwidth}
\begin{verbatim}
\ring{a}
\end{verbatim}
\end{minipage}
\begin{minipage}{.2\textwidth}
\Eq{\ring{a}}
\end{minipage}
\begin{minipage}{.4\textwidth}
\begin{verbatim}
\overrightarrow{Testo}
\end{verbatim}
\end{minipage}
\begin{minipage}{.2\textwidth}
\Eq{\overrightarrow{Testo}}
\end{minipage}
\begin{minipage}{.4\textwidth}
\begin{verbatim}
\underrightarrow{Testo}
\end{verbatim}
\end{minipage}
\begin{minipage}{.2\textwidth}
\Eq{ \underrightarrow{Testo}}
\end{minipage}
\begin{minipage}{.4\textwidth}
\begin{verbatim}
\xrightarrow[Sotto]{Sopra}
%da usare al posto di overset
quando c'è un commento sopra/sotto
una freccia in una equazione
\end{verbatim}
\end{minipage}
\begin{minipage}{.2\textwidth}
\Eq{\xrightarrow[Sotto]{Sopra}}
\end{minipage}
\begin{minipage}{.4\textwidth}
\begin{verbatim}
\overset{Sopra}{Testo}
\end{verbatim}
\end{minipage}
\begin{minipage}{.2\textwidth}
\Eq{\overset{Sopra}{Testo}}
\end{minipage}
\begin{minipage}{.4\textwidth}
\begin{verbatim}
\underset{Sotto}{Testo}
\end{verbatim}
\end{minipage}
\begin{minipage}{.2\textwidth}
\Eq{\underset{Sotto}{Testo}}
\end{minipage}
\begin{minipage}{.4\textwidth}
\begin{verbatim}
$$ \sideset{_a^b}{_c^d}\sum$$
%Per mettere accenti vicino a
simboli di sum prod
bigoplus bigotimes ecc
\end{verbatim}
\end{minipage}
\begin{minipage}{.2\textwidth}
\Eq{\sideset{_a^b}{_c^d}\sum}\vspace{1cm}
\end{minipage}
\end{center}
\section{Typesetting di formule matematiche in \$ \$}
\begin{verbatim}
$\tfrac{Numeratore}{Denominatore}$
\end{verbatim}
Testo $\tfrac{Numeratore}{Denominatore}$ Testo
\begin{verbatim}
$\tbinom{N}{D}$
\end{verbatim}
Testo $\tbinom{N}{D}$ Testo
\chapter{TikZ e plotting}
\section{Boxes}
\begin{verbatim}
$$\boxed{Prova}$$
\end{verbatim}
$$\boxed{Prova}$$
\begin{verbatim}
\RiquadroOmbra{Testo}
\end{verbatim}
\RiquadroOmbra{Testo}
\begin{verbatim}
\begin{TitoloIntro}[colbacktitle=red]{Titolo}{Testo}\end{TitoloIntro}
\end{verbatim}
\begin{TitoloIntro}[colbacktitle=red]{Titolo}{Testo}\end{TitoloIntro}
\begin{verbatim}
\begin{RTitoloIntro}[colbacktitle=red]{Titolo}{Testo}\end{RTitoloIntro}
\end{verbatim}
\begin{RTitoloIntro}[colbacktitle=red]{Titolo}{Testo}\end{RTitoloIntro}
\section{Diagrammi commutativi e figure (per info sul typesetting -> "tikz-cd" su ctan.org)}
\begin{minipage}{.5\textwidth}
\begin{verbatim}
\begin{figure}[h!]\centering
\begin{tikzcd}
a\ar[r]\ar[d] & b\ar[d] \\
c\ar[r] & d
\end{tikzcd}
\caption{Caption di prova}
\end{figure}
\end{verbatim}
\end{minipage}
\begin{minipage}{.1\textwidth}
\begin{tikzcd}
a\ar[r]\ar[d] & b\ar[d] \\
c\ar[r] & d
\end{tikzcd}
\end{minipage}
\section{PGF (per info sul typesetting -> "pgfplots" su ctan.org)}
\paragraph*{} Questa sezione contiene solo alcuni esempi.
\begin{verbatim}
\begin{figure}[h!]\centering
\begin{tikzpicture} \begin{axis}[xmin=-0.5, xmax=5, ymin=-0.5,
colorbar sampled, colorbar style={samples=24},
axis equal, xtick=data, ytick=data, grid=major]
\addplot[only marks] coordinates { (4,1) (3,1) (1.5,3) };
\addplot[mesh, domain=0:2.5, tick=\empty] {(x-.5)^2} node [pos=0] {$\bullet$}
node [pos=0.25, pin=0.4:2 ] {$\bullet$}
node [pos=0.5, sloped, xshift=0cm, yshift=-.2cm] {\small Parabola};
\legend{Prova 1, Prova 2};
\end{axis}
\end{tikzpicture}\noindent\hspace{2cm}
\caption{}
\end{verbatim}
\begin{figure}[h!]\centering
\begin{tikzpicture}[scale=.6] \begin{axis}[
xmin=-0.5, xmax=5, ymin=-0.5, colorbar sampled, colorbar style={samples=24}, axis equal, xtick=data, ytick=data, grid=major]
\addplot[only marks] coordinates { (4,1) (3,1) (1.5,3) };
\addplot[mesh, domain=0:2.5, tick=\empty] {(x-.5)^2} node [pos=0] {$\bullet$} node [pos=0.25, pin=0.4:2 ] {$\bullet$} node [pos=0.5, sloped, xshift=0cm, yshift=-.2cm] {\small Parabola} ;
\legend{Prova 1, Prova 2};
\end{axis}
\end{tikzpicture}\noindent\hspace{2cm}
\caption{Colormap, legenda, punti e grafici di funzione}
\end{figure}
\begin{verbatim}
\begin{tikzpicture} \begin{axis}[
axis equal, xmin=-1.5, xmax=1.5, ymin=-1.5, ymax=1.5]
\addplot [samples=48, domain=0:2*pi,->,blue, variable=\t,
quiver={
u={-sin(deg(t))},
v={cos(deg(t))},
scale arrows=0.75,
colored=red},] ({cos(deg(t))}, {sin(deg(t))});
\addplot [samples=36, domain=0:2*pi] ( {cos(deg(x))}, {sin(deg(x))} );
\end{axis}
\end{tikzpicture}
\end{verbatim}
\begin{figure}[h!]\centering
\begin{tikzpicture}[scale=.7] \begin{axis}[
axis equal, xmin=-1.5, xmax=1.5, ymin=-1.5, ymax=1.5]
\addplot [samples=48, domain=0:2*pi,->,blue, variable=\t,
quiver={
u={-sin(deg(t))},
v={cos(deg(t))},
scale arrows=0.75,
colored=red},] ({cos(deg(t))}, {sin(deg(t))});
\addplot [samples=36, domain=0:2*pi] ( {cos(deg(x))}, {sin(deg(x))} );
\end{axis}
\end{tikzpicture}
\caption{Parametrizzazioni}
\end{figure}
\begin{verbatim}
\begin{figure}[h!]\centering
\begin{tikzpicture}
\begin{axis}[xmin=-5, xmax=5, ymin=-28, axis equal]
\addplot [samples=24, domain=0:2*pi, dashed, data cs=polar,
top color=Blues-I, bottom color=Blues-B] (deg(x),30);
\addplot [name path=Y, samples=24, domain=0:2*pi, dashed,
data cs=polar] (deg(x),30);
\addplot [GnBu-M, name path=X, domain=0:360, samples=36,
smooth, data cs=polar](x, {30-8*sin(3*x)});
\addplot[green] fill between[of=Y and X];
\addplot [samples=36,domain=0:30, dashed,
data cs=cart] {.025*x^2} node [pos=1] {Nodo};
\addplot [mark=oplus, only marks] coordinates {(0,0)};
\node[pin=120:{Pin nodo}] at (0,0) {};
\end{axis}
\end{tikzpicture}
\end{figure}
\end{verbatim}
\begin{figure}[h!]\centering
\begin{tikzpicture}[scale=.8]
\begin{axis}[xmin=-5, xmax=5, ymin=-28, axis equal]
\addplot [samples=24, domain=0:2*pi, dashed, data cs=polar, top color=Blues-I, bottom color=Blues-B ] (deg(x),30);
\addplot [name path=Y, samples=24, domain=0:2*pi, dashed,
data cs=polar] (deg(x),30);
\addplot [GnBu-M, name path=X, domain=0:360, samples=36,
smooth, data cs=polar](x, {30-8*sin(3*x)});
\addplot[green] fill between[of=Y and X];
\addplot [samples=36, domain=0:30, dashed,
data cs=cart] {.025*x^2} node [pos=1] {Nodo};
\addplot [mark=oplus, only marks] coordinates {(0,0)};
\node[pin=120:{Pin nodo}] at (0,0) {};
\end{axis}
\end{tikzpicture}
\caption{Filling, nodi e pin}
\end{figure}
\begin{verbatim}
\begin{tikzpicture}[scale=.8]
\begin{axis}[axis equal=false, xmin=-1, xmax=2, ymin=-3.5, ymax=1]
\addplot[red, patch type sampling, patch type= cubic spline, domain=0:2, smooth]{ln(x)};
\draw (0,0) .. controls (1,-1.2) and (1,1) .. (2,1);
\end{axis}
\end{tikzpicture}
\end{verbatim}
\begin{figure}[h!]\centering
\begin{tikzpicture}
\begin{axis}[axis equal=false, xmin=-1, xmax=2, ymin=-3.5, ymax=1]
\addplot[red, patch type sampling, patch type= cubic spline, domain=0:2, smooth]{ln(x)};
\draw (0,0) .. controls (1,-1.2) and (1,1) .. (2,1);
\end{axis}
\end{tikzpicture}
\caption{Interpolazione, pathing}
\end{figure}
\begin{verbatim}
\begin{tikzpicture}
\begin{axis}[
colormap/PuBu,
samples=12, domain=-5:5, y domain=-4:4, xmin=-5, xmax=5, ymin=-4, ymax=4]
\addplot3 [surf, samples=24, samples y=40] {x^2+y^2-1};
\end{axis}
\end{tikzpicture}
\end{verbatim}
\begin{figure}[h!]\centering
\begin{tikzpicture}
\begin{axis}[
colormap/PuBu,
samples=12, domain=-5:5, y domain=-4:4, xmin=-5, xmax=5, ymin=-4, ymax=4]
\addplot3 [surf, samples=24, samples y=40] {x^2+y^2-1};
\end{axis}
\end{tikzpicture}
\caption{Superfici 3D}
\end{figure}
\begin{verbatim}
\begin{tikzpicture}[spy using outlines={}]
\begin{axis}[axis equal=false, grid=major, xmin=-1, xmax=6, ymin=0, ymax=1,
every axis plot post/.append style={thick}, xtick=data, ytick=data]
\addplot[line join=round, green] coordinates {(1, 0) (1,.75) (3, 0.9) (4, .75) (5, 0.8)};
\addplot[line join=bevel, blue] coordinates {(0, 0) (1, 0.4) (3, 0.2) (4, 1) (5, 0.9)};
\coordinate (spypoint) at (1,.4);
\coordinate (magnifyglass) at (-2,.25);
\end{axis}
\spy [blue, size=1.5cm, circle, magnification=5, connect spies] on (spypoint) in node[fill=white] at (magnifyglass);
\end{tikzpicture}
\end{verbatim}
\begin{figure}[h!]\centering
\begin{tikzpicture}[spy using outlines={}]
\begin{axis}[axis equal=false, grid=major, xmin=-1, xmax=6, ymin=0, ymax=1, every axis plot post/.append style={thick}, xtick=data, ytick=data]
\addplot[line join=round, green] coordinates {(1, 0) (1,.75) (3, 0.9) (4, .75) (5, 0.8)};
\addplot[line join=bevel, blue] coordinates {(0, 0) (1, 0.4) (3, 0.2) (4, 1) (5, 0.9)};
\coordinate (spypoint) at (1,.4);
\coordinate (magnifyglass) at (-2,.25);
\end{axis}
\spy [blue, size=1.5cm, circle, magnification=5, connect spies]
on (spypoint) in node[fill=white] at (magnifyglass);
\end{tikzpicture}
\caption{Ambiente spy}
\end{figure}
\begin{verbatim}
\begin{tikzpicture}[scale=.75]
\begin{axis}[xmin=0, xmax=3.5, ymin=0, ymax=5]
\draw [name path=ellipse] (2,3) ellipse (1.5 and 1.25);
\draw [name path=rectangle] (1.5,1.5) rectangle (3,5);
\fill [red, opacity=0.5, name intersections={of=ellipse and rectangle}]
(intersection-1) circle (2pt) node {1}
(intersection-2) circle (2pt) node {2}
(intersection-3) circle (2pt) node {3}
(intersection-4) circle (2pt) node {4};
\end{axis}
\end{tikzpicture}
\end{verbatim}
\begin{figure}[h!]\centering
\begin{tikzpicture}[scale=.75]
\begin{axis}[xmin=0, xmax=4, ymin=0, ymax=6]
\draw [name path=ellipse] (2,3) ellipse (1.5 and 1.25);
\draw [name path=rectangle] (1.5,1.5) rectangle (3,5);
\fill [red, opacity=0.5, name intersections={of=ellipse and rectangle}] (intersection-1) circle (2pt) node {1} (intersection-2) circle (2pt) node {2} (intersection-3) circle (2pt) node {3} (intersection-4) circle (2pt) node {4};
\end{axis}
\end{tikzpicture}
\caption{Intersezione di figure}
\end{figure}
\begin{verbatim}
\tdplotsetmaincoords{70}{135}
\begin{tikzpicture}[scale=3,% opacity=0.10,
tdplot_main_coords,
%fill opacity=0.7
]
\tdplotsphericalsurfaceplot[parametricfill]{36}{36}
{sqrt(15/2)*sin(\tdplottheta)*cos(\tdplottheta)}{black!10}{\tdplotphi}
{\draw[color=black,thick,->] (0,0,0) -- (2,0,0) node[anchor=north east]{$x$};}
{\draw[color=black,thick,->] (0,0,0) -- (0,2,0) node[anchor=north west]{$y$};}
{\draw[color=black,thick,->] (0,0,0) -- (0,0,2) node[anchor=south]{$z$};}
\end{tikzpicture}
\end{verbatim}
\begin{figure}[h!]\centering
\tdplotsetmaincoords{80}{120}
\begin{tikzpicture}[scale=1.5,% opacity=0.10,
tdplot_main_coords,
%fill opacity=0.7
]
\tdplotsphericalsurfaceplot[parametricfill]{36}{36}
{sqrt(15/2)*sin(\tdplottheta)*cos(\tdplottheta)}{black!10}{\tdplotphi}
{\draw[color=black,thick,->] (0,0,0) -- (2,0,0) node[anchor=north east]{$x$};}
{\draw[color=black,thick,->] (0,0,0) -- (0,2,0) node[anchor=north west]{$y$};}
{\draw[color=black,thick,->] (0,0,0) -- (0,0,2) node[anchor=south]{$z$};}
\end{tikzpicture}
\caption{Tikz-3dplot - Esempio 1}
\end{figure}
\begin{verbatim}
\tdplotsetmaincoords{60}{110}
\begin{tikzpicture}[scale=5,tdplot_main_coords]
\pgfmathsetmacro{\rvec}{.8}
\pgfmathsetmacro{\thetavec}{30}
\pgfmathsetmacro{\phivec}{60}
\coordinate (O) at (0,0,0);
\draw[thick,->] (0,0,0) -- (1,0,0) node[anchor=north east]{$x$};
\draw[thick,->] (0,0,0) -- (0,1,0) node[anchor=north west]{$y$};
\draw[thick,->] (0,0,0) -- (0,0,1) node[anchor=south]{$z$};
\tdplotsetcoord{P}{\rvec}{\thetavec}{\phivec}
\draw[-stealth,color=red] (O) -- (P);
\draw[dashed, color=red] (O) -- (Pxy);
\draw[dashed, color=red] (P) -- (Pxy);
\tdplotdrawarc{(O)}{0.2}{0}{\phivec}{anchor=north}{$\phi$}
\tdplotsetthetaplanecoords{\phivec}
\tdplotdrawarc[tdplot_rotated_coords]{(0,0,0)}{0.5}{0}%
{\thetavec}{anchor=south west}{$\theta$}
\draw[dashed,tdplot_rotated_coords] (\rvec,0,0) arc (0:90:\rvec);
\draw[dashed] (\rvec,0,0) arc (0:90:\rvec);
\tdplotsetrotatedcoords{\phivec}{\thetavec}{0}
\tdplotsetrotatedcoordsorigin{(P)}
\draw[thick,tdplot_rotated_coords,->] (0,0,0)
-- (.5,0,0) node[anchor=north west]{$x’$};
\draw[thick,tdplot_rotated_coords,->] (0,0,0)
-- (0,.5,0) node[anchor=west]{$y’$};
\draw[thick,tdplot_rotated_coords,->] (0,0,0)
-- (0,0,.5) node[anchor=south]{$z’$};
\draw[-stealth,color=blue,tdplot_rotated_coords] (0,0,0) -- (.2,.2,.2);
\draw[dashed,color=blue,tdplot_rotated_coords] (0,0,0) -- (.2,.2,0);
\draw[dashed,color=blue,tdplot_rotated_coords] (.2,.2,0) -- (.2,.2,.2);
\tdplotdrawarc[tdplot_rotated_coords,color=blue]{(0,0,0)}{0.2}{0}%
{45}{anchor=north west,color=black}{$\phi’$}
\tdplotsetrotatedthetaplanecoords{45}
\tdplotdrawarc[tdplot_rotated_coords,color=blue]{(0,0,0)}{0.2}{0}%
{55}{anchor=south west,color=black}{$\theta’$}
\end{tikzpicture}
\end{verbatim}
\begin{figure}[h!]\centering
\tdplotsetmaincoords{60}{110}
\begin{tikzpicture}[scale=4.5, tdplot_main_coords]
\pgfmathsetmacro{\rvec}{.8}
\pgfmathsetmacro{\thetavec}{30}
\pgfmathsetmacro{\phivec}{60}
\coordinate (O) at (0,0,0);
\draw[thick,->] (0,0,0) -- (1,0,0) node[anchor=north east]{$x$};
\draw[thick,->] (0,0,0) -- (0,1,0) node[anchor=north west]{$y$};
\draw[thick,->] (0,0,0) -- (0,0,1) node[anchor=south]{$z$};
\tdplotsetcoord{P}{\rvec}{\thetavec}{\phivec}
\draw[-stealth,color=red] (O) -- (P);
\draw[dashed, color=red] (O) -- (Pxy);
\draw[dashed, color=red] (P) -- (Pxy);
\tdplotdrawarc{(O)}{0.2}{0}{\phivec}{anchor=north}{$\phi$}
\tdplotsetthetaplanecoords{\phivec}
\tdplotdrawarc[tdplot_rotated_coords]{(0,0,0)}{0.5}{0}%
{\thetavec}{anchor=south west}{$\theta$}
\draw[dashed,tdplot_rotated_coords] (\rvec,0,0) arc (0:90:\rvec);
\draw[dashed] (\rvec,0,0) arc (0:90:\rvec);
\tdplotsetrotatedcoords{\phivec}{\thetavec}{0}
\tdplotsetrotatedcoordsorigin{(P)}
\draw[thick,tdplot_rotated_coords,->] (0,0,0)
-- (.5,0,0) node[anchor=north west]{$x’$};
\draw[thick,tdplot_rotated_coords,->] (0,0,0)
-- (0,.5,0) node[anchor=west]{$y’$};
\draw[thick,tdplot_rotated_coords,->] (0,0,0)
-- (0,0,.5) node[anchor=south]{$z’$};
\draw[-stealth,color=blue,tdplot_rotated_coords] (0,0,0) -- (.2,.2,.2);
\draw[dashed,color=blue,tdplot_rotated_coords] (0,0,0) -- (.2,.2,0);
\draw[dashed,color=blue,tdplot_rotated_coords] (.2,.2,0) -- (.2,.2,.2);
\tdplotdrawarc[tdplot_rotated_coords,color=blue]{(0,0,0)}{0.2}{0}%
{45}{anchor=north west,color=black}{$\phi’$}
\tdplotsetrotatedthetaplanecoords{45}
\tdplotdrawarc[tdplot_rotated_coords,color=blue]{(0,0,0)}{0.2}{0}%
{55}{anchor=south west,color=black}{$\theta’$}
\end{tikzpicture}
\caption{Tikz-3dplot - Esempio 2}
\end{figure}
%%%%% APPENDICI
\newgeometry{top=5cm,bottom=5cm, twoside, textwidth=10cm,
left=30mm, right=30mm}\part{APPENDICI}
% TOC Appendici
\afterpage{\titlecontents{chapter}[5pc]
{\addvspace{5pt}}
{\begin{tikzpicture}
\pgftext{\Large\bfseries\sc\bfseries\color{black} Appendice\ \thecontentslabel{\color{white}..}};
\end{tikzpicture}}
{}
{\color{black}\dotfill\;\;\large\sc\bfseries Pagina \thecontentspage}}
\pagestyle{fancy}
\begin{appendix}
\chapter{Appendice $1$} \blindmathpaper
\end{appendix}
\backmatter
\pagestyle{fancy}
\pagestyle{fancyback}
% BIBLIOGRAFIA
\newgeometry{top=30mm, bottom=30mm, left=30mm, right=30mm}
\afterpage{\fancyhead[RE,LO]{Bibliografia}}
\titleformat{\chapter}[hang]{\huge}{}{0em}{}[\large\vspace{-1cm} {\begin{tikzpicture} [remember picture, overlay]
\clip (-9,-0.5) rectangle (20,5);\pgftext[right,x=14 cm,y=0.2cm]{\color{black}\Huge\sc\bfseries
Bibliografia};
\end{tikzpicture}}]
\nocite{*}
\bibliographystyle{amsalpha}
\renewcommand{\bibname}{}
\bibliography{FileAusiliari/Bibliografia}
\addcontentsline{toc}{part}{Bibliografia}
\cleardoublepage
%INDICE ANALITICO
\afterpage{\fancyhead[RE,LO]{Indice analitico}}
\titleformat{\chapter}[hang]{\huge}{}{0em}{}
[\large\vspace{-1cm}{\begin{tikzpicture} [remember picture, overlay]
\clip (-10,-0.5) rectangle (20,5); \pgftext[right,x=14 cm,y=0.2cm]{\color{black}\Huge\sc\bfseries Indice analitico};
\end{tikzpicture}}]
\renewcommand{\indexname}{}
\addcontentsline{toc}{part}{Indice analitico}
\printindex
\end{document}