Debian Codegraph @

texmf-dist/doc/fonts/old-arrows/old-arrows.tex

raw
1 %% start of file `old-arrows.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]{ltxdoc}
9
10 \usepackage[english]{babel}
11 \usepackage[T1]{fontenc}
12 \usepackage{amsmath,amssymb,amsthm}
13 \usepackage[shortlabels]{enumitem}
14 \usepackage{stmaryrd}
15 \usepackage{mathtools}
16 \usepackage[new]{old-arrows}
17 \usepackage[hmargin=3.3cm,vmargin=2.5cm,footskip=30pt]{geometry}
18 \usepackage[colorlinks=true]{hyperref}
19 \usepackage[all]{hypcap} % needed to help hyperlinks direct correctly;
20 \usepackage[chicago]{ellipsis}
21
22 \def\fileversion{2.0}
23 \def\filedate{January 5, 2017}
24
25 %Logo per MiKTeX e TeXLive
26 \newcommand{\MiKTeX}{MiK\TeX}
27 \newcommand{\TeXLive}{\mbox{\TeX\ Live}}
28 %
29 %
30 % Symbol Entry for Math Symbol Tables
31 %
32 \newcommand{\X}[1]{$#1$&\texttt{\string#1}\hspace*{1ex}}
33
34 \newcommand{\W}[2]{$#1{#2}$&
35 \texttt{\string#1}\texttt{\string{\string#2\string}}\hspace*{1ex}}
36
37 \theoremstyle{remark}
38 \newtheorem*{remark}{Remark}
39
40 % Mathsymbol Table
41 \newsavebox{\symbbox}
42 \newenvironment{symbols}[1]%
43 {\par\vspace*{2ex}
44 \renewcommand{\arraystretch}{1.1}
45 \begin{lrbox}{\symbbox}
46 \hspace*{4ex}\begin{tabular}{@{}#1@{}}}%
47 {\end{tabular}\end{lrbox}\makebox[\textwidth]{\usebox{\symbbox}}\par\medskip}
48
49 %Per l'esempio senza amsmath
50 \makeatletter
51 \def\overrightfreccia#1{\vbox{\m@th\ialign{##\crcr
52 \rightfrecciafill\crcr\noalign{\kern-\p@\nointerlineskip}
53 $\hfil\displaystyle{#1}\hfil$\crcr}}}
54 \def\overleftfreccia#1{\vbox{\m@th\ialign{##\crcr
55 \leftfrecciafill\crcr\noalign{\kern-\p@\nointerlineskip}%
56 $\hfil\displaystyle{#1}\hfil$\crcr}}}
57 \def\varoverrightfreccia#1{\vbox{\m@th\ialign{##\crcr
58 \varrightfrecciafill\crcr\noalign{\kern-\p@\nointerlineskip}
59 $\hfil\displaystyle{#1}\hfil$\crcr}}}
60 \def\varoverleftfreccia#1{\vbox{\m@th\ialign{##\crcr
61 \varleftfrecciafill\crcr\noalign{\kern-\p@\nointerlineskip}%
62 $\hfil\displaystyle{#1}\hfil$\crcr}}}
63 \def\rightfrecciafill{$\m@th\smash\meno\mkern-7mu%
64 \cleaders\hbox{$\mkern-2mu\smash\meno\mkern-2mu$}\hfill
65 \mkern-7mu\mathord\rightarrow$}
66 \def\leftfrecciafill{$\m@th\mathord\leftarrow\mkern-7mu%
67 \cleaders\hbox{$\mkern-2mu\smash\meno\mkern-2mu$}\hfill
68 \mkern-7mu\smash\meno$}
69 \def\varrightfrecciafill{$\m@th\smash-\mkern-7mu%
70 \cleaders\hbox{$\mkern-2mu\smash-\mkern-2mu$}\hfill
71 \mkern-7mu\mathord\varrightarrow$}
72 \def\varleftfrecciafill{$\m@th\mathord\varleftarrow\mkern-7mu%
73 \cleaders\hbox{$\mkern-2mu\smash-\mkern-2mu$}\hfill
74 \mkern-7mu\smash-$}
75 \makeatother
76
77 \begin{document}
78
79 \title{The \textsf{old-arrows} package}
80 \author{Riccardo Dossena\thanks{%
81 E-mail: \href{mailto:[email protected]}{\tt [email protected]}}}
82 \date{Version \fileversion, released on \filedate}
83
84 \maketitle
85
86 \begin{abstract}
87 This package provides Computer Modern old-style arrows ($\rightarrow$) with smaller arrowheads, associated
88 with ordinary \LaTeX\ commands. It can be used in a document that contains other \texttt{amssymb} arrow
89 characters, like $\twoheadrightarrow$, which also have small arrowheads. It is possible to use the usual
90 new-style Computer Modern arrows ($\varrightarrow$) together with the old-style ones.
91 \end{abstract}
92
93 \tableofcontents
94
95 %\pagebreak
96
97 \section{Introduction}
98
99 In 1992, Donald E. Knuth made some important corrections to Computer Modern fonts\footnote{See
100 \url{http://www-cs-faculty.stanford.edu/~uno/cm.html}}. As a consequence, the characters corresponding to
101 arrows have been modified. Just to make things clearer,
102 \[
103 A \to B
104 \]
105 became
106 \[
107 A \varto B
108 \]
109 that is, the character $\to$ was replaced by $\varto$, which has a larger arrowhead. The same happened to
110 other arrow characters. However, many arrow characters defined by \texttt{amssymb}, like $\nrightarrow$,
111 $\rightarrowtail$, $\twoheadrightarrow$ and others, maintained a small arrowhead and seem too different from
112 $\varto$.
113
114 The \texttt{old-arrows} package with Old Arrows font family allows the user to use the old-style arrows
115 ($\to$, $\gets$, \ldots) with the traditional commands (\verb|\rightarrow|, \verb|\leftarrow|,~\ldots).
116 Furthermore, the options \texttt{new} and \texttt{old} allow the user to obtain the new-style arrows
117 ($\varto$, $\vargets$,~\ldots) together with the old-style ones by putting \verb|\var| before the
118 corresponding commands (\verb|\varrightarrow|, \verb|\varleftarrow|,~\ldots)\footnote{See sections
119 \ref{sec:new} and \ref{sec:old}.}.
120
121 Old Arrows font family was derived from an old version of Blue Sky Computer Modern Math Symbols (1991--1992,
122 released by AMS) by deleting many characters with FontForge.
123
124 \section{Licenses}
125
126 The \LaTeX\ code in this package is licensed under the \LaTeX\ Project Public License, v1.3.
127
128 The fonts in this package are licensed under the SIL Open Font License, v1.1.
129
130 \section{Installation}
131
132 The \texttt{old-arrows} package is included in the latest \MiKTeX\ and \TeXLive\ distributions. However, if
133 you want to install it manually, follow the instructions below.
134
135 \subsection{Copying the files in the local \texttt{texmf} tree}
136
137 The Old Arrows fonts files are:
138
139 \begin{center}
140 \begin{tabular}{p{3cm}p{3cm}p{3cm}l}
141 \hline
142 \texttt{oasy5.afm} & \texttt{oasy5.pfm} & \texttt{oasy5.tfm} & \texttt{oasy5.pfb} \\
143 \texttt{oasy6.afm} & \texttt{oasy6.pfm} & \texttt{oasy6.tfm} & \texttt{oasy6.pfb} \\
144 \texttt{oasy7.afm} & \texttt{oasy7.pfm} & \texttt{oasy7.tfm} & \texttt{oasy7.pfb} \\
145 \texttt{oasy8.afm} & \texttt{oasy8.pfm} & \texttt{oasy8.tfm} & \texttt{oasy8.pfb} \\
146 \texttt{oasy9.afm} & \texttt{oasy9.pfm} & \texttt{oasy9.tfm} & \texttt{oasy9.pfb} \\
147 \texttt{oasy10.afm} & \texttt{oasy10.pfm} & \texttt{oasy10.tfm} & \texttt{oasy10.pfb} \\
148 \texttt{oabsy5.afm} & \texttt{oabsy5.pfm} & \texttt{oabsy5.tfm} & \texttt{oabsy5.pfb} \\
149 & & \texttt{oabsy6.tfm} & \\
150 \texttt{oabsy7.afm} & \texttt{oabsy7.pfm} & \texttt{oabsy7.tfm} & \texttt{oabsy7.pfb} \\
151 & & \texttt{oabsy8.tfm} & \\
152 & & \texttt{oabsy9.tfm} & \\
153 \texttt{oabsy10.afm} & \texttt{oabsy10.pfm} & \texttt{oabsy10.tfm} & \texttt{oabsy10.pfb} \\
154 \hline
155 \end{tabular}
156 \end{center}
157
158 These files were derived from Computer Modern fonts \texttt{cmbsy5}, \texttt{cmbsy7}, \texttt{cmbsy10},
159 \texttt{cmsy5}, \texttt{cmsy7}, \texttt{cmsy8}, \texttt{cmsy9} and \texttt{cmsy10}.
160
161 Call \texttt{<localtexmf>} the path of your local \texttt{texmf} tree. For \TeXLive, the local tree is
162 usually placed in \texttt{/usr/local/texlive/texmf-local}; for \MiKTeX, it can be set up on any directory, by
163 the \textsf{Roots} tab of ``\MiKTeX\ Options''.
164
165 \begin{enumerate}
166 \item Copy the \texttt{*.afm} and \texttt{*.tfm} font files into the corresponding \texttt{old-arrows}
167 directories (you have to create them, as shown below):
168 \begin{verbatim}
169 <localtexmf>/fonts/afm/old-arrows
170 <localtexmf>/fonts/tfm/old-arrows
171 \end{verbatim}
172
173 \item Copy the \texttt{*.pfb} and \texttt{*.pfm} font files into the directory
174 \begin{verbatim}
175 <localtexmf>/fonts/type1/old-arrows
176 \end{verbatim}
177
178 \item Copy the \texttt{oasy.enc} and \texttt{oasy.map} files, respectively, into the directories
179 \begin{verbatim}
180 <localtexmf>/fonts/enc/dvips/old-arrows
181 <localtexmf>/fonts/map/dvips/old-arrows
182 \end{verbatim}
183
184 \item Copy the \texttt{old-arrows.sty} file into the directory
185 \begin{verbatim}
186 <localtexmf>/tex/latex/old-arrows
187 \end{verbatim}
188 \end{enumerate}
189
190 \subsection{Updating the filename database}\label{agg-database-file}
191
192 \begin{description}[font=\bfseries\sffamily, leftmargin=5em, style=sameline]
193 \item[\MiKTeX] On the \textsf{General} tab of ``MiKTeX Options (Admin)'' click the \textsf{Refresh~FNDB}
194 button. Alternatively, in a DOS command prompt window run
195 \begin{verbatim}
196 initexmf --update-fndb
197 \end{verbatim}
198
199 \item[\TeXLive] Start the ``\TeXLive\ Manager''. From \textsf{Actions} menu, select \textsf{Update
200 filename
201 database}. Alternatively, run in a terminal command line
202 \begin{verbatim}
203 mktexlsr
204 \end{verbatim}
205 \end{description}
206
207 \subsection{Updating the font map files}
208
209 \begin{description}[font=\bfseries\sffamily, leftmargin=5em, style=sameline]
210 \item[\MiKTeX] To update the configuration file \texttt{updmap.cfg}, execute in a DOS command prompt
211 \begin{verbatim}
212 initexmf --edit-config-file updmap
213 \end{verbatim}
214 add to \texttt{updmap.cfg} (that will be opened) the following line
215 \begin{verbatim}
216 Map oasy.map
217 \end{verbatim}
218 save, close and execute (always in the DOS command prompt)
219 \begin{verbatim}
220 initexmf --mkmaps
221 \end{verbatim}
222
223 \item[\TeXLive] Execute in a terminal command line
224 \begin{verbatim}
225 updmap-sys --enable Map=oasy.map
226 \end{verbatim}
227 \end{description}
228 Finally, it is better to make another update of the filename database (see~\ref{agg-database-file}).
229
230 \section{Usage}
231
232 \subsection{Basic usage}
233
234 Simply type in the preamble of your \LaTeX\ document
235 \begin{verbatim}
236 \usepackage{old-arrows}
237 \end{verbatim}
238 and every arrow command will be associated to the ``old-style'', as indicated in
239 table~\ref{tab-frecce-vecchie}.
240
241 \begin{table}[!htbp]
242 \begin{symbols}{*3{cl}}
243 \X{\leftarrow}or \verb|\gets|& \X{\longleftarrow} & \X{\uparrow} \\
244 \X{\rightarrow}or \verb|\to|& \X{\longrightarrow} & \X{\downarrow} \\
245 \X{\leftrightarrow} & \X{\longleftrightarrow}& \X{\updownarrow} \\
246 \X{\mapsto} & \X{\longmapsto} & \X{\nearrow} \\
247 \X{\hookleftarrow} & \X{\hookrightarrow} & \X{\searrow} \\
248 \X{\leftharpoonup} & \X{\rightharpoonup} & \X{\swarrow} \\
249 \X{\leftharpoondown} & \X{\rightharpoondown} & \X{\nwarrow} \\
250 \end{symbols}
251 \caption{Old-style arrows provided by \texttt{old-arrows}.}\label{tab-frecce-vecchie}
252 \end{table}
253
254 The commands \verb|\rightarrowfill| and \verb|\leftarrowfill| allow to fill empty spaces with extensible
255 arrows. For example, the first command written at the end of this paragraph gives the following result:
256 \rightarrowfill
257
258 \subsection{Usage together with other packages}
259
260 \subsubsection{\texttt{amsmath}}
261
262 The \texttt{old-arrows} package does not require \texttt{amsmath}. However, if you want to use the
263 \texttt{amsmath} package, you must load it \emph{before} \texttt{old-arrows}:
264 \begin{verbatim}
265 \usepackage{amsmath}
266 \usepackage{old-arrows}
267 \end{verbatim}
268
269 The \texttt{amsmath} package provides over, under (table~\ref{tab-frecce-vecchie-amsmath}), extensible
270 (table~\ref{tab-frecce-vecchie-ext}) arrows and operator names (table~\ref{tab-operatori-vecchi}). Note that
271 \texttt{amsmath} adds more space between the arrow above and the characters below, with a better
272 typographical result. The commands \verb|\overrightarrow{AB}| and \verb|\overleftarrow{AB}|, without
273 \texttt{amsmath}, produce respectively
274 \[
275 \overrightfreccia{AB} \,\text{ rather than }\, \overrightarrow{AB} \qquad \text{and} \qquad
276 \overleftfreccia{AB}
277 \,\text{ rather than }\, \overleftarrow{AB}.
278 \]
279
280 The \texttt{amsmath} package also provides the command \verb|\boldsymbol| for obtaining bold mathematical
281 symbols, which can be used together with \texttt{old-arrows}. For example, the commands
282 \begin{center}
283 \verb|$\boldsymbol{A \to B}$| \quad and \quad \verb|$\boldsymbol{\overrightarrow{AB}}$|
284 \end{center}
285 produce $\boldsymbol{A \to B}$ and $\boldsymbol{\overrightarrow{AB}}$, respectively.
286
287 \begin{table}[!htbp]
288 \begin{symbols}{*3{cl}}
289 \W{\overleftarrow}{AB} & \W{\underleftarrow}{AB} \\
290 \W{\overrightarrow}{AB} & \W{\underrightarrow}{AB} \\
291 \W{\overleftrightarrow}{AB} & \W{\underleftrightarrow}{AB} \\
292 \end{symbols}
293 \caption{Old-style over and under arrows provided by \texttt{amsmath}.}\label{tab-frecce-vecchie-amsmath}
294 \end{table}
295 \begin{table}[!htbp]
296 \begin{symbols}{*2{cl}}
297 \W{\xleftarrow}{ABCDEF} & \W{\xrightarrow}{ABCDEF} \\
298 \end{symbols}
299 \caption{Old-style extensible arrows provided by \texttt{amsmath}.}\label{tab-frecce-vecchie-ext}
300 \end{table}
301 \begin{table}[!htbp]
302 \begin{symbols}{*2{cl}}
303 \X{\varinjlim} & \X{\varprojlim} \\
304 \end{symbols}
305 \caption{Old-style operator names provided by \texttt{amsmath}.}\label{tab-operatori-vecchi}
306 \end{table}
307
308 \subsubsection{\texttt{lmodern}}
309
310 The \texttt{old-arrows} package is fully compatible with the Latin Modern fonts, provided that you load the
311 \texttt{lmodern} package \emph{before} \texttt{old-arrows}.
312 \begin{verbatim}
313 \usepackage{lmodern}
314 \usepackage{old-arrows}
315 \end{verbatim}
316
317 \subsubsection{\texttt{stmaryrd}}
318
319 The \texttt{old-arrows} package is also fully compatible with the St Mary's Road symbol font, always provided
320 that you load the \texttt{stmaryrd} package \emph{before} \texttt{old-arrows}.
321 \begin{verbatim}
322 \usepackage{stmaryrd}
323 \usepackage{old-arrows}
324 \end{verbatim}
325
326 The \texttt{stmaryrd} package provides several arrow characters with small arrowheads, like
327 \verb|\shortrightarrow| ($\shortrightarrow$) and \verb|\nnearrow| ($\nnearrow$). However, without
328 \texttt{old-arrows}, the commands \verb|\mapsfrom| and \verb|\longmapsfrom| produce the new-style arrows
329 $\varmapsfrom$ and $\varlongmapsfrom$. Instead, the \texttt{old-arrows} package allows you to obtain the
330 old-style version of these arrows, as shown in table~\ref{tab-frecce-vecchie-smr}.
331
332 \begin{table}[!htbp]
333 \begin{symbols}{*2{cl}}
334 \X{\mapsfrom} & \X{\longmapsfrom} \\
335 \end{symbols}
336 \caption{Old-style arrows provided by \texttt{stmaryrd}.}\label{tab-frecce-vecchie-smr}
337 \end{table}
338
339 %\pagebreak
340
341 \subsubsection{\texttt{mathtools}}
342
343
344 The \texttt{old-arrows} package can be used together with the \texttt{mathtools} package, always on condition
345 that you load it \emph{before} \texttt{old-arrows}.
346 \begin{verbatim}
347 \usepackage{mathtools}
348 \usepackage{old-arrows}
349 \end{verbatim}
350
351 The \texttt{mathtools} package makes additional extensible arrows available
352 (table~\ref{tab-frecce-vecchie-mt}).
353
354 \begin{table}[!htbp]
355 \begin{symbols}{*2{cl}}
356 \W{\xleftrightarrow}{ABCDEF} & \W{\xmapsto}{ABCDEF} \\
357 \W{\xhookleftarrow}{ABCDEF} & \W{\xhookrightarrow}{ABCDEF} \\
358 \end{symbols}
359 \caption{Old-style extensible arrows provided by \texttt{mathtools}.}\label{tab-frecce-vecchie-mt}
360 \end{table}
361
362 Every extensible arrow can take an optional argument that produces a subscript. For example, the commands
363 \begin{center}
364 \verb|\xrightarrow[G]{ABCDEF}| \quad and \quad \verb|\xmapsto[G]{ABCDEF}|
365 \end{center}
366 produce
367 \begin{center}
368 $\xrightarrow[G]{ABCDEF}$ \quad and \quad $\xmapsto[G]{ABCDEF}$
369 \end{center}
370
371 %\pagebreak
372
373 \begin{remark}
374 It is very important that you load \texttt{old-arrows} \emph{after} \texttt{amsmath}, \texttt{stmaryrd},
375 \texttt{lmodern} and \texttt{mathtools}, because many commands of these packages must be redefined by
376 \texttt{old-arrows}. Otherwise, \texttt{old-arrows} won't work properly.
377 \begin{verbatim}
378 \usepackage{lmodern}
379 \usepackage{amsmath}
380 \usepackage{stmaryrd}
381 \usepackage{mathtools}
382 \usepackage{old-arrows}
383 \end{verbatim}
384 \end{remark}
385
386
387 \subsection{The option \textsf{new}}\label{sec:new}
388
389 Loading \texttt{old-arrows} with the option \texttt{new}
390 \begin{verbatim}
391 \usepackage[new]{old-arrows}
392 \end{verbatim}
393 allows you to use the new-style and the old-style arrows simultaneously. In order to obtain new-style arrows,
394 just put \verb|\var| before every ordinary command, as shown in tables~\ref{tab-frecce-nuove},
395 \ref{tab-frecce-nuove-amsmath}, \ref{tab-frecce-nuove-ext}, \ref{tab-operatori-nuovi},
396 \ref{tab-frecce-nuove-smr} and \ref{tab-frecce-nuove-mt}.
397
398 \begin{table}[!htbp]
399 \begin{symbols}{*3{cl}}
400 \X{\varleftarrow}or \verb|\vargets|& \X{\varlongleftarrow} & \X{\varuparrow} \\
401 \X{\varrightarrow}or \verb|\varto|& \X{\varlongrightarrow} & \X{\vardownarrow} \\
402 \X{\varleftrightarrow} & \X{\varlongleftrightarrow}& \X{\varupdownarrow} \\
403 \X{\varmapsto} & \X{\varlongmapsto} & \X{\varnearrow} \\
404 \X{\varhookleftarrow} & \X{\varhookrightarrow} & \X{\varsearrow} \\
405 \X{\leftharpoonup} & \X{\rightharpoonup} & \X{\varswarrow} \\
406 \X{\leftharpoondown} & \X{\rightharpoondown} & \X{\varnwarrow} \\
407 \end{symbols}
408 \caption{New-style arrows provided by option \texttt{new}.}\label{tab-frecce-nuove}
409 \end{table}
410 \begin{table}[!htbp]
411 \begin{symbols}{*2{cl}}
412 \W{\varoverleftarrow}{AB} & \W{\varunderleftarrow}{AB} \\
413 \W{\varoverrightarrow}{AB} & \W{\varunderrightarrow}{AB} \\
414 \W{\varoverleftrightarrow}{AB} & \W{\varunderleftrightarrow}{AB} \\
415 \end{symbols}
416 \caption{New-style over and under arrows provided by \texttt{amsmath} and the option \texttt{new} of
417 \texttt{old-arrows}.}
418 \label{tab-frecce-nuove-amsmath}
419 \end{table}
420 \begin{table}[!htbp]
421 \begin{symbols}{*2{cl}}
422 \W{\varxleftarrow}{ABCDEF} & \W{\varxrightarrow}{ABCDEF} \\
423 \end{symbols}
424 \caption{New-style extensible arrows provided by \texttt{amsmath} and the option \texttt{new} of
425 \texttt{old-arrows}.}
426 \label{tab-frecce-nuove-ext}
427 \end{table}
428 \begin{table}[!htbp]
429 \begin{symbols}{*2{cl}}
430 \X{\varvarinjlim} & \X{\varvarprojlim} \\
431 \end{symbols}
432 \caption{New-style operator names provided by \texttt{amsmath} and the option \texttt{new} of
433 \texttt{old-arrows}.}\label{tab-operatori-nuovi}
434 \end{table}
435 \begin{table}[!htbp]
436 \begin{symbols}{*2{cl}}
437 \X{\varmapsfrom} & \X{\varlongmapsfrom} \\
438 \end{symbols}
439 \caption{New-style arrows provided by \texttt{stmaryrd} and the option \texttt{new} of
440 \texttt{old-arrows}.}\label{tab-frecce-nuove-smr}
441 \end{table}
442 \begin{table}[!htbp]
443 \begin{symbols}{*2{cl}}
444 \W{\varxleftrightarrow}{ABCDEF} & \W{\varxmapsto}{ABCDEF} \\
445 \W{\varxhookleftarrow}{ABCDEF} & \W{\varxhookrightarrow}{ABCDEF} \\
446 \end{symbols}
447 \caption{New-style extensible arrows provided by \texttt{mathtools} and the option \texttt{new} of
448 \texttt{old-arrows}.}\label{tab-frecce-nuove-mt}
449 \end{table}
450 \pagebreak
451
452 Note that the commands
453 \begin{center}
454 \verb|\leftharpoonup|, \verb|\rightharpoonup|, \verb|\leftharpoondown|, \verb|\rightharpoondown|
455 \end{center}
456 have not been redefined by \texttt{old-arrows}, because the corresponding characters
457 $\leftharpoonup,\rightharpoonup,\leftharpoondown,\rightharpoondown$ have not been modified by the
458 introduction of the new-style arrows.
459
460 The commands \verb|\varrightarrowfill| and \verb|\varleftarrowfill| allow to fill empty spaces with
461 extensible arrows. For example, the first command written at the end of this paragraph gives the following
462 result: \varrightarrowfill
463
464 If you want to use the option \texttt{new} and the option \texttt{only} provided by the \texttt{stmaryrd}
465 package, you must write the command you wish to define in both ordinary and \verb|\var| versions in the
466 option list. For example:
467 \begin{verbatim}
468 \usepackage[only,mapsfrom,varmapsfrom]{stmaryrd}
469 \usepackage[new]{old-arrows}
470 \end{verbatim}
471 says that only the symbols $\mapsfrom$ and $\varmapsfrom$ will be defined by \texttt{stmaryrd}.
472
473 Furthermore, with the option \texttt{new} it is also possibile to use the command \verb|\boldsymbol| provided
474 by \texttt{amsmath}. The following commands
475 \begin{center}
476 \verb|$\boldsymbol{A \varto B}$| \quad and \quad \verb|$\boldsymbol{\varoverrightarrow{AB}}$|
477 \end{center}
478 produce $\boldsymbol{A \varto B}$ and $\boldsymbol{\varoverrightarrow{AB}}$ respectively.
479
480 \subsection{The option \textsf{old}}\label{sec:old}
481
482 If you want to use the old-style arrows only in a few cases, and maintain the new-style by default, then it
483 is available the option \texttt{old}
484 \begin{verbatim}
485 \usepackage[old]{old-arrows}
486 \end{verbatim}
487 that associates all of the commands with prefix \verb|\var| to the old-style rather than the new one, which
488 remains associated to the ordinary commands. For example, with the option \texttt{old} the commands
489 \begin{center}
490 \verb|$A \varleftarrow B$| \quad and \quad \verb|$A \varto B$|
491 \end{center}
492 produce $A \leftarrow B$ and $A \to B$ respectively, while
493 \begin{center}
494 \verb|$A \leftarrow B$| \quad and \quad \verb|$A \to B$|
495 \end{center}
496 produce $A \varleftarrow B$ and $A \varto B$, respectively.
497
498 It is not possible to load the options \texttt{new} and \texttt{old} simultaneously (if so, you will get an
499 error message).
500
501 \subsection{Additional arrow commands provided by \texttt{old-arrows}}
502
503 The \texttt{old-arrows} package provides additional arrow commands that are listed in
504 table~\ref{tab-comandi-nuovi}.
505 \begin{table}[!htbp]
506 \begin{symbols}{*2{cl}}
507 \X{\longhookrightarrow} & \X{\longhookleftarrow} \\
508 \X{\varlonghookrightarrow}$^a$ & \X{\varlonghookleftarrow}$^a$ \\
509 \X{\longleftharpoonup} & \X{\longleftharpoondown} \\
510 \X{\longrightharpoonup} & \X{\longrightharpoondown} \\
511 \end{symbols}
512 \centerline{\footnotesize $^a$Available with the option \texttt{new}.}
513 \caption{Arrow commands provided by \texttt{old-arrows}.}\label{tab-comandi-nuovi}
514 \end{table}
515
516 Finally, there are extensible ``mapsfrom'' arrows (table~\ref{tab-frecce-mt-smr}) that are available only if
517 both \texttt{mathtools} and \texttt{stmaryrd} are loaded together with \texttt{old-arrows} (as they depend on
518 commands defined by these two packages).
519 \begin{table}[!htbp]
520 \begin{symbols}{*2{cl}}
521 \W{\xmapsfrom}{ABCDEF} & \W{\varxmapsfrom}{ABCDEF}$^a$ \\
522 \end{symbols}
523 \centerline{\footnotesize $^a$Available with the option \texttt{new}.}
524 \caption{Extensible arrows provided by \texttt{old-arrows} together with \texttt{mathtools} and
525 \texttt{stmaryrd}.}
526 \label{tab-frecce-mt-smr}
527 \end{table}
528
529 \end{document}