| 1 |
% \iffalse |
| 2 |
% Copyright (C) 2013-2014 by Dimitrios Vrettos - [email protected] |
| 3 |
% |
| 4 |
% This file may be distriubuted and/or modified under the |
| 5 |
% conditions of the LaTeX Project Public Licence, either |
| 6 |
% version 1.3c of this licence or (at your option) any later |
| 7 |
% version. The latest version of this licence is in: |
| 8 |
% |
| 9 |
% http://www.latex-project.org/lppl.txt |
| 10 |
% |
| 11 |
% and version 1.3c or later is part of all distriubutions of |
| 12 |
% LaTeX version 2008/05/04 or later. |
| 13 |
% |
| 14 |
% This work has the LPPL maintenance status `maintained'. |
| 15 |
% |
| 16 |
% \fi |
| 17 |
% |
| 18 |
% \iffalse |
| 19 |
%<*driver> |
| 20 |
\ProvidesFile{matc3mem.dtx} |
| 21 |
%</driver> |
| 22 |
%<class>\NeedsTeXFormat{LaTeX2e} |
| 23 |
%<class>\ProvidesClass{matc3mem} |
| 24 |
%<*class>% |
| 25 |
[2014/04/10 v1.1 Classe per il libri di MatematicaC3] |
| 26 |
%</class> |
| 27 |
%<class>\LoadClassWithOptions{memoir}[2011/03/06] |
| 28 |
%<class>\RequirePackage{amsthm} |
| 29 |
%<class>\RequirePackage[dvipsnames]{xcolor} |
| 30 |
%<class>\RequirePackage{shadethm} |
| 31 |
%<*driver> |
| 32 |
\documentclass[italian]{ltxdoc} |
| 33 |
\usepackage[T1]{fontenc} |
| 34 |
\usepackage[utf8x]{inputenc} |
| 35 |
\usepackage[italian]{babel} |
| 36 |
\usepackage{amssymb} |
| 37 |
\makeatletter |
| 38 |
\def\SpecialMainEnvIndex#1{\@bsphack\special@index{% |
| 39 |
#1\actualchar |
| 40 |
{\string\ttfamily\space#1} |
| 41 |
(ambiente)% |
| 42 |
\encapchar main}% |
| 43 |
\special@index{ambienti:\levelchar#1\actualchar{% |
| 44 |
\string\ttfamily\space#1}\encapchar |
| 45 |
main}\@esphack} |
| 46 |
\def\SpecialUsageIndex#1{\@bsphack |
| 47 |
{\let\special@index\index\SpecialIndex@{#1}{\encapchar usage}}% |
| 48 |
\@esphack} |
| 49 |
\def\SpecialEnvIndex#1{\@bsphack |
| 50 |
\index{#1\actualchar{\protect\ttfamily#1} |
| 51 |
(ambiente)\encapchar usage}% |
| 52 |
\index{ambienti:\levelchar#1\actualchar{\protect\ttfamily#1}\encapchar |
| 53 |
usage}\@esphack} |
| 54 |
\makeatother |
| 55 |
\EnableCrossrefs |
| 56 |
\CodelineIndex |
| 57 |
\RecordChanges |
| 58 |
\GlossaryPrologue{\section*{Cronologia delle modifiche}} |
| 59 |
\IndexPrologue{\section*{Indice analitico}I numeri scritti in corsivo si riferiscono alla pagina in |
| 60 |
cui la voce corrispondente \`e descritta; i numeri sottolineati si riferiscono alla riga del codice |
| 61 |
della definizione; i numeri in tondo si riferiscono alle linee del codice in cui viene visualizzata |
| 62 |
la voce.} |
| 63 |
\setcounter{IndexColumns}{2} |
| 64 |
\makeindex |
| 65 |
\DoNotIndex{\\,, \@endpart, \@setuppart, \`, \\, \\ } |
| 66 |
\DoNotIndex{\addtolength, \afterpartskip, \alph} |
| 67 |
\DoNotIndex{\baselineskip, \beforechapskip, \beforepartskip, \begin, \begingroup} |
| 68 |
\DoNotIndex{\centering, \cftpartnumwidth, \chapnumfont, \chaptermark, \chaptername, \chapternonumtrue} |
| 69 |
\DoNotIndex{\chapterstyle, \chaptitlefont} |
| 70 |
\DoNotIndex{\def, \definecolor, \descriptionlabel, \ding, \drop} |
| 71 |
\DoNotIndex{\\else, \emph, \end, \endgroup} |
| 72 |
\DoNotIndex{\\fi, \flushright, \fontseries, \fontsize} |
| 73 |
\DoNotIndex{\headcap, \headsec, \hrule, \hskip, \hspace, \Huge, \huge} |
| 74 |
\DoNotIndex{\\if@mainmatter, \\ifcase, \\ifchapternonum, \\ifnum, \item, \itemsep, \itshape} |
| 75 |
\DoNotIndex{\labelsep, \labelwidth, \LARGE, \Large, \large, \leftmark, \linewidth} |
| 76 |
\DoNotIndex{\makechapterstyle, \makeevenhead, \makeoddhead, \makepagestyle, \makepsmarks} |
| 77 |
\DoNotIndex{\MakeUppercase, \markboth, \markright, \midpartskip} |
| 78 |
\DoNotIndex{\newcommand, \newenvironment, \newif, \newlength, \noindent, \numeroparte} |
| 79 |
\DoNotIndex{\\or} |
| 80 |
\DoNotIndex{\par, \parbox, \parskip, \partnamenum, \partnumfont, \parttitlefont, \printchaptername} |
| 81 |
\DoNotIndex{\printchapternonum, \printchapternum, \printchaptertitle, \printpartname, \printpartnum} |
| 82 |
\DoNotIndex{\printparttitle, \providecommand} |
| 83 |
\DoNotIndex{\raggedleft, \raggedright, \raisebox, \relax, \renewcommand, \rightmark} |
| 84 |
\DoNotIndex{\sectionmark, \selectfont, \setlength, \setsecheadstyle, \setsubsecheadstyle} |
| 85 |
\DoNotIndex{\setsubsubsecheadstyle, \slshape} |
| 86 |
\DoNotIndex{\textheight, \textwidth, \thechapter, \theoremstyle, \thepage, \thepart, \thesection} |
| 87 |
\DoNotIndex{\thispagestyle} |
| 88 |
\DoNotIndex{\value, \vphantom, \vskip, \vspace} |
| 89 |
\begin{document} |
| 90 |
\DocInput{matc3mem.dtx} |
| 91 |
\end{document} |
| 92 |
%</driver> |
| 93 |
% \fi |
| 94 |
%\CheckSum{0} |
| 95 |
% \CharacterTable |
| 96 |
% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z |
| 97 |
% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z |
| 98 |
% Digits \0\1\2\3\4\5\6\7\8\9 |
| 99 |
% Exclamation \! Double quote \" Hash (number) \# |
| 100 |
% Dollar \$ Percent \% Ampersand \& |
| 101 |
% Acute accent \' Left paren \( Right paren \) |
| 102 |
% Asterisk \* Plus \+ Comma \, |
| 103 |
% Minus \- Point \. Solidus \/ |
| 104 |
% Colon \: Semicolon \; Less than \< |
| 105 |
% Equals \= Greater than \> Question mark \? |
| 106 |
% Commercial at \@ Left bracket \[ Backslash \\ |
| 107 |
% Right bracket \] Circumflex \^ Underscore \_ |
| 108 |
% Grave accent \` Left brace \{ Vertical bar \| |
| 109 |
% Right brace \} Tilde \~} |
| 110 |
% |
| 111 |
% \changes{v1.0}{2013/04/05}{Primo rilascio pubblico} |
| 112 |
% \changes{v1.0.1}{2013/04/06}{Bug corretto} |
| 113 |
% \GetFileInfo{matc3mem.dtx} |
| 114 |
% |
| 115 |
% \title{La classe \textsf{matc3mem}\thanks{Questo documento |
| 116 |
% corrisponde a \textsf{matc3mem}~\fileversion, |
| 117 |
% data~\filedate.}} |
| 118 |
% \author{Dimitrios Vrettos \\ \texttt{[email protected]}} |
| 119 |
% |
| 120 |
% \maketitle |
| 121 |
% |
| 122 |
% \tableofcontents |
| 123 |
% \section{Introduzione} |
| 124 |
% |
| 125 |
% La presente classe si pu\`o considerare una personalizzazione della classe~\textsf{memoir} |
| 126 |
% con l'aggiunta di nuove macro per soddisfare le esigenze dei testi di MatematicaC3 |
| 127 |
% (rilasciati con licenza \textit{Creative Commons} e scaricabili gratuitamente dal |
| 128 |
% sito di matematicamente.it). |
| 129 |
% Ovviamente la classe viene rilasciata anche per altri usi e scopi, non obbligatoriamente |
| 130 |
% correlati al progetto di MatematicaC3. |
| 131 |
% |
| 132 |
% La documentazione presenta la sezione dell'installazione della classe~\textsf{matc3mem}, |
| 133 |
% nonch\'e le sue dipendenze da altri pacchetti. Successivamente, vengono presi in esame |
| 134 |
% le varie macro che offerte. In fine, c'\`e l'implentazione commentata del codice |
| 135 |
% sorgente. |
| 136 |
% |
| 137 |
% La classe~\textsf{matc3mem} viene rilasciata con la |
| 138 |
% licenza \LaTeX\ \textit{Project Public Licence, version 1.3c or later}\footnote{L'ultima versione |
| 139 |
% della licenza |
| 140 |
% \`e disponibile su \texttt{http://www.latex-project.org/lppl.txt}.}. |
| 141 |
% |
| 142 |
% |
| 143 |
% \section{Installazione} |
| 144 |
% \subsection{Usando Make} |
| 145 |
% |
| 146 |
% La distribuzione della classe contiene un~\texttt{Makefile}. Dando il comando |
| 147 |
% \begin{verbatim} |
| 148 |
% $ make help |
| 149 |
% \end{verbatim} |
| 150 |
% vengono mostrate le varie opzioni disponibili. A titolo informativo ne vengono presentate due: |
| 151 |
% \begin{verbatim} |
| 152 |
% $ make install |
| 153 |
% \end{verbatim} |
| 154 |
% che compila i sorgenti e successivamente installa il pacchetto e la documentazione e aggiorna |
| 155 |
% il database. |
| 156 |
% |
| 157 |
% Se qualcosa, invece, non \`e andato a buon fine, si proceda con la disinstallazione completa: |
| 158 |
% \begin{verbatim} |
| 159 |
% $ make uninstall |
| 160 |
% \end{verbatim} |
| 161 |
% |
| 162 |
% \section{Dipendenze} |
| 163 |
% Come gi\`a riferito nell'introduzione, la~\textsf{matc3mem} si basa sulla classe~\textsf{memoir}. |
| 164 |
% Da essa eredita tutte le opzioni. Per i simboli matematici, invece, si richiede la presenza del |
| 165 |
% pacchetto~\textsf{amssymb}. Inoltre vengono caricati, dierettamente dalla classe, i seguenti pacchetti: |
| 166 |
% \begin{itemize} |
| 167 |
% \item \textsf{amsmath} per la definizione dei teoremi; |
| 168 |
% \item \textsf{xcolor} caricato con l'opzione~\texttt{dvipsnames} per la gestione del colore del |
| 169 |
% documento; |
| 170 |
% \item \textsf{shadethm} che serve per gli sfondi colorati dei teoremi. |
| 171 |
% \end{itemize} |
| 172 |
% |
| 173 |
% \section{Uso} |
| 174 |
% \subsection{Frontespizio e colophon} |
| 175 |
% \DescribeMacro{\frntspz} |
| 176 |
% Esiste un frontespizio predefinito per il testo il quale riporta i dati essenziali del testo. |
| 177 |
% Tuttavia all'interno del codice si fa uso di macro non definite, le quali vanno dichiarate al |
| 178 |
% preambolo del documento nel caso si volesse usare il frontespizio fornito con la classe. Esse sono: |
| 179 |
% \begin{itemize} |
| 180 |
% \item |\serie| che riguarda l'eventuale collano editoriale; |
| 181 |
% \item |\titolo| che riporta il titolo del testo; |
| 182 |
% \item |\descr| per la descrizione del libro; |
| 183 |
% \item |\editore| il nome dell'editore che pubblica il libro; |
| 184 |
% \item |\Edizione| l'edizione corrente; |
| 185 |
% \item |\anno| l'anno della pubblicazione. |
| 186 |
% \end{itemize} |
| 187 |
% La macro si utilizza all'interno dell'ambiente~\texttt{titlinpage}: |
| 188 |
% \begin{verbatim} |
| 189 |
% \begin{titlinpage} |
| 190 |
% \frntspz |
| 191 |
% \end{titlinpage} |
| 192 |
%\end{verbatim} |
| 193 |
% |
| 194 |
% \DescribeMacro{\mcpar} |
| 195 |
% Per il colophon non è previsto uno schema predefinito. Potrebbe comunque risultare utile un comando che |
| 196 |
% stampa il titolo di un capoverso in maiuscoletto. Per questa ragione si introduce~|\mcpar|. |
| 197 |
% |
| 198 |
% \subsection{Liste} |
| 199 |
% La classe~\textsf{matc3mem} introduce quattro nuovi tipi di elenchi. Si tratta di modifiche di liste |
| 200 |
% gi\`a esistenti. |
| 201 |
% |
| 202 |
% \DescribeEnv{description*} |
| 203 |
% Ambiente per le descrizioni con interlinea ridotta. |
| 204 |
% |
| 205 |
% \DescribeEnv{enumeratea} |
| 206 |
% Ambiente basato su \texttt{enumerate}. La numerazione avviene usando delle lettere. |
| 207 |
% |
| 208 |
% \DescribeEnv{enumerate*} |
| 209 |
% Si tratta dell'ambiente \texttt{enumerate} con interlinea ridotta. |
| 210 |
% |
| 211 |
% \DescribeEnv{itemize*} |
| 212 |
% Variazione dell'ambiente \texttt{itemize} con interlinea ridotta. |
| 213 |
% |
| 214 |
% \DescribeMacro{\spazielen} |
| 215 |
% La riduzione dello spazio verticale tra una voce di un elenco ed un altra viene ottenuto applicando |
| 216 |
% il comando~|\spazielen|. |
| 217 |
% |
| 218 |
% \DescribeMacro{\spazielenx} |
| 219 |
% Questo macro invece, aumenta lo spazio verticale fra le voci di un elenco. |
| 220 |
% |
| 221 |
% I livelli delle voci di un elenco sono tre. |
| 222 |
% |
| 223 |
% \DescribeMacro{\labelitemi} |
| 224 |
% Primo livello delle voci di un elenco. Si pu\`o utilizzare dentro gli ambienti~\texttt{itemize} |
| 225 |
% e~\texttt{itemize*}. |
| 226 |
% |
| 227 |
% \DescribeMacro{\labelitemii} |
| 228 |
% Secondo livello delle voci di un elenco. Si pu\`o utilizzare dentro gli ambienti~\texttt{itemize} |
| 229 |
% e~\texttt{itemize*}. |
| 230 |
% |
| 231 |
% \DescribeMacro{\labelitemiii} |
| 232 |
% Terzo livello delle voci di un elenco. Si pu\`o utilizzare dentro gli ambienti~\texttt{itemize} |
| 233 |
% e~\texttt{itemize*}. |
| 234 |
% |
| 235 |
% \subsection{Esempi, esercizi, problemi} |
| 236 |
% Nel testo si fa largo uso di esempi, esercizi e di problemi risolti. Per questo motivo sono stati |
| 237 |
% creati tre tipi distinti di ambienti per poter descrivere i singoli casi. |
| 238 |
% |
| 239 |
% \DescribeEnv{esempio} |
| 240 |
% L'ambiente per gli esempi riportati nel testo. Il titolo dell'esempio viene |
| 241 |
% stampato a colore e la sua numerazione dipende dal capitolo. \`E possibile applicare anche |
| 242 |
% un'opzione all'ambiente. Ad esempio: |
| 243 |
% \begin{verbatim} |
| 244 |
% \begin{esempio}[<opzione>] |
| 245 |
% ... |
| 246 |
% \end{esempio} |
| 247 |
% \end{verbatim} |
| 248 |
% Gli esempi vengono numerati automaticamente nella forma \textit{<x.y>}, dove~\textit{<x>} è il |
| 249 |
% numero del capitolo corrente e~\textit{<y>} il numero dell'esempio. Ad ogni nuovo capitolo, |
| 250 |
% la numerazione crescente degli esempi si azzera. |
| 251 |
% |
| 252 |
% \DescribeEnv{exrig} |
| 253 |
% Serve per isolare dal resto del testo gli esempi, ponendo |
| 254 |
% un rigo prima del loro inizio e un altro dopo la fine. |
| 255 |
% \begin{verbatim} |
| 256 |
% \begin{exrig} |
| 257 |
% \begin{esempio}[<opzione>] |
| 258 |
% ... |
| 259 |
% \end{esempio} |
| 260 |
% |
| 261 |
% ... |
| 262 |
% |
| 263 |
% \begin{esempio}[<opzione>] |
| 264 |
% ... |
| 265 |
% \end{esempio} |
| 266 |
% \end{exrig} |
| 267 |
% \end{verbatim} |
| 268 |
% |
| 269 |
% \DescribeEnv{esercizio} |
| 270 |
% Nuovo ambiente per gli esercizi. Funziona in maniera del tutto uguale all'ambiente~\textsf{esempio}. |
| 271 |
% |
| 272 |
% \DescribeEnv{problema} |
| 273 |
% Questa macro crea l'ambiente per i problemi risolti. Tuttavia, l'ambiente è stato pensato per |
| 274 |
% includere solo l'enunciato del problema. Per il testo, invece, della soluzione \`e previsto |
| 275 |
% l'ambiente~\textsf{soluzione}. Valgono le regole per l'ambiente \textsf{esempio} |
| 276 |
% e~\textsf{esercizio}. |
| 277 |
% |
| 278 |
% \DescribeEnv{soluzione} |
| 279 |
% Ambiente che dovrebbe seguire l'ambiente~\textsf{problema}. In esso |
| 280 |
% viene inclusa la soluzione di un problema. Una possibile combinazione dei due ambienti sarebbe: |
| 281 |
% \begin{verbatim} |
| 282 |
% \begin{esercizio}[<opzione>] |
| 283 |
% ... |
| 284 |
% \end{esercizio} |
| 285 |
% |
| 286 |
% \begin{soluzione} |
| 287 |
% ... |
| 288 |
% \end{soluzione} |
| 289 |
% \end{verbatim} |
| 290 |
% |
| 291 |
% \subsection{Teoremi} |
| 292 |
% I teoremi e gli enunciati simili, vengono stampati in sfondo colorato e in tondo o corsivo |
| 293 |
% Seguono una numerazione crescente che viene azzerata ad ogni nuovo capitolo. |
| 294 |
% |
| 295 |
% \DescribeEnv{definizione} |
| 296 |
% Per le definizioni che vengono date nel testo. |
| 297 |
% |
| 298 |
% \DescribeEnv{criterio} |
| 299 |
% Per i criteri matematici. |
| 300 |
% |
| 301 |
% \DescribeEnv{teorema} |
| 302 |
% Ambiente per i teoremi. Stampa in corsivo. |
| 303 |
% |
| 304 |
% \DescribeEnv{legge} |
| 305 |
% Ambiente per le leggi matematiche. Basato su~\textsf{teorema}. |
| 306 |
% |
| 307 |
% \DescribeEnv{postulato} |
| 308 |
% Ambiente per i postulati matematici. Basato su~\textsf{teorema}. |
| 309 |
% |
| 310 |
% \DescribeEnv{principio} |
| 311 |
% Ambiente per i principi matematici. Basato su~\textsf{teorema}. |
| 312 |
% |
| 313 |
% \DescribeEnv{procedura} |
| 314 |
% Ambiente per le procedure matematiche. Basato su~\textsf{teorema}. |
| 315 |
% |
| 316 |
% \DescribeEnv{proposizione} |
| 317 |
% Ambiente per le proposioni matematiche. Basato su~\textsf{teorema}. |
| 318 |
% |
| 319 |
% \DescribeEnv{proprieta} |
| 320 |
% Ambiente per le proprietà matematiche. Basato su~\textsf{teorema}. |
| 321 |
% |
| 322 |
% La colorazione o meno dello sfondo, il colore del bordo e la dimensione della scatola possono essere |
| 323 |
% impostati al preambolo del documento. |
| 324 |
% |
| 325 |
% \subsection{Grafici} |
| 326 |
% \DescribeEnv{grafico} |
| 327 |
% \DescribeMacro{\listofdiagrams} |
| 328 |
% L'ambiente permette di dare al titolo della didascalia il nome ``grafico''. Si tratta di un ambiente |
| 329 |
% di carattere \textit{float} e ci si comporta come gli ambienti~\texttt{figure} e/o \texttt{table}. |
| 330 |
% Esiste inoltre la possibilit\`a di creare un elenco di grafici. |
| 331 |
% |
| 332 |
% \section{Implemenentazione} |
| 333 |
% \begin{macro}{\mcpar} |
| 334 |
% Capoverso scritto in maiuscoletto. |
| 335 |
% \begin{macrocode} |
| 336 |
\newcommand{\mcpar}[1]{% |
| 337 |
\paragraph*{% |
| 338 |
\small\normalfont\scshape{#1}% |
| 339 |
}% |
| 340 |
} |
| 341 |
% \end{macrocode} |
| 342 |
% \end{macro} |
| 343 |
% \begin{macro}{\spazielen} |
| 344 |
% Viene definito il comando, impostando la separazione verticale delle voci a~0, e sminuendo |
| 345 |
% la separazione tra i capoversi. |
| 346 |
% Questo comando viene utilizzato nella definizione degli elenchi. |
| 347 |
% \begin{macrocode} |
| 348 |
\newcommand{\spazielen}{% |
| 349 |
\setlength{\itemsep}{0pt}% |
| 350 |
\setlength{\parskip}{0pt}% |
| 351 |
} |
| 352 |
% \end{macrocode} |
| 353 |
% \end{macro} |
| 354 |
% \begin{macro}{\spazielenx} |
| 355 |
% A differenza del comando precedente, il |\parskip| viene impostato a~\texttt{5 pt}. |
| 356 |
% \begin{macrocode} |
| 357 |
\newcommand{\spazielenx}{% |
| 358 |
\setlength{\itemsep}{0pt}% |
| 359 |
\setlength{\parskip}{5pt}% |
| 360 |
} |
| 361 |
% \end{macrocode} |
| 362 |
% \end{macro} |
| 363 |
% \begin{macro}{\labelitemi} |
| 364 |
% Nuova defiinizione per la macro~|\labelitemi|: |
| 365 |
% \begin{macrocode} |
| 366 |
\renewcommand{\labelitemi}{% |
| 367 |
\textcolor{Salmon}{\ding{225}}% |
| 368 |
} |
| 369 |
% \end{macrocode} |
| 370 |
% \end{macro} |
| 371 |
% \begin{macro}{\labelitemii} |
| 372 |
% Nuova defiinizione per la macro~|\labelitemii|: |
| 373 |
% \begin{macrocode} |
| 374 |
\renewcommand{\labelitemii}{% |
| 375 |
\textcolor{Salmon}{\ding{224}}% |
| 376 |
} |
| 377 |
% \end{macrocode} |
| 378 |
% \end{macro} |
| 379 |
% \begin{macro}{\labelitemiii} |
| 380 |
% Nuova defiinizione per la macro~|\labelitemiii|: |
| 381 |
% \begin{macrocode} |
| 382 |
\renewcommand{\labelitemiii}{% |
| 383 |
\textcolor{Salmon}{\ding{223}}% |
| 384 |
} |
| 385 |
% \end{macrocode} |
| 386 |
% \end{macro} |
| 387 |
% |
| 388 |
% \begin{environment}{description*} |
| 389 |
% |
| 390 |
% \begin{macrocode} |
| 391 |
\newenvironment{description*}{% |
| 392 |
\begin{description} |
| 393 |
\spazielen}% |
| 394 |
{\end{description}% |
| 395 |
} |
| 396 |
\renewcommand{\descriptionlabel}[1]{% |
| 397 |
\labelwidth=3cm\hspace{% |
| 398 |
\labelsep}\emph{#1}% |
| 399 |
} |
| 400 |
% \end{macrocode} |
| 401 |
% \end{environment} |
| 402 |
% \begin{environment}{enumeratea} |
| 403 |
% Viene definita l'eticchetta e successivamente ridotta l'interlinea: |
| 404 |
% \begin{macrocode} |
| 405 |
\newenvironment{enumeratea}{% |
| 406 |
\begin{enumerate}[label=\alph*\,)]% |
| 407 |
\spazielen}{% |
| 408 |
\end{enumerate}% |
| 409 |
} |
| 410 |
% \end{macrocode} |
| 411 |
% \end{environment} |
| 412 |
% \begin{environment}{enumerate*} |
| 413 |
% Viene ridotta l'interlinea usando |\spazielen|: |
| 414 |
% \begin{macrocode} |
| 415 |
\newenvironment{enumerate*}{% |
| 416 |
\begin{enumerate}% |
| 417 |
\spazielen}{% |
| 418 |
\end{enumerate}% |
| 419 |
} |
| 420 |
% \end{macrocode} |
| 421 |
% \end{environment} |
| 422 |
% \begin{environment}{itemize*} |
| 423 |
% Si utilizza |\spazielen| per ridurre l'interlinea: |
| 424 |
% \begin{macrocode} |
| 425 |
\newenvironment{itemize*}{% |
| 426 |
\begin{itemize} |
| 427 |
\spazielen}{% |
| 428 |
\end{itemize}% |
| 429 |
} |
| 430 |
% \end{macrocode} |
| 431 |
% \end{environment} |
| 432 |
% \begin{environment}{exrig} |
| 433 |
% |
| 434 |
% \begin{macrocode} |
| 435 |
\newenvironment{exrig}{% |
| 436 |
\vskip2mm\hrule\vskip2mm}{% |
| 437 |
\hrule\vskip2mm} |
| 438 |
% \end{macrocode} |
| 439 |
% \end{environment} |
| 440 |
% |
| 441 |
% Viene definito lo stile del teorema |
| 442 |
% \begin{macrocode} |
| 443 |
\theoremstyle{definition} |
| 444 |
% \end{macrocode} |
| 445 |
% \begin{environment}{definizione} |
| 446 |
% Ambiente per le definizioni: |
| 447 |
% \begin{macrocode} |
| 448 |
\newshadetheorem{definizione}{Definizione}[chapter] |
| 449 |
% \end{macrocode} |
| 450 |
% \end{environment} |
| 451 |
% \begin{environment}{definizione} |
| 452 |
% |
| 453 |
% \begin{macrocode} |
| 454 |
\newshadetheorem{criterio}[definizione]{Criterio} |
| 455 |
% \end{macrocode} |
| 456 |
% \end{environment} |
| 457 |
% \begin{environment}{esempio} |
| 458 |
% |
| 459 |
% \begin{macrocode} |
| 460 |
\newshadetheorem{sesempio}{Esempio}[chapter] |
| 461 |
\newtheorem{esempio}[sesempio]{\color{Sepia}Esempio} |
| 462 |
% \end{macrocode} |
| 463 |
% \end{environment} |
| 464 |
% \begin{environment}{problema} |
| 465 |
% |
| 466 |
% \begin{macrocode} |
| 467 |
\newtheorem{problema}[sesempio]{\color{Sepia}Problema} |
| 468 |
% \end{macrocode} |
| 469 |
% \end{environment} |
| 470 |
% \begin{environment}{esercizio} |
| 471 |
% |
| 472 |
% \begin{macrocode} |
| 473 |
\newtheorem{esercizio}{\color{Sepia}}[chapter] |
| 474 |
% \end{macrocode} |
| 475 |
% \end{environment} |
| 476 |
% |
| 477 |
% Viene definito il tipo di teorema (plain). |
| 478 |
% \begin{macrocode} |
| 479 |
\theoremstyle{plain} |
| 480 |
% \end{macrocode} |
| 481 |
% Successivamente il comando \texttt{thmcolor} che definisce |
| 482 |
% il colore dello sfondo ove saranno riportati i teoremi e |
| 483 |
% il bordo della scatola. |
| 484 |
% \begin{macrocode} |
| 485 |
\newcommand{\thmcolor}{% |
| 486 |
\definecolor{shadethmcolor}{gray}{1}% |
| 487 |
\definecolor{shaderulecolor}{gray}{0.95}% |
| 488 |
} |
| 489 |
% \end{macrocode} |
| 490 |
% \begin{environment}{teorema} |
| 491 |
% Definizione dell'ambiente e numerazione basata sul capitolo. |
| 492 |
% \begin{macrocode} |
| 493 |
\newshadetheorem{teorema}{\thmcolor{Teorema}}[chapter] |
| 494 |
% \end{macrocode} |
| 495 |
% \end{environment} |
| 496 |
% \begin{environment}{legge} |
| 497 |
% Clone dell'ambiente~\textsf{teorema}, usato per le leggi. |
| 498 |
% \begin{macrocode} |
| 499 |
\newshadetheorem{legge}[teorema]{Legge} |
| 500 |
% \end{macrocode} |
| 501 |
% \end{environment} |
| 502 |
% \begin{environment}{postulato} |
| 503 |
% Clone dell'ambiente~\textsf{teorema}, usato per i postulati. |
| 504 |
% \changes{v1.1}{2014/04/10}{Aggiunta di nuovo ambiente} |
| 505 |
% \begin{macrocode} |
| 506 |
\newshadetheorem{postulato}[teorema]{Postulato} |
| 507 |
% \end{macrocode} |
| 508 |
% \end{environment} |
| 509 |
% \begin{environment}{principio} |
| 510 |
% Clone dell'ambiente~\textsf{teorema}, usato per i principi. |
| 511 |
% \begin{macrocode} |
| 512 |
\newshadetheorem{principio}[teorema]{Principio} |
| 513 |
% \end{macrocode} |
| 514 |
% \end{environment} |
| 515 |
% \begin{environment}{procedura} |
| 516 |
% Clone dell'ambiente~\textsf{teorema}, usato per le procedure. |
| 517 |
% \begin{macrocode} |
| 518 |
\newshadetheorem{procedura}[teorema]{Procedura} |
| 519 |
% \end{macrocode} |
| 520 |
% \end{environment} |
| 521 |
% \begin{environment}{proposizione} |
| 522 |
% Clone dell'ambiente~\textsf{teorema}, usato per le proposizioni. |
| 523 |
% \changes{v1.1}{2014/04/10}{Aggiunta di nuovo ambiente} |
| 524 |
% \begin{macrocode} |
| 525 |
\newshadetheorem{proposizione}[teorema]{Proposzione} |
| 526 |
% \end{macrocode} |
| 527 |
% \end{environment} |
| 528 |
% \begin{environment}{proprieta} |
| 529 |
% Clone dell'ambiente~\textsf{teorema}, usato per le proprietà. |
| 530 |
% \changes{v1.0.2}{2013/04/12}{Bug corretto della lettera accentata} |
| 531 |
% \begin{macrocode} |
| 532 |
\newshadetheorem{proprieta}[teorema]{Propriet\`a} |
| 533 |
% \end{macrocode} |
| 534 |
% \end{environment} |
| 535 |
% \begin{environment}{soluzione} |
| 536 |
% Ambiente per la stampa delle soluzioni dei problemi. Stampa in |
| 537 |
% corsivo il titolo e a fine ambiente pone il simbolo~``$\blacklozenge$''. |
| 538 |
% \begin{macrocode} |
| 539 |
\newenvironment{soluzione}[1][Soluzione]% |
| 540 |
{\begin{trivlist}% |
| 541 |
\item[\hskip \labelsep {\itshape #1}]% |
| 542 |
} |
| 543 |
{\end{trivlist}% |
| 544 |
{\flushright{\color{Sepia}$\blacklozenge$}\par}% |
| 545 |
} |
| 546 |
% \end{macrocode} |
| 547 |
% \end{environment} |
| 548 |
% L'ambiente per i grafici. |
| 549 |
% \begin{macrocode} |
| 550 |
\newcommand{\diagramname}{Grafico} |
| 551 |
\newcommand{\listdiagramname}{Elenco dei grafici} |
| 552 |
\newlistof{listofdiagrams}{dgm}{\listdiagramname} |
| 553 |
\newfloat[chapter]{grafico}{dgm}{Grafico} |
| 554 |
\newlistentry{grafico}{dgm}{0} |
| 555 |
% \end{macrocode} |
| 556 |
% In primis viene definito il comando~|\frntspz| che dovrà essere impiegato nel testo. |
| 557 |
% \begin{macrocode} |
| 558 |
\newcommand*{\frntspz}{% |
| 559 |
% \end{macrocode} |
| 560 |
% Successivamente s'imposta la distanza verticale~|\drop| in relazione dell'altezza del font, |
| 561 |
% \begin{macrocode} |
| 562 |
\begingroup\newlength{\drop} |
| 563 |
\drop=0.15\textheight |
| 564 |
\vspace{\drop} |
| 565 |
\centering |
| 566 |
\fontsize{16pt}{0in}% |
| 567 |
\selectfont\MakeUppercase\serie\\[0.5\drop] |
| 568 |
\fontsize{26pt}{0pt}% |
| 569 |
\selectfont\MakeUppercase\titolo\par |
| 570 |
\vspace{\drop} |
| 571 |
{\LARGE\descr}\par |
| 572 |
\vspace{2.5\drop} |
| 573 |
\large\editore |
| 574 |
\vskip2mm |
| 575 |
\large\Edizione\ - \anno\par |
| 576 |
\vspace{\drop} |
| 577 |
\endgroup} |
| 578 |
% \end{macrocode} |
| 579 |
% Realizzazione dello stile delle parti del testo. |
| 580 |
% \begin{macrocode} |
| 581 |
\renewcommand{\printpartname}{} |
| 582 |
\newcommand{\numeroparte}{\partnumfont \thepart} |
| 583 |
\renewcommand{\printpartnum}{} |
| 584 |
\renewcommand{\partnamenum}{} |
| 585 |
\renewcommand{\beforepartskip}{\vspace*{0.1in}} |
| 586 |
\renewcommand{\midpartskip}{} |
| 587 |
\renewcommand{\afterpartskip}{\vspace{1in}} |
| 588 |
\renewcommand\parttitlefont{% |
| 589 |
\Huge\fontseries{b}\fontfamily{phv}% |
| 590 |
\selectfont\raggedleft% |
| 591 |
} |
| 592 |
\renewcommand\partnumfont{% |
| 593 |
\fontseries{b}\fontsize{.9in}{0in}% |
| 594 |
\selectfont\color{BrickRed}% |
| 595 |
} |
| 596 |
\renewcommand{\@setuppart}{% |
| 597 |
\beforepartskip} |
| 598 |
\renewcommand{\@endpart}{% |
| 599 |
\afterpartskip} |
| 600 |
\renewcommand{\printparttitle}[1]{% |
| 601 |
\thispagestyle{empty}% |
| 602 |
\noindent |
| 603 |
\begin{tabularx}{\textwidth}{Xr} |
| 604 |
{\parbox[b]{\linewidth}{\parttitlefont #1}}% |
| 605 |
& \raisebox{-15pt}{\numeroparte} \\% |
| 606 |
\end{tabularx} |
| 607 |
} |
| 608 |
% \end{macrocode} |
| 609 |
% Definizione dello stile dei capitoli. |
| 610 |
% \begin{macrocode} |
| 611 |
\newif\ifchapternonum |
| 612 |
\makechapterstyle{matc3chap}{% |
| 613 |
\renewcommand\printchaptername{} |
| 614 |
\renewcommand\printchapternum{} |
| 615 |
\renewcommand{\beforechapskip}{-25pt} |
| 616 |
\renewcommand\printchapternonum{\chapternonumtrue} |
| 617 |
\renewcommand\chaptitlefont{% |
| 618 |
\huge\fontseries{b}\fontfamily{phv}\selectfont\raggedleft% |
| 619 |
} |
| 620 |
\renewcommand\chapnumfont{% |
| 621 |
\fontseries{b}\fontsize{.9in}{0in}% |
| 622 |
\selectfont\raggedright\color{Mahogany}% |
| 623 |
} |
| 624 |
\renewcommand\printchaptertitle[1]{% |
| 625 |
\noindent% |
| 626 |
\ifchapternonum% |
| 627 |
\begin{tabularx}{\textwidth}{X}% |
| 628 |
{\parbox[b]{\linewidth}{\chaptitlefont ##1}% |
| 629 |
\vphantom{\raisebox{15pt}{\chapnumfont 1}}} |
| 630 |
\end{tabularx}% |
| 631 |
\else |
| 632 |
\begin{tabularx}{\textwidth}{Xl} |
| 633 |
{\parbox[b]{\linewidth}{\chaptitlefont ##1}}% |
| 634 |
& \raisebox{-15pt}{ \chapnumfont \thechapter}% |
| 635 |
\end{tabularx}% |
| 636 |
\fi |
| 637 |
\par\vskip2mm%\hrule |
| 638 |
} |
| 639 |
} |
| 640 |
\chapterstyle{matc3chap} |
| 641 |
% \end{macrocode} |
| 642 |
% Stile delle sezioni. |
| 643 |
% \begin{macrocode} |
| 644 |
\setsecheadstyle{% |
| 645 |
\Large\fontfamily{phv}\fontseries{b}\selectfont\raggedright% |
| 646 |
} |
| 647 |
% \end{macrocode} |
| 648 |
% Definizione delle sottosezioni del testo. |
| 649 |
% \begin{macrocode} |
| 650 |
\setsubsecheadstyle{% |
| 651 |
\fontfamily{phv}\fontseries{b}\selectfont\raggedright% |
| 652 |
} |
| 653 |
% \end{macrocode} |
| 654 |
% Le sotto-sottosezioni. |
| 655 |
% \begin{macrocode} |
| 656 |
\setsubsubsecheadstyle{% |
| 657 |
\fontfamily{phv}\fontseries{b}\selectfont\raggedright% |
| 658 |
} |
| 659 |
% \end{macrocode} |
| 660 |
% Testatine e piè di pagina. |
| 661 |
% \begin{macrocode} |
| 662 |
\makepagestyle{matc3page} |
| 663 |
\makeevenhead{matc3page}{\thepage}{}{\slshape\leftmark} |
| 664 |
\makeoddhead{matc3page}{\slshape\rightmark}{}{\thepage} |
| 665 |
\newcommand{\headcap}{% |
| 666 |
{\color{Mahogany}\chaptername\ \thechapter. }% |
| 667 |
} |
| 668 |
\newcommand{\headsec}{% |
| 669 |
{\color{Mahogany}Sezione~\thesection. }% |
| 670 |
} |
| 671 |
\makepsmarks{matc3page}{% |
| 672 |
\def\chaptermark##1{\markboth{% |
| 673 |
\ifnum \value{secnumdepth} > -1 |
| 674 |
\if@mainmatter |
| 675 |
\headcap % |
| 676 |
\fi |
| 677 |
\fi |
| 678 |
##1}{}% |
| 679 |
} |
| 680 |
\def\sectionmark##1{\markright{% |
| 681 |
\ifnum \value{secnumdepth} > 0 |
| 682 |
\headsec \ % |
| 683 |
\fi |
| 684 |
##1}% |
| 685 |
} |
| 686 |
} |
| 687 |
% \end{macrocode} |
| 688 |
% \clearpage |
| 689 |
% \Finale |
| 690 |
% |
| 691 |
% \addcontentsline{toc}{section}{Indice analitico} |
| 692 |
% \PrintIndex |
| 693 |
% \addcontentsline{toc}{section}{Cronologia delle modifiche} |
| 694 |
% \PrintChanges |
| 695 |
\endinput |