|
| 1 | +\documentclass[10pt, twoside]{book} |
| 2 | + %\usepackage[chinese]{babel} |
| 3 | + \usepackage[utf8]{inputenc} |
| 4 | + \usepackage[T1]{fontenc} |
| 5 | +%%%%% Pacchetti |
| 6 | +\usepackage{FileAusiliari/Layout} % Contiene i pacchetti e le impostazioni per il layout |
| 7 | +\usepackage{FileAusiliari/Pacchetti} % Pacchetti aggiuntivi di vario tipo (senza tikz) |
| 8 | +\usepackage{FileAusiliari/TikZ} % Ambiente tikzpicture |
| 9 | +\usepackage{FileAusiliari/Definizioni} % Definizioni di colori, variabili globali ecc. |
| 10 | +\usepackage{FileAusiliari/Environments} % Impostazioni TOC, bibliografia e indice analitico + environments vari per il contenuto del documento |
| 11 | +\usepackage{FileAusiliari/Custom} % Tutto ciò che è personalizzabile normalmente dall'utente (tranne i colori per collegamenti ipertestuali, citazioni, link, che sono da modificare in Referencing) |
| 12 | +\input{FileAusiliari/Referencing.tex} % Collegamenti ipertestuali e indice analitico |
| 13 | +\usepackage{FileAusiliari/Comandi} % Comandi vari |
| 14 | +\usepackage{fancyhdr} |
| 15 | +\usepackage{titlesec} |
| 16 | +\usepackage{listings} |
| 17 | +\usepackage{graphicx} |
| 18 | +\usepackage{caption} |
| 19 | +\usepackage{hyperref} |
| 20 | +\usepackage{makeidx} |
| 21 | +\usepackage{xcolor} |
| 22 | + |
| 23 | + |
| 24 | +\usepackage{fontspec} % 字體 |
| 25 | +\usepackage{xeCJK} % 中文支持 |
| 26 | +\setmainfont{Times New Roman} % 主字體 |
| 27 | +\setCJKmainfont{Noto Sans CJK TC} % 中文黑體 思源黑體 |
| 28 | +\linespread{1.5} |
| 29 | + |
| 30 | +\newcommand{\CJKsection}[1]{{\CJKfamily{titlefont}#1}} % 中文支持 Section Title |
| 31 | +\titleformat{\section}{\Large\bfseries\CJKsection}{\thesection}{1em}{} |
| 32 | + |
| 33 | +% 自定義命令 |
| 34 | +\newcommand{\code}[1]{\texttt{#1}} |
| 35 | +\newcommand{\term}[1]{\textit{#1}} |
| 36 | +\renewcommand{\bold}[1]{\textbf{#1}} |
| 37 | +\newcommand{\figref}[1]{\textbf{Figure~\ref{#1}}} |
| 38 | +\newcommand{\tabref}[1]{\textbf{Table~\ref{#1}}} |
| 39 | +\newcommand{\lstref}[1]{\textbf{Listing~\ref{#1}}} |
| 40 | +\newcommand{\chapref}[1]{\textbf{Chapter~\ref{#1}}} |
| 41 | +\newcommand{\secref}[1]{\textbf{Section~\ref{#1}}} |
| 42 | + |
| 43 | + |
| 44 | + |
| 45 | +%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 46 | +%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 47 | +\begin{document} |
| 48 | +%%%%%%%%%%%%%%%%%%%%%%%%%%%% TITOLO |
| 49 | +%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 50 | +% \input{FileAusiliari/Titolo} |
| 51 | +\input{FileAusiliari/Titolo2} |
| 52 | +%%%%%%%%%%%%%%%%%%%%%%%%%%%% FRONTMATTER |
| 53 | +%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 54 | +\frontmatter |
| 55 | +\pagestyle{fancyfront} |
| 56 | +%%%%% INDICE |
| 57 | +\begingroup |
| 58 | +{ |
| 59 | + \let\cleardoublepage\relax |
| 60 | + %%%%% Nome Indice (NASCOSTO E CREATO A PARTE) |
| 61 | + \renewcommand\contentsname{} |
| 62 | + \begin{tikzpicture}[remember picture, overlay] |
| 63 | + \clip (-80,-95) rectangle (40,10); |
| 64 | + \pgftext[x=.8\textwidth, y=0.2cm]{\HUGE\bfseries |
| 65 | + Indice} % Titolo indice |
| 66 | + \end{tikzpicture} |
| 67 | + \vspace{-1cm} |
| 68 | + |
| 69 | + \tableofcontents |
| 70 | + \vspace{.25cm} |
| 71 | +} |
| 72 | +%%%%% INTRODUZIONE |
| 73 | +\input{FileAusiliari/Introduzione} |
| 74 | +\input{FileAusiliari/Rule} |
| 75 | +\endgroup |
| 76 | + |
| 77 | +%%%%% ERRATA |
| 78 | +\iffalse |
| 79 | + \titleformat{\chapter} |
| 80 | + [hang] |
| 81 | + {\huge} |
| 82 | + {} |
| 83 | + {0em} |
| 84 | + {} |
| 85 | + [\large {\begin{tikzpicture} [remember picture, overlay] |
| 86 | + \pgftext[right,x=14.75cm,y=0.2cm]{\color{black}\Huge\bfseries |
| 87 | + Errata corrige \& Aggiunte}; |
| 88 | + \end{tikzpicture}}] |
| 89 | +\chapter*{}\normalfont \addcontentsline{toc}{part}{Errata corrige \& Aggiunte} |
| 90 | +\begin{longtable}{p{2.55cm}p{1.45cm}p{9cm}} |
| 91 | + Data di \newline correzione & Pagina&\\\hline |
| 92 | + 24/10/2023 & ? & ? |
| 93 | +\end{longtable} |
| 94 | +\fi |
| 95 | + |
| 96 | +%%%%%%%%%%%%%%%%%%%%%%%%%%%% MAINMATTER |
| 97 | +%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 98 | +\mainmatter |
| 99 | + |
| 100 | +\pagestyle{fancymain} |
| 101 | +\titleformat{\chapter}[display]{\bfseries\Large} {\filleft\MakeUppercase{\chaptertitlename} \HUGE\thechapter}{.5ex}{\titlerule\vspace{1ex}\filleft}[\vspace{3.5ex}] |
| 102 | +\titlespacing*{\chapter}{0pt}{0.1\baselineskip}{0.5\baselineskip} |
| 103 | + |
| 104 | +\fancyheadoffset[L]{\dimexpr\oddsidemargin-0in\relax} |
| 105 | +\fancyheadoffset[R]{\dimexpr\oddsidemargin-0in\relax} |
| 106 | + |
| 107 | +\normalfont |
| 108 | +\normalsize |
| 109 | + |
| 110 | + |
| 111 | +% \newgeometry{top=35mm, bottom=35mm, left=15mm, right=15mm, headheight=0pt, headsep=0pt, marginparsep=0pt, marginparwidth=0pt, footskip=0pt, footnotesep=0pt} |
| 112 | +% % \part*{\HUGE Parte 1}\label{Parte1} |
| 113 | +% \restoregeometry |
| 114 | + |
| 115 | +%%%%% CAPITOLI |
| 116 | +\input{Chapters/Chap1} |
| 117 | +\input{Chapters/Chap2} |
| 118 | +\input{Chapters/Chap3} |
| 119 | +\input{Chapters/Chap4} |
| 120 | +\input{Chapters/Chap5} |
| 121 | +\input{Chapters/Chap6} |
| 122 | +\input{Chapters/Chap7} |
| 123 | +\input{Chapters/Chap8} |
| 124 | +\input{Chapters/Chap9} |
| 125 | +\input{Chapters/Chap10} |
| 126 | +\input{Chapters/Chap11} |
| 127 | +\input{Chapters/Chap12} |
| 128 | +\input{Chapters/Chap13} |
| 129 | + |
| 130 | + |
| 131 | + |
| 132 | +%%%%% APPENDICI |
| 133 | +\newgeometry{top=35mm, bottom=35mm, left=15mm, right=15mm, headheight=0pt, headsep=0pt, marginparsep=0pt, marginparwidth=0pt, footskip=0pt, footnotesep=0pt} |
| 134 | +\part*{\HUGE Appendici} |
| 135 | +\titleformat{\chapter}[display] {\bfseries\large\raggedright} {\vspace{-2.35cm} \MakeUppercase{\chaptertitlename}\ \Huge \thechapter} {.125ex} {\raggedleft\vspace{-1cm}\Huge\makebox[.5\textwidth]{}} |
| 136 | +\titlespacing*{\chapter}{0pt}{6\baselineskip}{2.5\baselineskip} |
| 137 | +\restoregeometry |
| 138 | + |
| 139 | + % Capitoli |
| 140 | +\titlecontents{chapter}[2.5pc] |
| 141 | +{\addvspace{15pt}} |
| 142 | +{\begin{tikzpicture} |
| 143 | + \pgftext{\LArge\bfseries\bfseries\color{black}\hspace{-1cm} Appendice\ \thecontentslabel{\color{white}.}\hspace{.5cm} } |
| 144 | + \end{tikzpicture}\Large } |
| 145 | +{} |
| 146 | +{\color{black}\titlerule\; \;\Large\bfseries Pagina \thecontentspage} |
| 147 | + |
| 148 | +\pagestyle{fancyapp} |
| 149 | + |
| 150 | +\begin{appendices} |
| 151 | + \input{Appendici/AppendiceA} |
| 152 | + |
| 153 | +%%%%%%%%%%%%%%%%%%%%%%%%%%%% BACKMATTER |
| 154 | +%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 155 | +\backmatter |
| 156 | + |
| 157 | +%%%%% BIBLIOGRAFIA |
| 158 | +\pagestyle{fancyBibliografia} |
| 159 | +\titleformat{\chapter} |
| 160 | + [hang] |
| 161 | + {\vspace{-2cm}\Huge} |
| 162 | + {} |
| 163 | + {0em} |
| 164 | + {} |
| 165 | + [\Large {\begin{tikzpicture} [remember picture, overlay] |
| 166 | + \pgftext[right,x=14.75cm,y=0.2cm]{\HUGE\bfseries |
| 167 | + Bibliografia} |
| 168 | + \end{tikzpicture}}] |
| 169 | + |
| 170 | + \nocite{*} |
| 171 | + \bibliographystyle{amsalpha} |
| 172 | + \bibliography{FileAusiliari/Bibliografia} |
| 173 | + \addcontentsline{toc}{part}{Bibliografia} |
| 174 | +\cleardoublepage |
| 175 | +%INDICE ANALITICO |
| 176 | + \pagestyle{fancyIndiceAnalitico} |
| 177 | + \renewcommand{\indexname}{} |
| 178 | + % SISTEMA IL PROBLEMA DEL LINK ALL'INDICE ANALITICO |
| 179 | + \let\cleardoublepage\relax |
| 180 | + \titleformat{\chapter}[hang]{}{}{0em}{}[] |
| 181 | + \chapter*{} |
| 182 | + \titleformat{\chapter} |
| 183 | + [hang] |
| 184 | + {\Huge} |
| 185 | + {} |
| 186 | + {0em} |
| 187 | + {} |
| 188 | + [\Large {\begin{tikzpicture} [remember picture, overlay] |
| 189 | + \pgftext[right,x=14.75cm,y=0.2cm]{\HUGE\bfseries |
| 190 | + Indice analitico} |
| 191 | + \end{tikzpicture}}] |
| 192 | + \titlespacing*{\chapter}{0pt}{0\baselineskip}{5\baselineskip} |
| 193 | + \addcontentsline{toc}{part}{Indice analitico} |
| 194 | + \vspace{-2cm} |
| 195 | + \printindex |
| 196 | +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 197 | +\end{appendices} |
| 198 | +\end{document} |
0 commit comments