| 1 |
%% start of file `old-arrows-italian.tex'. |
| 2 |
%% Copyright 2015-2017 Riccardo Dossena ([email protected]). |
| 3 |
% |
| 4 |
% This work may be distributed and/or modified under the |
| 5 |
% conditions of the LaTeX Project Public License version 1.3c, |
| 6 |
% available at http://www.latex-project.org/lppl/. |
| 7 |
%% |
| 8 |
\documentclass[11pt,a4paper]{ltxdoc} |
| 9 |
|
| 10 |
\usepackage[utf8]{inputenc} |
| 11 |
\usepackage[english,italian]{babel} |
| 12 |
\usepackage{lmodern} |
| 13 |
\usepackage[T1]{fontenc} |
| 14 |
\usepackage{amsmath,amssymb,amsthm} |
| 15 |
\usepackage[shortlabels]{enumitem} |
| 16 |
\usepackage{stmaryrd} |
| 17 |
\usepackage{mathtools} |
| 18 |
\usepackage[new]{old-arrows} |
| 19 |
\usepackage[hmargin=3.3cm,vmargin=2.5cm,footskip=30pt]{geometry} |
| 20 |
\usepackage[colorlinks=true]{hyperref} |
| 21 |
\usepackage[all]{hypcap} % needed to help hyperlinks direct correctly; |
| 22 |
\usepackage[chicago]{ellipsis} |
| 23 |
|
| 24 |
\def\fileversion{2.0} |
| 25 |
\def\filedate{5 gennaio 2017} |
| 26 |
|
| 27 |
%Logo per MiKTeX e TeXLive |
| 28 |
\newcommand{\MiKTeX}{MiK\TeX} |
| 29 |
\newcommand{\TeXLive}{\mbox{\TeX\ Live}} |
| 30 |
% |
| 31 |
% |
| 32 |
% Symbol Entry for Math Symbol Tables |
| 33 |
% |
| 34 |
\newcommand{\X}[1]{$#1$&\texttt{\string#1}\hspace*{1ex}} |
| 35 |
|
| 36 |
\newcommand{\W}[2]{$#1{#2}$& |
| 37 |
\texttt{\string#1}\texttt{\string{\string#2\string}}\hspace*{1ex}} |
| 38 |
|
| 39 |
\theoremstyle{remark} |
| 40 |
\newtheorem*{nota}{Nota} |
| 41 |
|
| 42 |
% Mathsymbol Table |
| 43 |
\newsavebox{\symbbox} |
| 44 |
\newenvironment{symbols}[1]% |
| 45 |
{\par\vspace*{2ex} |
| 46 |
\renewcommand{\arraystretch}{1.1} |
| 47 |
\begin{lrbox}{\symbbox} |
| 48 |
\hspace*{4ex}\begin{tabular}{@{}#1@{}}}% |
| 49 |
{\end{tabular}\end{lrbox}\makebox[\textwidth]{\usebox{\symbbox}}\par\medskip} |
| 50 |
|
| 51 |
%Per l'esempio senza amsmath |
| 52 |
\makeatletter |
| 53 |
\def\overrightfreccia#1{\vbox{\m@th\ialign{##\crcr |
| 54 |
\rightfrecciafill\crcr\noalign{\kern-\p@\nointerlineskip} |
| 55 |
$\hfil\displaystyle{#1}\hfil$\crcr}}} |
| 56 |
\def\overleftfreccia#1{\vbox{\m@th\ialign{##\crcr |
| 57 |
\leftfrecciafill\crcr\noalign{\kern-\p@\nointerlineskip}% |
| 58 |
$\hfil\displaystyle{#1}\hfil$\crcr}}} |
| 59 |
\def\varoverrightfreccia#1{\vbox{\m@th\ialign{##\crcr |
| 60 |
\varrightfrecciafill\crcr\noalign{\kern-\p@\nointerlineskip} |
| 61 |
$\hfil\displaystyle{#1}\hfil$\crcr}}} |
| 62 |
\def\varoverleftfreccia#1{\vbox{\m@th\ialign{##\crcr |
| 63 |
\varleftfrecciafill\crcr\noalign{\kern-\p@\nointerlineskip}% |
| 64 |
$\hfil\displaystyle{#1}\hfil$\crcr}}} |
| 65 |
\def\rightfrecciafill{$\m@th\smash\meno\mkern-7mu% |
| 66 |
\cleaders\hbox{$\mkern-2mu\smash\meno\mkern-2mu$}\hfill |
| 67 |
\mkern-7mu\mathord\rightarrow$} |
| 68 |
\def\leftfrecciafill{$\m@th\mathord\leftarrow\mkern-7mu% |
| 69 |
\cleaders\hbox{$\mkern-2mu\smash\meno\mkern-2mu$}\hfill |
| 70 |
\mkern-7mu\smash\meno$} |
| 71 |
\def\varrightfrecciafill{$\m@th\smash-\mkern-7mu% |
| 72 |
\cleaders\hbox{$\mkern-2mu\smash-\mkern-2mu$}\hfill |
| 73 |
\mkern-7mu\mathord\varrightarrow$} |
| 74 |
\def\varleftfrecciafill{$\m@th\mathord\varleftarrow\mkern-7mu% |
| 75 |
\cleaders\hbox{$\mkern-2mu\smash-\mkern-2mu$}\hfill |
| 76 |
\mkern-7mu\smash-$} |
| 77 |
\makeatother |
| 78 |
|
| 79 |
\begin{document} |
| 80 |
|
| 81 |
\title{Il pacchetto \textsf{old-arrows}} |
| 82 |
\author{Riccardo Dossena\thanks{% |
| 83 |
E-mail: \href{mailto:[email protected]}{\tt [email protected]}}} |
| 84 |
\date{Versione \fileversion, \filedate} |
| 85 |
|
| 86 |
\frenchspacing |
| 87 |
|
| 88 |
\maketitle |
| 89 |
|
| 90 |
\begin{abstract} |
| 91 |
Questo pacchetto rende disponibili le frecce Computer Modern vecchio stile~($\rightarrow$), con una punta |
| 92 |
più stretta, associandole agli usuali comandi \LaTeX. Può essere usato in un documento che prevede altri |
| 93 |
tipi di frecce definite dal pacchetto \texttt{amssymb}, come $\twoheadrightarrow$, che similmente |
| 94 |
presentano una punta stretta. È possibile usare le frecce Computer Modern nuovo stile ($\varrightarrow$) |
| 95 |
insieme a quelle vecchio stile. |
| 96 |
\end{abstract} |
| 97 |
|
| 98 |
\tableofcontents |
| 99 |
|
| 100 |
\section{Introduzione} |
| 101 |
|
| 102 |
Nel 1992 Donald E. Knuth introdusse diverse correzioni significative ai font |
| 103 |
\foreignlanguage{english}{Computer Modern}\footnote{Vedi |
| 104 |
\url{http://www-cs-faculty.stanford.edu/~uno/cm.html}}. In seguito a tali aggiustamenti, i caratteri |
| 105 |
corrispondenti alle frecce risultarono modificati. Per intenderci, da |
| 106 |
\[ |
| 107 |
A \to B |
| 108 |
\] |
| 109 |
si era passati a |
| 110 |
\[ |
| 111 |
A \varto B |
| 112 |
\] |
| 113 |
cioè il carattere $\to$ era stato sostituito da $\varto$, che presenta una punta più larga. Lo stesso |
| 114 |
avvenne per altri caratteri affini. Tuttavia, molti altri caratteri definiti da \texttt{amssymb}, come |
| 115 |
$\nrightarrow$, $\rightarrowtail$, $\twoheadrightarrow$ e altri ancora, hanno mantenuto una punta piccola e |
| 116 |
appaiono molto dissimili da $\varto$. |
| 117 |
|
| 118 |
Il pacchetto \texttt{old-arrows}, con la famiglia di font Old Arrows, consente di usare le frecce vecchio |
| 119 |
stile ($\to$, $\gets$, \ldots) associandole ai comandi tradizionali (\verb|\rightarrow|, \verb|\leftarrow|, |
| 120 |
\ldots). Inoltre, le opzioni \texttt{new} e \texttt{old} permettono di ottenere le frecce nuovo stile |
| 121 |
($\varto$, $\vargets$, \ldots) insieme a quelle vecchio stile, semplicemente anteponendo \verb|\var| ai |
| 122 |
comandi corrispondenti (\verb|\varrightarrow|, \verb|\varleftarrow|, \ldots)\footnote{Vedi le sezioni |
| 123 |
\ref{sec:new} e \ref{sec:old}.}. |
| 124 |
|
| 125 |
La famiglia di font Old Arrows deriva da una vecchia versione dei \foreignlanguage{english}{Blue Sky |
| 126 |
Computer Modern Math Symbols} (1991-1992, rilasciati da AMS) tramite la cancellazione con FontForge di |
| 127 |
diversi caratteri. |
| 128 |
|
| 129 |
\section{Licenze} |
| 130 |
|
| 131 |
Il codice \LaTeX\ di questo pacchetto è rilasciato sotto la \LaTeX\ Project Public License, v1.3. |
| 132 |
|
| 133 |
I font di questo pacchetto sono rilasciati sotto la SIL Open Font License, v1.1. |
| 134 |
|
| 135 |
\section{Installazione} |
| 136 |
|
| 137 |
Il pacchetto \texttt{old-arrows} è contenuto nelle distribuzioni \MiKTeX\ e \TeXLive\ più recenti. Tuttavia, |
| 138 |
se si vuole procedere all'installazione manuale, seguire le indicazioni fornite di seguito. |
| 139 |
|
| 140 |
\subsection{Copiare i file nell'albero locale del sistema \TeX} |
| 141 |
|
| 142 |
I file della famiglia Old Arrows sono: |
| 143 |
|
| 144 |
\begin{center} |
| 145 |
\begin{tabular}{p{3cm}p{3cm}p{3cm}l} |
| 146 |
\hline |
| 147 |
\texttt{oasy5.afm} & \texttt{oasy5.pfm} & \texttt{oasy5.tfm} & \texttt{oasy5.pfb} \\ |
| 148 |
\texttt{oasy6.afm} & \texttt{oasy6.pfm} & \texttt{oasy6.tfm} & \texttt{oasy6.pfb} \\ |
| 149 |
\texttt{oasy7.afm} & \texttt{oasy7.pfm} & \texttt{oasy7.tfm} & \texttt{oasy7.pfb} \\ |
| 150 |
\texttt{oasy8.afm} & \texttt{oasy8.pfm} & \texttt{oasy8.tfm} & \texttt{oasy8.pfb} \\ |
| 151 |
\texttt{oasy9.afm} & \texttt{oasy9.pfm} & \texttt{oasy9.tfm} & \texttt{oasy9.pfb} \\ |
| 152 |
\texttt{oasy10.afm} & \texttt{oasy10.pfm} & \texttt{oasy10.tfm} & \texttt{oasy10.pfb} \\ |
| 153 |
\texttt{oabsy5.afm} & \texttt{oabsy5.pfm} & \texttt{oabsy5.tfm} & \texttt{oabsy5.pfb} \\ |
| 154 |
& & \texttt{oabsy6.tfm} & \\ |
| 155 |
\texttt{oabsy7.afm} & \texttt{oabsy7.pfm} & \texttt{oabsy7.tfm} & \texttt{oabsy7.pfb} \\ |
| 156 |
& & \texttt{oabsy8.tfm} & \\ |
| 157 |
& & \texttt{oabsy9.tfm} & \\ |
| 158 |
\texttt{oabsy10.afm} & \texttt{oabsy10.pfm} & \texttt{oabsy10.tfm} & \texttt{oabsy10.pfb} \\ |
| 159 |
\hline |
| 160 |
\end{tabular} |
| 161 |
\end{center} |
| 162 |
|
| 163 |
Questi file derivano dai font \texttt{cmbsy5}, \texttt{cmbsy7}, \texttt{cmbsy10}, \texttt{cmsy5}, |
| 164 |
\texttt{cmsy7}, \texttt{cmsy8}, \texttt{cmsy9} e \texttt{cmsy10} della famiglia Computer Modern. |
| 165 |
|
| 166 |
Indichiamo con \texttt{<localtexmf>} la radice dell'albero locale del proprio sistema \TeX. Nelle |
| 167 |
distribuzioni \TeXLive\ si trova in genere in \texttt{/usr/local/texlive/texmf-local}; nella distribuzione |
| 168 |
\MiKTeX\ può essere invece impostata in qualsiasi directory, attraverso la scheda \textsf{Roots} delle |
| 169 |
``\MiKTeX\ Options''. |
| 170 |
|
| 171 |
\begin{enumerate} |
| 172 |
\item Copiare i file \texttt{*.afm} e \texttt{*.tfm} nelle corrispondenti directory \texttt{old-arrows} |
| 173 |
(che devono essere create, come mostrato di seguito): |
| 174 |
\begin{verbatim} |
| 175 |
<localtexmf>/fonts/afm/old-arrows |
| 176 |
<localtexmf>/fonts/tfm/old-arrows |
| 177 |
\end{verbatim} |
| 178 |
|
| 179 |
\item Copiare i file \texttt{*.pfb} e \texttt{*.pfm} nella directory |
| 180 |
\begin{verbatim} |
| 181 |
<localtexmf>/fonts/type1/old-arrows |
| 182 |
\end{verbatim} |
| 183 |
|
| 184 |
\item Copiare i file \texttt{oasy.enc} e \texttt{oasy.map}, rispettivamente, nelle directory |
| 185 |
\begin{verbatim} |
| 186 |
<localtexmf>/fonts/enc/dvips/old-arrows |
| 187 |
<localtexmf>/fonts/map/dvips/old-arrows |
| 188 |
\end{verbatim} |
| 189 |
|
| 190 |
\item Copiare il file \texttt{old-arrows.sty} nella directory |
| 191 |
\begin{verbatim} |
| 192 |
<localtexmf>/tex/latex/old-arrows |
| 193 |
\end{verbatim} |
| 194 |
\end{enumerate} |
| 195 |
|
| 196 |
\subsection{Aggiornare il database dei nomi dei file}\label{agg-database-file} |
| 197 |
|
| 198 |
\begin{description}[font=\bfseries\sffamily, leftmargin=5em, style=sameline] |
| 199 |
\item[\MiKTeX] Nella scheda \textsf{General} delle ``MiKTeX Options (Admin)'' cliccare sul pulsante |
| 200 |
\textsf{Refresh~FNDB}. In alternativa, eseguire dalla linea di comando DOS |
| 201 |
\begin{verbatim} |
| 202 |
initexmf --update-fndb |
| 203 |
\end{verbatim} |
| 204 |
|
| 205 |
\item[\TeXLive] Avviare il ``\TeXLive\ Manager''. Dal menu \textsf{Actions} selezionare |
| 206 |
\foreignlanguage{english}{\textsf{Update filename database}}. In alternativa, eseguire dalla linea di |
| 207 |
comando di un terminale |
| 208 |
\begin{verbatim} |
| 209 |
mktexlsr |
| 210 |
\end{verbatim} |
| 211 |
\end{description} |
| 212 |
|
| 213 |
\subsection{Aggiornare i font map file} |
| 214 |
|
| 215 |
\begin{description}[font=\bfseries\sffamily, leftmargin=5em, style=sameline] |
| 216 |
\item[\MiKTeX] |
| 217 |
Per aggiornare il file di configurazione \texttt{updmap.cfg}, eseguire dalla linea di comando DOS |
| 218 |
\begin{verbatim} |
| 219 |
initexmf --edit-config-file updmap |
| 220 |
\end{verbatim} |
| 221 |
aggiungere al file \texttt{updmap.cfg} (che verrà aperto) la seguente linea |
| 222 |
\begin{verbatim} |
| 223 |
Map oasy.map |
| 224 |
\end{verbatim} |
| 225 |
salvare, chiudere ed eseguire (sempre dalla linea di comando DOS) |
| 226 |
\begin{verbatim} |
| 227 |
initexmf --mkmaps |
| 228 |
\end{verbatim} |
| 229 |
|
| 230 |
\item[\TeXLive] |
| 231 |
Eseguire dalla linea di comando del terminale |
| 232 |
\begin{verbatim} |
| 233 |
updmap-sys --enable Map=oasy.map |
| 234 |
\end{verbatim} |
| 235 |
\end{description} |
| 236 |
È possibile che a questo punto si renda necessario un nuovo aggiornamento del database dei nomi dei file |
| 237 |
(vedi~\ref{agg-database-file}). Eseguirlo in ogni caso per sicurezza. |
| 238 |
|
| 239 |
\section{Come usare il pacchetto \textsf{old-arrows}} |
| 240 |
|
| 241 |
\subsection{Uso di base} |
| 242 |
|
| 243 |
È sufficiente scrivere nel preambolo del proprio documento \LaTeX\ |
| 244 |
\begin{verbatim} |
| 245 |
\usepackage{old-arrows} |
| 246 |
\end{verbatim} |
| 247 |
e tutti i comandi relativi alle frecce verranno associati al ``vecchio stile'', come riportato nella |
| 248 |
tabella~\ref{tab-frecce-vecchie}. |
| 249 |
|
| 250 |
\begin{table}[!htbp] |
| 251 |
\begin{symbols}{*3{cl}} |
| 252 |
\X{\leftarrow}o \verb|\gets|& \X{\longleftarrow} & \X{\uparrow} \\ |
| 253 |
\X{\rightarrow}o \verb|\to| & \X{\longrightarrow} & \X{\downarrow} \\ |
| 254 |
\X{\leftrightarrow} & \X{\longleftrightarrow}& \X{\updownarrow} \\ |
| 255 |
\X{\mapsto} & \X{\longmapsto} & \X{\nearrow} \\ |
| 256 |
\X{\hookleftarrow} & \X{\hookrightarrow} & \X{\searrow} \\ |
| 257 |
\X{\leftharpoonup} & \X{\rightharpoonup} & \X{\swarrow} \\ |
| 258 |
\X{\leftharpoondown} & \X{\rightharpoondown} & \X{\nwarrow} \\ |
| 259 |
\end{symbols} |
| 260 |
\caption{Frecce vecchio stile, disponibili con \texttt{old-arrows}.}\label{tab-frecce-vecchie} |
| 261 |
\end{table} |
| 262 |
|
| 263 |
I comandi \verb|\rightarrowfill| e \verb|\leftarrowfill| consentono di riempire spazi vuoti con frecce |
| 264 |
estendibili. Per esempio, il primo comando dato alla fine di questo stesso paragrafo produce: |
| 265 |
\rightarrowfill |
| 266 |
|
| 267 |
\subsection{Uso con altri pacchetti} |
| 268 |
|
| 269 |
\subsubsection{\texttt{amsmath}} |
| 270 |
|
| 271 |
Il pacchetto \texttt{old-arrows} non richiede \texttt{amsmath}. In ogni caso, per usarlo insieme ad |
| 272 |
\texttt{amsmath}, quest'ultimo deve essere caricato \emph{prima} di \texttt{old-arrows}: |
| 273 |
\begin{verbatim} |
| 274 |
\usepackage{amsmath} |
| 275 |
\usepackage{old-arrows} |
| 276 |
\end{verbatim} |
| 277 |
|
| 278 |
Il pacchetto \texttt{amsmath} rende disponibili ulteriori soprassegni, sottosegni |
| 279 |
(tabella~\ref{tab-frecce-vecchie-amsmath}), frecce estendibili (tabella~\ref{tab-frecce-vecchie-ext}) e nomi |
| 280 |
di operatori (tabella~\ref{tab-operatori-vecchi}). Da notare che \texttt{amsmath} produce soprassegni |
| 281 |
leggermente più distanziati dai caratteri sottostanti, con una resa tipografica migliore. Infatti, i comandi |
| 282 |
\verb|\overrightarrow{AB}| e \verb|\overleftarrow{AB}|, senza \texttt{amsmath}, producono rispettivamente |
| 283 |
\[ |
| 284 |
\overrightfreccia{AB} \,\text{ anziché }\, \overrightarrow{AB} \qquad \text{e} \qquad \overleftfreccia{AB} |
| 285 |
\,\text{ anziché }\, \overleftarrow{AB}. |
| 286 |
\] |
| 287 |
|
| 288 |
\begin{table}[!htbp] |
| 289 |
\begin{symbols}{*3{cl}} |
| 290 |
\W{\overleftarrow}{AB} & \W{\underleftarrow}{AB} \\ |
| 291 |
\W{\overrightarrow}{AB} & \W{\underrightarrow}{AB} \\ |
| 292 |
\W{\overleftrightarrow}{AB} & \W{\underleftrightarrow}{AB} \\ |
| 293 |
\end{symbols} |
| 294 |
\caption{Frecce vecchio stile come soprassegni e sottosegni, attivabili |
| 295 |
\texttt{amsmath}.}\label{tab-frecce-vecchie-amsmath} |
| 296 |
\end{table} |
| 297 |
\begin{table}[!htbp] |
| 298 |
\begin{symbols}{*2{cl}} |
| 299 |
\W{\xleftarrow}{ABCDEF} & \W{\xrightarrow}{ABCDEF} \\ |
| 300 |
\end{symbols} |
| 301 |
\caption{Frecce vecchio stile estendibili, attivabili con \texttt{amsmath}.}\label{tab-frecce-vecchie-ext} |
| 302 |
\end{table} |
| 303 |
\begin{table}[!htbp] |
| 304 |
\begin{symbols}{*2{cl}} |
| 305 |
\X{\varinjlim} & \X{\varprojlim} \\ |
| 306 |
\end{symbols} |
| 307 |
\caption{Nomi di operatori vecchio stile, attivabili con \texttt{amsmath}.}\label{tab-operatori-vecchi} |
| 308 |
\end{table} |
| 309 |
|
| 310 |
Il pacchetto \texttt{amsmath} fornisce il comando \verb|\boldsymbol| per ottenere i caratteri |
| 311 |
matematici in grassetto. Questo può essere anche utilizzato con \texttt{old-arrows}. Per esempio, i comandi |
| 312 |
\begin{center} |
| 313 |
\verb|$\boldsymbol{A \to B}$| \quad e \quad \verb|$\boldsymbol{\overrightarrow{AB}}$| |
| 314 |
\end{center} |
| 315 |
producono rispettivamente $\boldsymbol{A \to B}$ e $\boldsymbol{\overrightarrow{AB}}$. |
| 316 |
|
| 317 |
\subsubsection{\texttt{lmodern}} |
| 318 |
|
| 319 |
Il pacchetto \texttt{old-arrows} è completamente compatibile con i font Latin Modern, sempre a condizione che |
| 320 |
il relativo pacchetto \texttt{lmodern} venga caricato \emph{prima} di \texttt{old-arrows}: |
| 321 |
\begin{verbatim} |
| 322 |
\usepackage{lmodern} |
| 323 |
\usepackage{old-arrows} |
| 324 |
\end{verbatim} |
| 325 |
|
| 326 |
\subsubsection{\texttt{stmaryrd}} |
| 327 |
|
| 328 |
Il pacchetto \texttt{old-arrows} è anche pienamente compatible con i font St Mary's Road, ancora a condizione |
| 329 |
di caricare il pacchetto \texttt{stmaryrd} \emph{prima} di \texttt{old-arrows}. |
| 330 |
\begin{verbatim} |
| 331 |
\usepackage{stmaryrd} |
| 332 |
\usepackage{old-arrows} |
| 333 |
\end{verbatim} |
| 334 |
|
| 335 |
Il pacchetto \texttt{stmaryrd} fornisce diverse frecce con punta stretta, come ad esempio |
| 336 |
\verb|\shortrightarrow| ($\shortrightarrow$) e \verb|\nnearrow| ($\nnearrow$). Tuttavia, i comandi |
| 337 |
\verb|\mapsfrom| e \verb|\longmapsfrom|, senza \texttt{old-arrows}, generano le frecce nuovo stile |
| 338 |
$\varmapsfrom$ e $\varlongmapsfrom$. Il pacchetto \texttt{old-arrows} permette invece di ottenere la versione |
| 339 |
vecchio stile di tali frecce, come mostra la tabella~\ref{tab-frecce-vecchie-smr}. |
| 340 |
\begin{table}[!htbp] |
| 341 |
\begin{symbols}{*2{cl}} |
| 342 |
\X{\mapsfrom} & \X{\longmapsfrom} \\ |
| 343 |
\end{symbols} |
| 344 |
\caption{Frecce vecchio stile disponibili con \texttt{stmaryrd}.}\label{tab-frecce-vecchie-smr} |
| 345 |
\end{table} |
| 346 |
|
| 347 |
\subsubsection{\texttt{mathtools}} |
| 348 |
|
| 349 |
Il pacchetto \texttt{old-arrows} può essere usato congiuntamente al pacchetto \texttt{mathtools}, purché |
| 350 |
quest'ultimo venga caricato \emph{prima} di \texttt{old-arrows}. |
| 351 |
\begin{verbatim} |
| 352 |
\usepackage{mathtools} |
| 353 |
\usepackage{old-arrows} |
| 354 |
\end{verbatim} |
| 355 |
|
| 356 |
Il pacchetto \texttt{mathtools} mette a disposizione ulteriori frecce estendibili |
| 357 |
(tabella~\ref{tab-frecce-vecchie-mt}). |
| 358 |
|
| 359 |
\begin{table}[!htbp] |
| 360 |
\begin{symbols}{*2{cl}} |
| 361 |
\W{\xleftrightarrow}{ABCDEF} & \W{\xmapsto}{ABCDEF} \\ |
| 362 |
\W{\xhookleftarrow}{ABCDEF} & \W{\xhookrightarrow}{ABCDEF} \\ |
| 363 |
\end{symbols} |
| 364 |
\caption{Frecce vecchio stile estendibili disponibili con \texttt{mathtools}.}\label{tab-frecce-vecchie-mt} |
| 365 |
\end{table} |
| 366 |
|
| 367 |
Ogni freccia estendibile può ricevere un argomento facoltativo che produce un pedice. Per esempio, i comandi |
| 368 |
\begin{center} |
| 369 |
\verb|\xrightarrow[G]{ABCDEF}| \quad e \quad \verb|\xmapsto[G]{ABCDEF}| |
| 370 |
\end{center} |
| 371 |
danno come risultato |
| 372 |
\begin{center} |
| 373 |
$\xrightarrow[G]{ABCDEF}$ \quad e \quad $\xmapsto[G]{ABCDEF}$ |
| 374 |
\end{center} |
| 375 |
|
| 376 |
\begin{nota} |
| 377 |
È molto importante che \texttt{old-arrows} venga caricato \emph{dopo} \texttt{amsmath}, \texttt{stmaryrd}, |
| 378 |
\texttt{lmodern} e \texttt{mathtools}, dato che \texttt{old-arrows} ridefinisce diversi comandi di questi |
| 379 |
pacchetti. In caso contrario, \texttt{old-arrows} non funzionerà correttamente. |
| 380 |
\begin{verbatim} |
| 381 |
\usepackage{lmodern} |
| 382 |
\usepackage{amsmath} |
| 383 |
\usepackage{stmaryrd} |
| 384 |
\usepackage{mathtools} |
| 385 |
\usepackage{old-arrows} |
| 386 |
\end{verbatim} |
| 387 |
\end{nota} |
| 388 |
|
| 389 |
\subsection{L'opzione \textsf{new}}\label{sec:new} |
| 390 |
|
| 391 |
Caricando \texttt{old-arrows} con l'opzione \texttt{new} |
| 392 |
\begin{verbatim} |
| 393 |
\usepackage[new]{old-arrows} |
| 394 |
\end{verbatim} |
| 395 |
vengono rese disponibili le frecce nuovo stile contemporaneamente a quelle vecchio stile. Per ottenere le |
| 396 |
frecce nuovo stile basta anteporre \verb|\var| a tutti i comandi ordinari, come mostrano le |
| 397 |
tabelle~\ref{tab-frecce-nuove}, \ref{tab-frecce-nuove-amsmath}, \ref{tab-frecce-nuove-ext}, |
| 398 |
\ref{tab-operatori-nuovi}, \ref{tab-frecce-nuove-smr} e \ref{tab-frecce-nuove-mt}. |
| 399 |
|
| 400 |
\begin{table}[!htbp] |
| 401 |
\begin{symbols}{*3{cl}} |
| 402 |
\X{\varleftarrow}o \verb|\vargets|& \X{\varlongleftarrow} & \X{\varuparrow} \\ |
| 403 |
\X{\varrightarrow}o \verb|\varto|& \X{\varlongrightarrow} & \X{\vardownarrow} \\ |
| 404 |
\X{\varleftrightarrow} & \X{\varlongleftrightarrow}& \X{\varupdownarrow} \\ |
| 405 |
\X{\varmapsto} & \X{\varlongmapsto} & \X{\varnearrow} \\ |
| 406 |
\X{\varhookleftarrow} & \X{\varhookrightarrow} & \X{\varsearrow} \\ |
| 407 |
\X{\leftharpoonup} & \X{\rightharpoonup} & \X{\varswarrow} \\ |
| 408 |
\X{\leftharpoondown} & \X{\rightharpoondown} & \X{\varnwarrow} \\ |
| 409 |
\end{symbols} |
| 410 |
\caption{Frecce nuovo stile, attivabili con l'opzione \texttt{new}.}\label{tab-frecce-nuove} |
| 411 |
\end{table} |
| 412 |
\begin{table}[!htbp] |
| 413 |
\begin{symbols}{*2{cl}} |
| 414 |
\W{\varoverleftarrow}{AB} & \W{\varunderleftarrow}{AB} \\ |
| 415 |
\W{\varoverrightarrow}{AB} & \W{\varunderrightarrow}{AB} \\ |
| 416 |
\W{\varoverleftrightarrow}{AB} & \W{\varunderleftrightarrow}{AB} \\ |
| 417 |
\end{symbols} |
| 418 |
\caption{Frecce nuovo stile come soprassegni e sottosegni, attivabili con \texttt{amsmath} e l'opzione |
| 419 |
\texttt{new} di \texttt{old-arrows}.} |
| 420 |
\label{tab-frecce-nuove-amsmath} |
| 421 |
\end{table} |
| 422 |
\begin{table}[!htbp] |
| 423 |
\begin{symbols}{*2{cl}} |
| 424 |
\W{\varxleftarrow}{ABCDEF} & \W{\varxrightarrow}{ABCDEF} \\ |
| 425 |
\end{symbols} |
| 426 |
\caption{Frecce nuovo stile estendibili, attivabili con \texttt{amsmath} e l'opzione \texttt{new} di |
| 427 |
\texttt{old-arrows}.} |
| 428 |
\label{tab-frecce-nuove-ext} |
| 429 |
\end{table} |
| 430 |
\begin{table}[!htbp] |
| 431 |
\begin{symbols}{*2{cl}} |
| 432 |
\X{\varvarinjlim} & \X{\varvarprojlim} \\ |
| 433 |
\end{symbols} |
| 434 |
\caption{Nomi di operatori nuovo stile, attivabili con \texttt{amsmath} e l'opzione \texttt{new} di |
| 435 |
\texttt{old-arrows}.}\label{tab-operatori-nuovi} |
| 436 |
\end{table} |
| 437 |
\begin{table}[!htbp] |
| 438 |
\begin{symbols}{*2{cl}} |
| 439 |
\X{\varmapsfrom} & \X{\varlongmapsfrom} \\ |
| 440 |
\end{symbols} |
| 441 |
\caption{Frecce nuovo stile disponibili con \texttt{stmaryrd} e l'opzione \texttt{new} di |
| 442 |
\texttt{old-arrows}.}\label{tab-frecce-nuove-smr} |
| 443 |
\end{table} |
| 444 |
\begin{table}[!htbp] |
| 445 |
\begin{symbols}{*2{cl}} |
| 446 |
\W{\varxleftrightarrow}{ABCDEF} & \W{\varxmapsto}{ABCDEF} \\ |
| 447 |
\W{\varxhookleftarrow}{ABCDEF} & \W{\varxhookrightarrow}{ABCDEF} \\ |
| 448 |
\end{symbols} |
| 449 |
\caption{Frecce nuovo stile estendibili, disponibili con \texttt{mathtools} e l'opzione \texttt{new} di |
| 450 |
\texttt{old-arrows}.}\label{tab-frecce-nuove-mt} |
| 451 |
\end{table} |
| 452 |
|
| 453 |
\pagebreak |
| 454 |
|
| 455 |
Segnaliamo che i comandi |
| 456 |
\begin{center} |
| 457 |
\verb|\leftharpoonup|, \verb|\rightharpoonup|, \verb|\leftharpoondown|, \verb|\rightharpoondown| |
| 458 |
\end{center} |
| 459 |
non sono stati ridefiniti da \texttt{old-arrows}, perché i corrispondenti caratteri $\leftharpoonup, |
| 460 |
\rightharpoonup,\leftharpoondown,\rightharpoondown$ non sono stati modificati con l'introduzione del nuovo |
| 461 |
stile. |
| 462 |
|
| 463 |
I comandi \verb|\varrightarrowfill| e \verb|\varleftarrowfill| permettono di riempire spazi vuoti con frecce |
| 464 |
estendibili. Il primo comando dato alla fine di questo stesso paragrafo produce: \varrightarrowfill |
| 465 |
|
| 466 |
Se si vuole usare l'opzione \texttt{new} insieme all'opzione \texttt{only} del pacchetto \texttt{stmaryrd}, è |
| 467 |
necessario scrivere nell'elenco delle opzioni il comando da definire in entrambe le versioni: normale e |
| 468 |
\verb|\var|. Ad esempio, con le opzioni seguenti |
| 469 |
\begin{verbatim} |
| 470 |
\usepackage[only,mapsfrom,varmapsfrom]{stmaryrd} |
| 471 |
\usepackage[new]{old-arrows} |
| 472 |
\end{verbatim} |
| 473 |
verranno definiti da \texttt{stmaryrd} solo i simboli $\mapsfrom$ e $\varmapsfrom$. |
| 474 |
|
| 475 |
Infine, anche con l'opzione \texttt{new} è possibile usare il comando \verb|\boldsymbol| previsto da |
| 476 |
\texttt{amsmath}. I seguenti comandi |
| 477 |
\begin{center} |
| 478 |
\verb|$\boldsymbol{A \varto B}$| \quad e \quad \verb|$\boldsymbol{\varoverrightarrow{AB}}$| |
| 479 |
\end{center} |
| 480 |
producono rispettivamente $\boldsymbol{A \varto B}$ e $\boldsymbol{\varoverrightarrow{AB}}$. |
| 481 |
|
| 482 |
\subsection{L'opzione \textsf{old}}\label{sec:old} |
| 483 |
|
| 484 |
Qualora si volesse usare il vecchio stile solo in alcuni casi, mantenendo di default il nuovo stile, è |
| 485 |
disponibile l'opzione \texttt{old} |
| 486 |
\begin{verbatim} |
| 487 |
\usepackage[old]{old-arrows} |
| 488 |
\end{verbatim} |
| 489 |
che associa a tutti i comandi con prefisso \verb|\var| il vecchio stile anziché il nuovo, il quale rimane |
| 490 |
associato ai comandi ordinari. Per esempio, con l'opzione \texttt{old} i comandi |
| 491 |
\begin{center} |
| 492 |
\verb|$A \varleftarrow B$| \quad e \quad \verb|$A \varto B$| |
| 493 |
\end{center} |
| 494 |
producono rispettivamente $A \leftarrow B$ e $A \to B$, mentre |
| 495 |
\begin{center} |
| 496 |
\verb|$A \leftarrow B$| \quad e \quad \verb|$A \to B$| |
| 497 |
\end{center} |
| 498 |
producono rispettivamente $A \varleftarrow B$ e $A \varto B$. |
| 499 |
|
| 500 |
Non è possibile caricare contemporaneamente le opzioni \texttt{new} e \texttt{old} (nel caso, si otterrà un |
| 501 |
messaggio di errore). |
| 502 |
|
| 503 |
\subsection{Comandi aggiuntivi disponibili con \texttt{old-arrows}} |
| 504 |
|
| 505 |
Il pacchetto \texttt{old-arrows} fornisce comandi aggiuntivi per nuovi tipi di frecce, come mostra la |
| 506 |
tabella~\ref{tab-comandi-nuovi}. |
| 507 |
\begin{table}[!htbp] |
| 508 |
\begin{symbols}{*2{cl}} |
| 509 |
\X{\longhookrightarrow} & \X{\longhookleftarrow} \\ |
| 510 |
\X{\varlonghookrightarrow}$^a$ & \X{\varlonghookleftarrow}$^a$ \\ |
| 511 |
\X{\longleftharpoonup} & \X{\longleftharpoondown} \\ |
| 512 |
\X{\longrightharpoonup} & \X{\longrightharpoondown} \\ |
| 513 |
\end{symbols} |
| 514 |
\centerline{\footnotesize $^a$Attivabile con l'opzione \texttt{new}.} |
| 515 |
\caption{Frecce aggiuntive disponibili con \texttt{old-arrows}.}\label{tab-comandi-nuovi} |
| 516 |
\end{table} |
| 517 |
|
| 518 |
Infine, sono previsti comandi per frecce estendibili del tipo ``mapsfrom'' (tabella~\ref{tab-frecce-mt-smr}) |
| 519 |
che sono disponibili solo se anche \texttt{mathtools} e \texttt{stmaryrd} vengono caricati con |
| 520 |
\texttt{old-arrows} (in quanto dipendono a loro volta da altri comandi definiti da questi due pacchetti). |
| 521 |
\begin{table}[!htbp] |
| 522 |
\begin{symbols}{*2{cl}} |
| 523 |
\W{\xmapsfrom}{ABCDEF} & \W{\varxmapsfrom}{ABCDEF}$^a$ \\ |
| 524 |
\end{symbols} |
| 525 |
\centerline{\footnotesize $^a$Attivabile con l'opzione \texttt{new}.} |
| 526 |
\caption{Frecce estendibili fornite da \texttt{old-arrows} insieme a \texttt{mathtools} e |
| 527 |
\texttt{stmaryrd}.} |
| 528 |
\label{tab-frecce-mt-smr} |
| 529 |
\end{table} |
| 530 |
|
| 531 |
\end{document} |