blob: e78454f4fdd40ef37fb01846b9a03a1f296e5c26 (
plain)
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
|
%%
%% This is file `adfarrows.sty',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% adfarrows.dtx (with options: `sty')
%%
%% Copyright (C) 2024 Clea F. Rees.
%%
%% This work may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either version 1.3c
%% of this license or (at your option) any later version.
%% The latest version of this license is in
%% https://www.latex-project.org/lppl.txt
%% and version 1.3c or later is part of all distributions of LaTeX
%% version 2008-05-04 or later.
%%
%% This work has the LPPL maintenance status `maintained'.
%%
%% The Current Maintainer of this work is Clea F. Rees.
%%
%% This file may only be distributed together with a copy of the package
%% fontscripts. You may however distribute the package fontscripts without
%% such generated files.
%%
%% This work consists of all files listed in manifest.txt.
%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\NeedsTeXFormat{LaTeX2e}
\RequirePackage{svn-prov}
\ProvidesPackageSVN[\filebase.sty]{$Id: adfarrows.dtx 10467 2024-10-03 23:14:27Z cfrees $}[v1.3 \revinfo ArrowsADF]
\DefineFileInfoSVN[adfarrows]
\newif\if@adfarrows@digonnew
\@ifundefined{ExplLoaderFileDate}{%
\IfFileExists{expl3.sty}{%
\RequirePackage{expl3}%
}{%
\@adfarrows@digonnewfalse
}%
}{\@adfarrows@digonnewtrue}
\if@adfarrows@digonnew
\ExplSyntaxOn
\keys_define:nn { adfarrows }
{
scale .tl_set:N = \adfarrows@scale,
scale .initial:V = \@empty,
}
\else
\let\adfarrows@scale\@empty
\fi
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\providecommand \IfFormatAtLeastTF { \@ifl@t@r \fmtversion }
\IfFormatAtLeastTF { 2022-06-01 }
{
\ProcessKeyOptions [ adfarrows ]
}{
\RequirePackage { l3keys2e }
\ProcessKeysOptions { adfarrows }
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\ExplSyntaxOff
\DeclareRobustCommand{\adfarrows@style}{%% do NOT break line below!
\not@math@alphabet\adfarrows@style\relax
\fontencoding{U}\fontfamily{ArrowsADF}\fontseries{m}\fontshape{n}\selectfont
}
\ExplSyntaxOn
\int_new:N \l__adfarrows_base_ot_int
\int_set:Nn \l__adfarrows_base_ot_int {1}
\int_new:N \l__adfarrows_base_p_int
\int_set:Nn \l__adfarrows_base_p_int {2}
\int_new:N \l__adfarrows_base_c_int
\int_set:Nn \l__adfarrows_base_c_int {3}
\int_new:N \l__adfarrows_base_st_int
\int_set:Nn \l__adfarrows_base_st_int {4}
\int_new:N \l__adfarrows_base_th_int
\int_set:Nn \l__adfarrows_base_th_int {5}
\int_new:N \l__adfarrows_base_t_int
\int_set:Nn \l__adfarrows_base_t_int {6}
\int_new:N \l__adfarrows_dir_e_int
\int_set:Nn \l__adfarrows_dir_e_int {0}
\int_new:N \l__adfarrows_dir_east_int
\int_set:Nn \l__adfarrows_dir_east_int {0}
\int_new:N \l__adfarrows_dir_se_int
\int_set:Nn \l__adfarrows_dir_se_int {1}
\int_new:N \l__adfarrows_dir_southeast_int
\int_set:Nn \l__adfarrows_dir_southeast_int {1}
\int_new:N \l__adfarrows_dir_s_int
\int_set:Nn \l__adfarrows_dir_s_int {2}
\int_new:N \l__adfarrows_dir_south_int
\int_set:Nn \l__adfarrows_dir_south_int {2}
\int_new:N \l__adfarrows_dir_sw_int
\int_set:Nn \l__adfarrows_dir_sw_int {3}
\int_new:N \l__adfarrows_dir_southwest_int
\int_set:Nn \l__adfarrows_dir_southwest_int {3}
\int_new:N \l__adfarrows_dir_w_int
\int_set:Nn \l__adfarrows_dir_w_int {4}
\def\adfarrows@west{west}%
\int_new:N \l__adfarrows_dir_west_int
\int_set:Nn \l__adfarrows_dir_west_int {4}
\int_new:N \l__adfarrows_dir_nw_int
\int_set:Nn \l__adfarrows_dir_nw_int {5}
\int_new:N \l__adfarrows_dir_northwest_int
\int_set:Nn \l__adfarrows_dir_northwest_int {5}
\int_new:N \l__adfarrows_dir_n_int
\int_set:Nn \l__adfarrows_dir_n_int {6}
\int_new:N \l__adfarrows_dir_north_int
\int_set:Nn \l__adfarrows_dir_north_int {6}
\int_new:N \l__adfarrows_dir_ne_int
\int_set:Nn \l__adfarrows_dir_ne_int {7}
\int_new:N \l__adfarrows_dir_northeast_int
\int_set:Nn \l__adfarrows_dir_northeast_int {7}
\int_new:N \g__adfarrows_base_int
\int_new:N \g__adfarrows_add_int
\int_new:N \l__adfarrows_base_opentail_int
\int_set:Nn \l__adfarrows_base_opentail_int {3}
\int_new:N \l__adfarrows_base_plain_int
\int_set:Nn \l__adfarrows_base_plain_int {11}
\int_new:N \l__adfarrows_base_comic_int
\int_set:Nn \l__adfarrows_base_comic_int {19}
\int_new:N \l__adfarrows_base_solidtail_int
\int_set:Nn \l__adfarrows_base_solidtail_int {29}
\int_new:N \l__adfarrows_base_thick_int
\int_set:Nn \l__adfarrows_base_thick_int {37}
\int_new:N \l__adfarrows_base_tail_int
\int_set:Nn \l__adfarrows_base_tail_int {45}
\int_new:N \l__adfarrows_arrow_int
\cs_new_nopar:Nn \__adfarrows_arrow:nn
{
\int_if_exist:cTF { l__adfarrows_base_#1_int }
{
\int_gset_eq:Nc \g__adfarrows_base_int { l__adfarrows_base_#1_int }
}{ % some kind of error check needed here
\int_gset:Nn \g__adfarrows_base_int { #1 }
}
\int_if_exist:cTF { l__adfarrows_dir_#2_int }
{
\int_gset_eq:Nc \g__adfarrows_add_int { l__adfarrows_dir_#2_int }
}{
\PackageError{adfarrows}{#2 ~not~a~valid~direction.~Setting~east~}
\int_gzero:N \g__adfarrows_add_int
}
\int_set:Nn \l__adfarrows_arrow_int { \g__adfarrows_base_int + \g__adfarrows_add_int }
\int_compare:nNnTF { \l__adfarrows_arrow_int } < { 53 }
{ %^^A ~ \ifnum ... \the \numexpr ... N \the \numexpr ... \else ... \fi
\int_compare:nNnTF { \l__adfarrows_arrow_int } > { 0 }
{
\expandafter\adfarrows@style\expandafter\char \int_to_arabic:n {
\l__adfarrows_arrow_int
}
}{
\PackageError{adfarrows}{\textbackslash l__adfarrows_arrow_int~must~be~greater~than~0~but~is~\int_to_arabic:n {\l__adfarrows_arrow_int}}%
}
}{
\PackageError{adfarrows}{\textbackslash l__adfarrows_arrow_int ~ must~be~less~than~than~53~but~is~\int_to_arabic:n {\l__adfarrows_arrow_int}}%
}
}
\cs_new_nopar:Nn \__adfarrows_arrow:n
{
\adfarrows@style\char#1
}
\NewDocumentCommand \adfarrow { o m }
{
\group_begin:
\IfValueTF { #1 }
{
\__adfarrows_arrow:nn { #1 } { #2 }
}{
\__adfarrows_arrow:n { #2 }
}
\group_end:
}
\ExplSyntaxOff
\newcommand*{\adfhalfarrowright}{\adfarrow{1}}
\newcommand*{\adfhalfarrowleft}{\adfarrow{2}}
\newcommand*{\adfhalfarrowrightsolid}{\adfarrow{27}}
\newcommand*{\adfhalfarrowleftsolid}{\adfarrow{28}}
\gdef\adfarrowe#1{%
\ifcase #1 \relax
\or \adfarrow{3}%
\or \adfarrow{11}%
\or \adfarrow{19}%
\or \adfarrow{29}%
\or \adfarrow{37}%
\or \adfarrow{45}%
\fi}
\gdef\adfarrowse#1{%
\ifcase #1 \relax
\or \adfarrow{4}%
\or \adfarrow{12}%
\or \adfarrow{20}%
\or \adfarrow{30}%
\or \adfarrow{38}%
\or \adfarrow{46}%
\fi}
\gdef\adfarrows#1{%
\ifcase #1 \relax
\or \adfarrow{5}%
\or \adfarrow{13}%
\or \adfarrow{21}%
\or \adfarrow{31}%
\or \adfarrow{39}%
\or \adfarrow{47}%
\fi}
\gdef\adfarrowsw#1{%
\ifcase #1 \relax
\or \adfarrow{6}%
\or \adfarrow{14}%
\or \adfarrow{22}%
\or \adfarrow{32}%
\or \adfarrow{40}%
\or \adfarrow{48}%
\fi}
\gdef\adfarroww#1{%
\ifcase #1 \relax
\or \adfarrow{7}%
\or \adfarrow{15}%
\or \adfarrow{23}%
\or \adfarrow{33}%
\or \adfarrow{41}%
\or \adfarrow{49}%
\fi}
\gdef\adfarrownw#1{%
\ifcase #1 \relax
\or \adfarrow{8}%
\or \adfarrow{16}%
\or \adfarrow{24}%
\or \adfarrow{34}%
\or \adfarrow{42}%
\or \adfarrow{50}%
\fi}
\gdef\adfarrown#1{%
\ifcase #1 \relax
\or \adfarrow{9}%
\or \adfarrow{17}%
\or \adfarrow{25}%
\or \adfarrow{35}%
\or \adfarrow{43}%
\or \adfarrow{51}%
\fi}
\gdef\adfarrowne#1{%
\ifcase #1 \relax
\or \adfarrow{10}%
\or \adfarrow{18}%
\or \adfarrow{26}%
\or \adfarrow{36}%
\or \adfarrow{44}%
\or \adfarrow{52}%
\fi}
%% end adfarrows.sty
\endinput
%%
%% End of file `adfarrows.sty'.
|