-
Notifications
You must be signed in to change notification settings - Fork 0
/
guidatematica.cls
582 lines (551 loc) · 21.3 KB
/
guidatematica.cls
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
%%
%% This is file `guidatematica.cls',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% guidatematica.dtx (with options: `class')
%% ________________________________________
%% The guidatematica class for typesetting books in the GuIT series
%% "Guide Tematiche"
%% Copyright (C) 2012-2021 GuIT,
%% Gruppo utilizzatori Italiani di TeX e LaTeX
%% All rights reserved
%%
%% https://www.guitex.org
%%
%% License information appended
%%
\NeedsTeXFormat{LaTeX2e}[2009/01/01]
\ProvidesClass{guidatematica}%
[2021-04-12 v.2.2.00 Classe simmetrica per comporre testi della
collana Guide Tematiche del GuIT]
\AtBeginDocument{\@ifpackageloaded{hyperref}{\hypersetup{colorlinks,linkcolor={blue},
citecolor={blue!80!black},urlcolor={blue}}}{}}
\newif\ifPAD\PADfalse
\DeclareOption{pad}{\PADtrue\tabletfalse\Aivfalse\Bvfalse\Avfalse}
\newif\iftablet\tabletfalse
\DeclareOption{tablet}{\tablettrue\Aivfalse\Bvfalse\Avfalse\PADfalse}
\newif\ifAiv \Aivfalse
\DeclareOption{a4paper}{\Aivtrue\tabletfalse\Bvfalse\Avfalse\PADfalse}
\newif\ifBv \Bvtrue
\DeclareOption{b5paper}{\Aivfalse\Bvtrue\tabletfalse\Avfalse\PADfalse}
\newif\ifAv \Avfalse
\DeclareOption{a5paper}{\Avtrue\Aivfalse\Bvfalse\tabletfalse\PADfalse}
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{memoir}}
\ProcessOptions*\relax
\LoadClassWithOptions{memoir}
\RequirePackage{iftex}
\ifPDFTeX
\RequirePackage[utf8]{inputenc}
\RequirePackage[T1]{fontenc}
\RequirePackage[greek.ancien,english,italian]{babel}
\RequirePackage[tt={oldstyle=false,tabular,monowidth}]{cfr-lm}
\else
\RequirePackage{fontspec}
\defaultfontfeatures[\rmfamily,\sffamily]{Ligatures=TeX,Numbers=OldStyle}
\defaultfontfeatures[\ttfamily,\tvfamily]{Numbers=Lining}
\setmainfont{Latin Modern Roman}[SmallCapsFont={* Caps}]
\setsansfont{Latin Modern Sans}
\setmonofont{Latin Modern Mono}
\newfontfamily{\tvfamily}{Latin Modern Mono Prop}
\DeclareTextFontCommand{\texttm}{\ttfamily}
\DeclareTextFontCommand{\texttv}{\tvfamily}
\def\textl#1{{\addfontfeature{Numbers=Lining}#1}}
\RequirePackage{unicode-math}
\setmathfont{Latin Modern Math}
\RequirePackage{polyglossia}
\setmainlanguage[babelshorthands]{italian}
% \setotherlanguage{english}
% \setotherlanguage[variant=ancient]{greek}
\ifx\tmspace\@undefined
\newlength{\tmspace}\tmspace=\z@
\fi
\fi
\RequirePackage{graphicx}
\RequirePackage{metalogo}
\RequirePackage{pict2e}[2009/06/01]
\RequirePackage{microtype}
\RequirePackage{etoolbox}
\RequirePackage{xcolor}
% inactivated due to an incompatibility with biblatex
% \RequirePackage{natbib}
\RequirePackage{multicol}
\RequirePackage{imakeidx}
\RequirePackage{fancyvrb}
\RequirePackage{afterpage}
\RequirePackage{enumitem}
\RequirePackage[right]{eurosym}
% duplicated package loading
%\RequirePackage{fancyvrb}
\RequirePackage{listings}
\lstloadlanguages{[LaTeX]TeX}
\normalfont
\ifPAD\setstocksize{160mm}{120mm}\fi
\iftablet\setstocksize{120mm}{90mm}\fi
\ifBv\setstocksize{250mm}{176mm}\fi
\ifAiv\setstocksize{297mm}{210mm}\fi
\ifAv\setstocksize{210mm}{146mm}\fi
\settrims{0pt}{0pt}
\settypeblocksize{\paperwidth}{\dimexpr\paperwidth*\paperwidth/\paperheight}{*}
\setlrmargins{*}{*}{*}
\setulmargins{*}{*}{*}
\setheadfoot{\baselineskip}{2\onelineskip}
\setheaderspaces{*}{\onelineskip}{*}
\setmarginnotes{7pt}{\dimexpr\foremargin-3em}{5pt}
\checkandfixthelayout[nearest]
\def\GetFileInfo#1{%
\def\filename{#1}%
\def\@tempb##1 ##2 ##3\relax##4\relax{%
\def\filedate{##1}%
\def\fileversion{##2}%
\def\fileinfo{##3}}%
\edef\@tempa{\csname ver@#1\endcsname}%
\expandafter\@tempb\@tempa\relax? ? \relax\relax}
\let\@copymark\@empty % Di default è vuoto
\newcommand*\setcopymark[1]{\gdef\@copymark{#1}}
\newcommand*\@insertcopymark{%
\begin{picture}(0,0)\unitlength=1pt\relax
\if@twoside
\ifodd\value{page}
\put(\strip@pt\dimexpr\foremargin/2\relax,\strip@pt\footskip)%
{\rotatebox{90}{\makebox(0,0)[l]{\@copymark}}}
\else
\put(-\strip@pt\dimexpr\foremargin/2\relax,\strip@pt\footskip)%
{\rotatebox{90}{\makebox(0,0)[l]{\@copymark}}}
\fi
\else
\put(\strip@pt\dimexpr\foremargin/2\relax,\strip@pt\footskip)%
{\rotatebox{90}{\makebox(0,0)[l]{\@copymark}}}
\fi
\end{picture}%
}
\def\cblayoutsinistro{%
\dimen256=\dimexpr\headheight+\topmargin+1in-4pt-\paperheight\relax
\dimen258=\dimexpr\evensidemargin+1in\relax
\dimen262=1mm\relax
\dimen260=\dimexpr \paperwidth*\p@/\dimen262\relax
\dimen264=\dimexpr \paperheight-\topmargin-\headheight-1in
-\headsep-\textheight\relax
\begin{picture}(0,0)(\strip@pt\dimen258,-\strip@pt\dimen256)%
\put(0,0){\unitlength=\p@
\put(0,0){\framebox(\strip@pt\paperwidth,\strip@pt\paperheight){}}%
\color{red}%
\put(\strip@pt\dimen258,\strip@pt\dimen264){%
\framebox(\strip@pt\textwidth,\strip@pt\textheight){}}%
\Line(0,0)(\strip@pt\paperwidth,\strip@pt\paperheight)%
\put(\strip@pt\dimexpr\paperwidth/2\relax,%
\strip@pt\dimexpr\dimen264+\textheight/2\relax)%
{\circle{\strip@pt\paperwidth}}%
}
\end{picture}}
\def\cblayoutdestro{%
\dimen256=\dimexpr\headheight+\topmargin+1in-4pt-\paperheight\relax
\dimen258=\dimexpr\oddsidemargin+1in\relax
\dimen262=1mm\relax
\dimen260=\dimexpr \paperwidth*\p@/\dimen262\relax
\dimen264=\dimexpr \paperheight-\topmargin-\headheight-1in
-\headsep-\textheight\relax
\begin{picture}(0,0)(\strip@pt\dimen258,-\strip@pt\dimen256)%
\put(0,0){\unitlength=\p@
\put(0,0){\framebox(\strip@pt\paperwidth,\strip@pt\paperheight){}}%
\color{red}%
\put(\strip@pt\dimen258,\strip@pt\dimen264){%
\framebox(\strip@pt\textwidth,\strip@pt\textheight){}}%
\Line(0,\strip@pt\paperheight)(\strip@pt\paperwidth,0)%
\put(\strip@pt\dimexpr\paperwidth/2\relax,%
\strip@pt\dimexpr\dimen264+\textheight/2\relax)%
{\circle{\strip@pt\paperwidth}}%
}
\end{picture}}
\providecommand*\Ars{%
\textsf{\lower -.48ex\hbox{\rotatebox{-20}{A}}\kern -.3em{rs}}\hskip0pt%
\kern -.05em\TeX\hskip0pt\kern -.17em\lower -.357ex\hbox{nica}}
\providecommand\@@title{\ClassError{guidatematica}{\MessageBreak%
I comandi per la pagina del titolo\MessageBreak
vanno dati dopo \string\begin{document}}%
{Premi S <return>, ma aspettati messaggi d'errore}}
\AtBeginDocument{\let\originaltitle\title
\renewcommand\title[1]{%
\def\@@title{{\let\\\ \normalfont\normalsize#1}}\originaltitle{#1}}
\let\originalauthor\author
\renewcommand\author[2][\Large]{\def\@@author{#2}\originalauthor{{#1#2}}}
\def\@@Copyright{}
\DeclareRobustCommand\Copyright[1]{\edef\@@Copyright{#1}}
\let\originalmaketitle\maketitle
\renewcommand\maketitle{\frontmatter*\originalmaketitle
\contribguit}}
\let\@licenza\voidbox
\newcommand\licenza[1]{\long\gdef\@licenza{#1}}
\newcommand{\contribguit}{\newpage
\thispagestyle{empty}
\noindent{\Large
Associati anche tu al \GuIT
\hfill
\setlength{\unitlength}{1mm}
\begin{picture}(50,2)
\setlength{\fboxsep}{0pt}
\put(1,-3){\colorbox{gray}{\framebox(50,6.5){}}}
\put(0,-2){\colorbox{white}{\framebox(50,6.5){%
\href{https://www.guitex.org/home/it/diventa-socio/associarsi-a-guit}{%
Fai click per associarti}}}}
\end{picture}%
}
\bigskip
L'associazione per la diffusione di \TeX\ in Italia, riconosciuta
ufficialmente in ambito internazionale, si sostiene \emph{unicamente}
con le quote sociali.
Se anche tu trovi che questa guida tematica gratuita ti sia stata utile,
il mezzo principale per ringraziare gli autori è diventare socio.
\medskip
Divenendo soci si ricevono gratuitamente:
\begin{itemize}
\item
l'abbonamento alla rivista \Ars;
\item
il DVD \TeX\ Collection;
\item
un eventuale oggetto legato alle attività del \GuIT.
\end{itemize}
L'adesione al \GuIT\ prevede un quota associativa compresa tra \EUR{12,00}
e \EUR{70,00} a seconda della tipologia di adesione prescelta e ha
validità per l'anno solare in corso.
\vspace{\stretch{1}}
\providecommand\authorspace{ }
{\parindent=\z@\let\authorspace\ %
\ifx\@licenza\voidbox
\noindent\@@title\\
Copyright \textcopyright\ \ifcsvoid{@@Copyright}{\the\year}{\@@Copyright}, %
\@@author\\[\baselineskip]
Questa documentazione è soggetta alla licenza LPPL (\LaTeX\ Project
Public Licence), versione 1.3 o successive; il testo della licenza è
sempre contenuto in qualunque distribuzione del sistema \TeX\ e nel
sito \url{http://www.latex-project.org/lppl.txt}.\\[\baselineskip]
Questo documento è curato da \@@author.
\else
\@licenza
\fi\par}
\newpage
}
\nouppercaseheads
\renewcommand{\footruleskip}{0pt}
\makeheadrule{headings}{\textwidth}{0pt}
\makeheadrule{myheadings}{\textwidth}{0pt}
\makeevenfoot{plain}{\@insertcopymark}{\textsc{\thepage}}{}
\makeoddfoot{plain}{}{\textsc{\thepage}}{\@insertcopymark}
\makeevenfoot{headings}{\@insertcopymark}{\textsc{\thepage}}{}
\makeoddfoot{headings}{}{\textsc{\thepage}}{\@insertcopymark}
\makeevenfoot{myheadings}{\@insertcopymark}{\textsc{\thepage}}{}
\makeoddfoot{myheadings}{}{\textsc{\thepage}}{\@insertcopymark}
\makeevenhead{headings}{}{\textsc{\small\leftmark}}{}
\makeoddhead{headings}{}{\textsc{\small\rightmark}}{}
\makeevenhead{myheadings}{}{\textsc{\small\leftmark}}{}
\makeoddhead{myheadings}{}{\textsc{\small\rightmark}}{}
\makepsmarks{headings}{%
\createmark{chapter}{both}{shownumber}{\@chapapp\space}{.\qquad}
\createmark{section}{right}{shownumber}{$\mathsection$\,}{\qquad}
\renewcommand*\indexmark{\markboth{\indexname}{\indexname}}}
\makepagestyle{headingslayout}
\makeevenhead{headingslayout}{\cblayoutsinistro}{\textsc{\small\leftmark}}{}
\makeevenfoot{headingslayout}{\@insertcopymark}{\textsc{\thepage}}{}
\makeoddhead{headingslayout}{\cblayoutdestro}{\textsc{\small\rightmark}}{}
\makeoddfoot{headingslayout}{}{\textsc{\thepage}}{\@insertcopymark}
\makechapterstyle{guidatematica}{%
\renewcommand*{\chapnumfont}{%
\fontshape{it}\fontsize{40}{40}\selectfont}
\renewcommand*{\printchaptername}{}
\renewcommand*{\chapternamenum}{}
\renewcommand*{\chaptitlefont}{%
\fontsize{18}{16}\scshape}% sterlineato
\renewcommand{\printchapternum}{%
\noindent\rlap{\makebox[\textwidth][r]{%
\rlap{\makebox[\foremargin][l]{%
\chapnumfont \thechapter}}}}\printchaptertitle}
\renewcommand*{\afterchapternum}{}
}
\AtBeginDocument{\chapterstyle{guidatematica}}
\renewcommand*\partnamefont{\normalfont\large\scshape}
\renewcommand*\partnumfont{\normalfont\large\scshape}
\renewcommand*\parttitlefont{\normalfont\huge\scshape}
\setbeforesecskip{-3.5ex plus-1ex minus-0.2ex}
\setbeforesubsecskip{-3ex plus-1ex minus-0.2ex}
\setbeforesubsubsecskip{-2.5ex plus-1ex minus-0.2ex}
\setbeforeparaskip{1\onelineskip plus1ex minus0.2ex}
\setbeforesubparaskip{1\onelineskip plus1ex minus0.2ex}
\setaftersecskip{1.5ex plus0.2ex}
\setaftersubsecskip{1.5ex plus0.2ex}
\setaftersubsubsecskip{1.5ex plus0.2ex}
\setafterparaskip{-1em}
\setaftersubparaskip{-1em}
\setsubparaindent{\parindent}
\setsecheadstyle{\large\scshape\raggedright}
\setsubsecheadstyle{\large\scshape\raggedright}
\setsubsubsecheadstyle{\large\scshape\raggedright}
\setparaheadstyle{\small\scshape}
\setsubparaheadstyle{\small\scshape}
\aliaspagestyle{part}{empty}
\aliaspagestyle{chapter}{empty}
\copypagestyle{titlepage}{headings}
\renewcommand\cftpartpagefont{\scshape}
\renewcommand\cftpartfont{\large\scshape}
\renewcommand\cftchapterfont{\large\scshape}
\renewcommand\cftchapterpagefont{\scshape}
\renewcommand*{\cftchapterfillnum}[1]{%
{\cftchapterleader}\nobreak
\cftchapterformatpnum{#1}%
\cftchapterafterpnum\par\nobreak}
\setlength{\cftbeforechapterskip}{1.0em \@plus 2\p@}
\setlength{\cftfigurenumwidth}{2.5em}
\captiondelim{\quad}
\captionnamefont{\small\scshape}
\captiontitlefont{\small}
\captionstyle[\centering]{}
\hangcaption
\captionwidth{\dimexpr\textwidth-2\parindent\relax}\changecaptionwidth
\renewcommand\descriptionlabel[1]{\hspace\labelsep\normalfont\scshape #1}
\renewcommand\blockdescriptionlabel[1]{\normalfont\scshape #1}
\providecommand\plaindescriptionlabel[1]{\hspace\labelsep\normalfont #1}
\renewlist{blockdescription}{description}{1}
\setlist[blockdescription]{before={\let\makelabel\blockdescriptionlabel},
leftmargin=\z@,labelsep*=0.5em,labelindent=\z@,labelwidth=\z@}
\newlist{plaindescription}{description}{1}
\setlist[plaindescription]{before={\let\makelabel\plaindescriptionlabel}}
\newlist{compactenumerate}{enumerate}{1}
\setlist[compactenumerate,1]{label=\arabic*.,
noitemsep, partopsep=\z@, topsep=.25\onelineskip}
\newlist{compactitemize}{itemize}{4}
\setlist[compactitemize]{label=•,
noitemsep,partopsep=\z@,topsep=.25\onelineskip}
\newlist{compactdescription}{description}{1}
\setlist[compactdescription]{%
style=sameline,noitemsep,partopsep=\z@,topsep=.25\onelineskip}
\newcommand*\cambiacorpo[2][1.2]{\bgroup\dimen@=#2\p@\dimen@=#1\dimen@
\edef\x{\noexpand\egroup\noexpand\fontsize{#2}{\strip@pt\dimen@}}\x\selectfont}
\let\setfontsize\cambiacorpo
\AtBeginDocument{\setsecnumdepth{subsection}
\settocdepth{subsection}\maxsecnumdepth{subsection}
\maxtocdepth{subsection}}
\unless\ifcsname virgoladecimale\endcsname
\unless\ifPDFTeX% non pdflatex
\AtEndPreamble{\ifcsstring{xpg@main@language}{english}{\relax}{%
\mathcode`\,=\string"8000}%
\DeclareMathSymbol{\virgola}{\mathpunct}{letters}{"3B}%
\DeclareMathSymbol{\virgoladecimale}{\mathord}{letters}{"3B}%
}
\else% pdflatex
\AtEndPreamble{\ifcsstring{languagename}{english}{\relax}{%
\mathcode`\,=\string"8000}}
\fi
{\catcode `,=\active \gdef,{\futurelet\let@token\m@thcomma}}%
\AtEndPreamble{%
\unless\ifcsname m@thcomma\endcsname\providecommand\m@thcomma{}\fi
\renewcommand\m@thcomma[1]{%
\unless\ifcat\noexpand\let@token*%
\virgola
\else
\edef\tempA{\expandafter\@gobble\string#1}%
\ifx\tempA\@empty
\virgoladecimale
\else
\virgola
\fi
\fi#1%
}%
}%
\fi
\AtEndPreamble{%
\providecommand\IntelligentComma{}
\providecommand\NoIntelligentComma{}
\renewcommand\IntelligentComma{\mathcode`\,=\string"8000}
\renewcommand\NoIntelligentComma{\mathcode`\,=\string"613B}
}
\let\imki@idxprologue\empty
\def\imki@columns{2}
\renewenvironment{theindex}
{%
\clearforchapter
\csname phantomsection\endcsname
\chapter{\indexname}%
\indexmark%
\parindent\z@
\parskip\z@ \@plus .3\p@\relax
\let\item\@idxitem
\begin{multicols}{\imki@columns}[\imki@idxprologue]
\raggedright
}
{%
\end{multicols}\gdef\imki@idxprologue{}\clearpage
}
% inactiveted due to incompatibility with biblatex
%\AtBeginDocument{\bibliographystyle{guidatematica}}%
\unless\ifPDFTeX
\ifcsstring{xpg@main@language}{italian}%
{\csgappto{init@extras@italian}{\nofrench@indent}}{}%
\fi
\newenvironment{titlepage}{\clearpage
\pagestyle{titlepage}
\makeoddhead{titlepage}{}{\smash{{\Large\scshape\@author}}}{}
\makeoddfoot{titlepage}{}{\smash{{\large\scshape\@date}}}{}
}{\clearpage}
\providecommand\subtitle[1]{\gdef\@subtitle{#1}}
\let\@subtitle\empty
\renewcommand\maketitle{
\begin{titlepage}
\vspace*{\stretch{.7}}
{\centering\LARGE\scshape\@title\par}
\ifdefvoid{\@subtitle}{}{\vspace{2\onelineskip}
{\centering\scshape\Large\@subtitle\par}}
\vspace{\stretch{.7}}
{\centering\resizebox{0.23\textwidth}{!}{\logoguittondo}\par}
\vspace*{\stretch{.7}}
\end{titlepage}
}
\newenvironment{medaglione}[1][\linewidth]{%
\begin{lrbox}{0}%
\begin{minipage}{\dimexpr#1-2\fboxsep-2\fboxrule}
}{%
\end{minipage}\end{lrbox}\fbox{\usebox{0}}\relax
}
\newenvironment{sintassi}{\flushleft\medaglione}%
{\endmedaglione\endflushleft}
\newcommand*\hz{\nobreak\hskip\z@}
\renewcommand*\meta[1]{\textnormal{$\langle$\textit{\hz#1}$\rangle$}}
\renewcommand*\marg[1]%
{\textnormal{\texttt{\char123}\meta{#1}\texttt{\char125}}}
\renewcommand*\oarg[1]{\textnormal{\texttt{[}\meta{#1}\texttt{]}}}
\newcommand*\Arg[1]{\textnormal{\texttt{\{#1\}}}}
\let\Marg\Arg
\newcommand*\Oarg[1]{\textnormal{\texttt{[#1]}}}
\def\GT@splitargs#1,#2!{\def\@tempA{#1}\def\@tempB{#2}}
\newcommand\garg[1]{\textnormal{\GT@splitargs#1!\texttt{(}\meta{\@tempA}%
\texttt{,}\meta{\@tempB}\texttt{)}}}
\newcommand*\comando[1]{\textnormal{\texttt{\string#1}}}
\renewcommand*{\cs}[1]%
{\textnormal{\texttt{\char92#1}\index{#1@\texttt{\char92#1}|textsc}}}
\let\csindex\cs
\newcommand*\Sambiente[2]{\comando{\begin}\marg{#1}\oarg{#2}\,\dots
\comando{\end}\marg{#1}}
\newcommand*\Dambiente[3]{%
\comando{\begin}\marg{#1}\oarg{#2}\oarg{#3}\,\dots
\comando{\end}\marg{#1}}
\newcommand*\Bambiente[1]{\comando{\begin}\Marg{#1}}
\newcommand*\Eambiente[1]{\comando{\end}\Marg{#1}}
\DeclareRobustCommand*\ambstyle[1]{{\normalfont\textsf{\slshape#1}}}
\DeclareRobustCommand*\classstyle[1]{{\normalfont\texttv{\itshape#1}}}
\DeclareRobustCommand*\filestyle[1]{{\normalfont\texttm{\textl{#1}}}}
\DeclareRobustCommand*\packstyle[1]{{\normalfont
\texttm{\ifbool{PDFTeX}{\textl}{\itshape}{#1}}}}
\DeclareRobustCommand*\progstyle[1]{{\normalfont\textsf{#1}}}
\DeclareRobustCommand*\prog[1]{\progstyle{#1}%
\index{programma!#1@\progstyle{#1}|textsc}}
\DeclareRobustCommand*\pack[1]{\packstyle{#1}%
\index{pacchetto!#1@\packstyle{#1}|textsc}}
\DeclareRobustCommand*\class[1]{\classstyle{#1}%
\index{classe!#1@\classstyle{#1}|textsc}}
\DeclareRobustCommand*\file[1]{\filestyle{#1}%
\index{file!#1@\filestyle{#1}|textsc}}
\DeclareRobustCommand*\amb[1]{\ambstyle{#1}%
\index{ambiente!#1@\ambstyle{#1}|textsc}}
\DeclareRobustCommand*\opzstyle[1]{{\normalfont\textsl{\textl{#1}}}}
\DeclareRobustCommand*\contastyle[1]{{\normalfont\texttm{#1}}}
\DeclareRobustCommand*\stilestyle[1]{{\normalfont\texttm{#1}}}
\DeclareRobustCommand*\numeristyle[1]{{\normalfont\texttm{#1}}}
\DeclareRobustCommand*\umisurastyle[1]{{\normalfont\texttm{#1}}}
\DeclareRobustCommand*\chiavestyle[1]{{\normalfont\texttm{#1}}}
\DeclareRobustCommand*\descrittorestyle[1]{{\normalfont\texttm{#1}}}
\DeclareRobustCommand*\posizionestyle[1]{{\normalfont\texttm{#1}}}
\DeclareRobustCommand*\allineamentostyle[1]{{\normalfont\texttm{#1}}}
\DeclareRobustCommand*\opz[1]{\opzstyle{#1}%
\index{opzione!#1@\opzstyle{#1}|textsc}}
\DeclareRobustCommand*\conta[1]{\contastyle{#1}%
\index{contatore!#1@\contastyle{#1}|textsc}}
\DeclareRobustCommand*\stile[1]{\stilestyle{#1}%
\index{stile della pagina!#1@\stilestyle{#1}}}
\DeclareRobustCommand*\numeri[1]{\numeristyle{#1}%
\index{numerazione!#1@\numeristyle{#1}|textsc}}
\DeclareRobustCommand*\umisura[1]{\umisurastyle{#1}%
\index{unit\`a di misura!#1@\umisurastyle{#1}|textsc}}
\DeclareRobustCommand*\chiave[1]{\chiavestyle{#1}%
\index{chiave!#1@\chiavestyle{#1}|textsc}}
\DeclareRobustCommand*\descrittore[1]{\descrittorestyle{#1}%
\index{descrittore di colonna!#1@\descrittorestyle{#1}|textsc}}
\DeclareRobustCommand*\posizione[1]{\posizionestyle{#1}%
\index{posizione degli oggetti flottanti!#1@\posizionestyle{#1}|textsc}}
\DeclareRobustCommand*\allineamento[1]{\allineamentostyle{#1}%
\index{codice di allineamento!#1@\allineamentostyle{#1}|textsc}}
\definecolor{verdeguit}{rgb}{0, 0.40, 0}
\def\GuIT{\mbox{\color{verdeguit}%
\ifPDFTeX\usefont{T1}{lmr}{m}{sc}%
g\raisebox{-0.715ex}{\kern-0.26em u}\kern-0.13em
\textcolor{black}{I}\kern-0.14em t%
\else\usefont{TU}{lmr}{m}{sc}%
g\raisebox{-0.60ex}{\kern-0.285em u}\kern-0.14em
\textcolor{black}{I}\kern-0.14em t%
\fi}}
\usepackage{tikz}
\usetikzlibrary{decorations.text}
\def\logoguittondo{\begin{tikzpicture}[x=1.65em,y=1.65em]\small
\draw (0,-0.15) node [circle] {\Huge\GuIT};
\path[decorate,decoration={text along path, text={Gruppo Utilizzatori}}]
(-1.5,0) .. controls (-1.5,2) and (1.5,2) .. (1.5,0);
\path[decorate,decoration={text along path, text={{\kern.25em}{$\star$}
{$\star$} Italiani di {\TeX} {$\star$} {$\star$}}}]
(-1.8,0) .. controls (-1.8,-2.4) and (1.8,-2.4) .. (1.8,0);
\end{tikzpicture}
}
\NewDocumentCommand\LRmarginpar{s m}{% per le note marginali
\marginparmargin{inner}%
\marginpar[\raggedleft#2]{\raggedright#2}%
}
\newbox\colormarginbox
\definecolor{sfondo}{rgb}{1,1,1}
\definecolor{bordo}{rgb}{1,1,1}
\newdimen\dimadjust
\newcommand{\fntsz}{\scriptsize}
\NewDocumentCommand\marginframe{m m m}{%
\setbox\colormarginbox\hbox{\fboxsep=0pt\fboxrule=0pt
\colorbox{#2}{\parbox[t]{\marginparwidth}{\fntsz #1}}}%
{\arrayrulewidth=1pt
{\color{#3}\tabular[t]{@{}c@{}}
\hline
\colorbox{#2}{\box\colormarginbox}\\
\hline
\endtabular}%
}%
}
\directlua{globdata = {} }
\NewDocumentCommand\CLRmarginpar{m O{false} O{sfondo} O{bordo}}{% per note marginali
\directlua{
local flag = #2; if flag then
tex.dimen['dimadjust'] = 65536*16
globdata.flag = true
end
}\marginparmargin{inner}
\marginpar[\vspace*{\dimadjust}\hbox{\kern-6pt\marginframe{\raggedright#1}{#3}{#4}}]%
{\vspace*{\dimadjust}\hbox{\marginframe{\raggedright#1}{#3}{#4}}}\directlua{
if globdata.flag then
tex.dimen['dimadjust'] = 0
globdata.flag = false
end
}}
\newenvironment{pdfxmetadata}{%
\VerbatimOut{\jobname.xmpdata}}{\endVerbatimOut}
%% ƒ
%% Copyright 2012, 2013-2020 GuIT,
%% Gruppo utilizzatori Italiani di TeX e LaTeX
%%
%% Distributable under the LaTeX Project Public License,
%% version 1.3c or higher (your choice). The latest version of
%% this license is at: http://www.latex-project.org/lppl.txt
%%
%% This Work has the status of `maintained'
%%
%% The Current Maintainer is the GuIT staff
%%
%% This work consists of this file guidatematica.dtx,
%% and the derived files guidatematica.cls and guidatematica.pdf
%% plus the associated documentation guidatematica-doc.tex
%% and guidatematica-doc.pdf.
%%
%%
%% End of file `guidatematica.cls'.