| 1 |
% \iffalse meta-comment |
| 2 |
% |
| 3 |
% Copyright (C) 2016 by Paul D. Gessler <[email protected]> |
| 4 |
% ------------------------------------------------------------------------------ |
| 5 |
% This work may be distributed and/or modified under the |
| 6 |
% conditions of the LaTeX Project Public License, either version 1.3 |
| 7 |
% of this license or (at your option) any later version. |
| 8 |
% The latest version of this license is in |
| 9 |
% http://www.latex-project.org/lppl.txt |
| 10 |
% and version 1.3 or later is part of all distributions of LaTeX |
| 11 |
% version 2005/12/01 or later. |
| 12 |
% |
| 13 |
% This work has the LPPL maintenance status `maintained'. |
| 14 |
% |
| 15 |
% The Current Maintainer of this work is Paul D. Gessler <[email protected]>. |
| 16 |
% |
| 17 |
% This work consists of the files asapsym.dtx, asapsym.ins, and README.md; |
| 18 |
% the compiled documentation asapsym.pdf (generated from asapsym.dtx); |
| 19 |
% and the derived files asapsym.sty, asapsym.code.tex, and asapsym-generic.tex. |
| 20 |
% ------------------------------------------------------------------------------ |
| 21 |
% The OpenType font file Asap-Symbol.otf is Copyright (c) 2014-2015, |
| 22 |
% Omnibus-Type (www.omnibus-type.com <[email protected]>). |
| 23 |
% It is redistributed with this work under the terms of the SIL Open Font |
| 24 |
% License (OFL), version 1.1. The full text of this license is available at: |
| 25 |
% http://scripts.sil.org/OFL_web |
| 26 |
% ------------------------------------------------------------------------------ |
| 27 |
% |
| 28 |
% \fi |
| 29 |
% |
| 30 |
% \iffalse |
| 31 |
%<*driver> |
| 32 |
\ProvidesFile{asapsym.dtx} |
| 33 |
%</driver> |
| 34 |
%<latexwrapper>\NeedsTeXFormat{LaTeX2e} |
| 35 |
%<latexwrapper>\ProvidesPackage{asapsym} |
| 36 |
%<*latexwrapper> |
| 37 |
[2016/03/20 v1.0 convenience macros for ASAP symbol font] |
| 38 |
%</latexwrapper> |
| 39 |
% |
| 40 |
%<*driver> |
| 41 |
\documentclass{ltxdoc} |
| 42 |
\usepackage{asapsym,booktabs,hologo,microtype} |
| 43 |
\EnableCrossrefs |
| 44 |
\CodelineIndex |
| 45 |
\RecordChanges |
| 46 |
\begin{document} |
| 47 |
\DocInput{asapsym.dtx} |
| 48 |
\PrintChanges |
| 49 |
\PrintIndex |
| 50 |
\end{document} |
| 51 |
%</driver> |
| 52 |
% \fi |
| 53 |
% |
| 54 |
% \CheckSum{182} |
| 55 |
% |
| 56 |
% \CharacterTable |
| 57 |
% {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 |
| 58 |
% 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 |
| 59 |
% Digits \0\1\2\3\4\5\6\7\8\9 |
| 60 |
% Exclamation \! Double quote \" Hash (number) \# |
| 61 |
% Dollar \$ Percent \% Ampersand \& |
| 62 |
% Acute accent \' Left paren \( Right paren \) |
| 63 |
% Asterisk \* Plus \+ Comma \, |
| 64 |
% Minus \- Point \. Solidus \/ |
| 65 |
% Colon \: Semicolon \; Less than \< |
| 66 |
% Equals \= Greater than \> Question mark \? |
| 67 |
% Commercial at \@ Left bracket \[ Backslash \\ |
| 68 |
% Right bracket \] Circumflex \^ Underscore \_ |
| 69 |
% Grave accent \` Left brace \{ Vertical bar \| |
| 70 |
% Right brace \} Tilde \~} |
| 71 |
% |
| 72 |
% \changes{v1.0}{2016/03/20}{Initial public release} |
| 73 |
% |
| 74 |
% \DoNotIndex{\@,\bgroup,\catcode,\csname,\def,\directlua,\edef,\egroup,\else,% |
| 75 |
% \endcsname,\endinput,\errmessage,\expandafter,\fi,\ifdefined,\input,% |
| 76 |
% \RequirePackage,\the,\XeTeXinterchartoks} |
| 77 |
% |
| 78 |
% \providecommand*{\url}{\texttt} |
| 79 |
% \newcommand{\pkg}[1]{\textsf{#1}} |
| 80 |
% \newcommand{\tr}[1]{\ttfamily\textbackslash asap#1 & \vphantom{Ag}\csname asap#1\endcsname \\} |
| 81 |
% \newcommand{\ts}[1]{\tr{#1Sign}} |
| 82 |
% \newcommand{\tn}[1]{\ts{Not#1}} |
| 83 |
% \newcommand{\tp}[1]{\tr{#1}} |
| 84 |
% \newcommand{\td}[1]{ |
| 85 |
% \tp{Female#1} |
| 86 |
% \tp{Male#1} |
| 87 |
% } |
| 88 |
% |
| 89 |
% \GetFileInfo{asapsym.dtx} |
| 90 |
% \title{The \textsf{asapsym} package} |
| 91 |
% \author{Paul D. Gessler \\ \url{[email protected]}} |
| 92 |
% \date{\fileversion~from \filedate} |
| 93 |
% |
| 94 |
% \maketitle |
| 95 |
% |
| 96 |
% \section{Introduction} |
| 97 |
% |
| 98 |
% The \pkg{asapsym} package provides convenience macros for using the symbols |
| 99 |
% contained in the included \emph{ASAP Symbol} font. The font is part of the |
| 100 |
% ASAP family\footnote{\url{http://www.omnibus-type.com/fonts/asap.php}} of |
| 101 |
% fonts. The font is designed by Omnibus-Type\footnote{\url{http://www.omnibus-type.com/index.php}} |
| 102 |
% and released under the SIL Open Font License (OFL)\footnote{\url{http://scripts.sil.org/OFL}}, |
| 103 |
% version 1.1. |
| 104 |
% |
| 105 |
% Development of the package is currently hosted on GitHub\footnote{\url{http://github.com/pdgessler/asapsym}}. |
| 106 |
% You are welcome to follow development, submit any issues you discover, or |
| 107 |
% suggest improvements/enhancements using the web interface there. |
| 108 |
% |
| 109 |
% \section{Usage} |
| 110 |
% |
| 111 |
% To use the macros, you must use an OTF-capable engine with \hologo{eTeX} |
| 112 |
% extensions (\hologo{XeTeX} or \hologo{LuaTeX} both fit the bill). To load the |
| 113 |
% macros, choose the loading mechanism based on the format you are using: |
| 114 |
% \begin{verbatim} |
| 115 |
% \usepackage{asapsym} % LaTeX |
| 116 |
% \input asapsym.code.tex % Plain TeX\end{verbatim} |
| 117 |
% |
| 118 |
% Once the package is loaded, all macros are available for use throughout your |
| 119 |
% document. Refer to sections \ref{sec:arrows} to \ref{sec:transportation} for |
| 120 |
% a complete listing of macros and their resulting symbols, grouped by category. |
| 121 |
% |
| 122 |
% \section{Future Work} |
| 123 |
% |
| 124 |
% In future releases, I plan to add: |
| 125 |
% \begin{itemize} |
| 126 |
% \item color support for the `not' sign overlays, |
| 127 |
% \item switches/options for displaying male/female variants of the people |
| 128 |
% symbols, |
| 129 |
% \item alias commands for custom user naming, and |
| 130 |
% \item \hologo{ConTeXt} support. |
| 131 |
% \end{itemize} |
| 132 |
% |
| 133 |
% \section{Arrows} \label{sec:arrows} |
| 134 |
% \begin{tabular}{lc} |
| 135 |
% \toprule |
| 136 |
% Macro & Symbol \\ |
| 137 |
% \midrule |
| 138 |
% \tr{ArrowLeft} |
| 139 |
% \tr{ArrowUpLeft} |
| 140 |
% \tr{ArrowUp} |
| 141 |
% \tr{ArrowUpRight} |
| 142 |
% \tr{ArrowRight} |
| 143 |
% \tr{ArrowDownRight} |
| 144 |
% \tr{ArrowDown} |
| 145 |
% \tr{ArrowDownLeft} |
| 146 |
% \tr{ArrowCircleOpenLeft} |
| 147 |
% \tr{ArrowCircleOpenUpLeft} |
| 148 |
% \tr{ArrowCircleOpenUp} |
| 149 |
% \tr{ArrowCircleOpenUpRight} |
| 150 |
% \tr{ArrowCircleOpenRight} |
| 151 |
% \tr{ArrowCircleOpenDownRight} |
| 152 |
% \tr{ArrowCircleOpenDown} |
| 153 |
% \tr{ArrowCircleOpenDownLeft} |
| 154 |
% \tr{ArrowCircleFillLeft} |
| 155 |
% \tr{ArrowCircleFillUpLeft} |
| 156 |
% \tr{ArrowCircleFillUp} |
| 157 |
% \tr{ArrowCircleFillUpRight} |
| 158 |
% \tr{ArrowCircleFillRight} |
| 159 |
% \tr{ArrowCircleFillDownRight} |
| 160 |
% \tr{ArrowCircleFillDown} |
| 161 |
% \tr{ArrowCircleFillDownLeft} |
| 162 |
% \bottomrule |
| 163 |
% \end{tabular} |
| 164 |
% |
| 165 |
% \section{Elevators} |
| 166 |
% \begin{tabular}{lc} |
| 167 |
% \toprule |
| 168 |
% Macro & Symbol \\ |
| 169 |
% \midrule |
| 170 |
% \tr{Elevator} |
| 171 |
% \tr{Stair} |
| 172 |
% \tr{StairDown} |
| 173 |
% \tr{StairUp} |
| 174 |
% \tr{Escalator} |
| 175 |
% \tr{EscalatorDown} |
| 176 |
% \tr{EscalatorUp} |
| 177 |
% \bottomrule |
| 178 |
% \end{tabular} |
| 179 |
% |
| 180 |
% \section{Objects} |
| 181 |
% \begin{tabular}{lc} |
| 182 |
% \toprule |
| 183 |
% Macro & Symbol \\ |
| 184 |
% \midrule |
| 185 |
% \tr{Book} |
| 186 |
% \tr{Envelope} |
| 187 |
% \tr{Gift} |
| 188 |
% \tr{Locker} |
| 189 |
% \tr{LostAndFound} |
| 190 |
% \tr{Microscope} |
| 191 |
% \tr{Cross} |
| 192 |
% \tr{Phone} |
| 193 |
% \tr{MobilePhone} |
| 194 |
% \tr{Tablet} |
| 195 |
% \tr{Monitor} |
| 196 |
% \tr{Utensils} |
| 197 |
% \tr{Mug} |
| 198 |
% \tr{Hanger} |
| 199 |
% \tr{Cigarette} |
| 200 |
% \bottomrule |
| 201 |
% \end{tabular} |
| 202 |
% |
| 203 |
% \section{People} |
| 204 |
% \begin{tabular}{lc} |
| 205 |
% \toprule |
| 206 |
% Macro & Symbol \\ |
| 207 |
% \midrule |
| 208 |
% \td{WithServiceAnimal} |
| 209 |
% \td{WalkingDog} |
| 210 |
% \td{Walking} |
| 211 |
% \td{WithLuggageWaving} |
| 212 |
% \td{WithLuggageWaiting} |
| 213 |
% \td{DiscardingTrash} |
| 214 |
% \td{AtHelpDesk} |
| 215 |
% \td{HoldingInfant} |
| 216 |
% \td{WalkingStroller} |
| 217 |
% \td{WithChild} |
| 218 |
% \tp{WalkingCane} |
| 219 |
% \tp{WaitingSeated} |
| 220 |
% \td{AtDrinkingFountain} |
| 221 |
% \td{Adult} |
| 222 |
% \td{Child} |
| 223 |
% \tp{WheelchairStationary} |
| 224 |
% \tp{WheelchairInMotion} |
| 225 |
% \tp{Pregnant} |
| 226 |
% \tp{GroupMeeting} |
| 227 |
% \tp{Cycling} |
| 228 |
% \tp{Dog} |
| 229 |
% \tp{Infant} |
| 230 |
% \bottomrule |
| 231 |
% \end{tabular} |
| 232 |
% |
| 233 |
% \section{Signals} |
| 234 |
% \begin{tabular}{lc} |
| 235 |
% \toprule |
| 236 |
% Macro & Symbol \\ |
| 237 |
% \midrule |
| 238 |
% \ts{Information} |
| 239 |
% \ts{Hospital} |
| 240 |
% \ts{Help} |
| 241 |
% \ts{Dollar} |
| 242 |
% \ts{Emergency} |
| 243 |
% \ts{Parking} |
| 244 |
% \ts{Walk} |
| 245 |
% \ts{Dog} |
| 246 |
% \ts{MobilePhone} |
| 247 |
% \ts{Cigarette} |
| 248 |
% \ts{Not} |
| 249 |
% \midrule |
| 250 |
% \tn{Information} |
| 251 |
% \tn{Hospital} |
| 252 |
% \tn{Help} |
| 253 |
% \tn{Dollar} |
| 254 |
% \tn{Emergency} |
| 255 |
% \tn{Parking} |
| 256 |
% \tn{Walk} |
| 257 |
% \tn{Dog} |
| 258 |
% \tn{MobilePhone} |
| 259 |
% \tn{Cigarette} |
| 260 |
% \bottomrule |
| 261 |
% \end{tabular} |
| 262 |
% |
| 263 |
% \section{Transportation} \label{sec:transportation} |
| 264 |
% \begin{tabular}{lc} |
| 265 |
% \toprule |
| 266 |
% Macro & Symbol \\ |
| 267 |
% \midrule |
| 268 |
% \tr{Boat} |
| 269 |
% \tr{Helicopter} |
| 270 |
% \tr{AirplaneOverhead} |
| 271 |
% \tr{AirplaneTakeoff} |
| 272 |
% \tr{AirplaneLanding} |
| 273 |
% \tr{Bicycle} |
| 274 |
% \tr{Automobile} |
| 275 |
% \tr{Taxi} |
| 276 |
% \tr{AutomobileWithKey} |
| 277 |
% \tr{Bus} |
| 278 |
% \tr{Train} |
| 279 |
% \bottomrule |
| 280 |
% \end{tabular} |
| 281 |
% |
| 282 |
% \StopEventually{} |
| 283 |
% |
| 284 |
% \section{Implementation} |
| 285 |
% |
| 286 |
% The implementation of the macros is divided into three parts: |
| 287 |
% \begin{itemize} |
| 288 |
% \item a \LaTeX\ package wrapper file (|asapsym.sty|), |
| 289 |
% \item a Plain \TeX\ loader file (|asapsym.code.tex|), and |
| 290 |
% \item the generic macro definition file (|asapsym-generic.tex|). |
| 291 |
% \end{itemize} |
| 292 |
% The third file is read in by each of the first two files after their own |
| 293 |
% format-specific macros are defined. |
| 294 |
% |
| 295 |
% \subsection{\LaTeX\ Package Wrapper} |
| 296 |
% \iffalse |
| 297 |
%<*latexwrapper> |
| 298 |
% \fi |
| 299 |
% |
| 300 |
% We use \pkg{fontspec} for loading OTF fonts and create a new font family to be |
| 301 |
% used by the package: |
| 302 |
% \begin{macrocode} |
| 303 |
\RequirePackage{fontspec} |
| 304 |
\newfontfamily{\asapsym}{Asap Symbol} |
| 305 |
% \end{macrocode} |
| 306 |
% The \pkg{fontspec} package takes care of requiring OTF-capable engines, |
| 307 |
% producing a prominent error if one is not being used. |
| 308 |
% |
| 309 |
% \begin{macro}{\asapsym@raw} |
| 310 |
% The |\asapsym@raw|\marg{stylistic-set}\marg{character} macro is used |
| 311 |
% internally to typeset the actual symbol. The first argument is the stylistic |
| 312 |
% set from which the symbol is to be taken. For simplicity, the leading zero |
| 313 |
% must be present for stylistic sets 9 and below. The second argument is the |
| 314 |
% character where symbol exists in the chosen stylistic set. |
| 315 |
% \begin{macrocode} |
| 316 |
\def\asapsym@raw#1#2{\bgroup\asapsym% |
| 317 |
\addfontfeatures{StylisticSet=#1}#2\egroup} |
| 318 |
% \end{macrocode} |
| 319 |
% The font is selected, the stylistic set applied, and the character is typeset |
| 320 |
% within a group. |
| 321 |
% \end{macro} |
| 322 |
% |
| 323 |
% Having defined the only format-specific code, the generic code is |\input|: |
| 324 |
% \begin{macrocode} |
| 325 |
\input{asapsym-generic} |
| 326 |
% \end{macrocode} |
| 327 |
% |
| 328 |
% \iffalse |
| 329 |
%</latexwrapper> |
| 330 |
% \fi |
| 331 |
% |
| 332 |
% \subsection{Plain \TeX\ Loader} |
| 333 |
% \iffalse |
| 334 |
%<*plainwrapper> |
| 335 |
% \fi |
| 336 |
% |
| 337 |
% We adopt the \LaTeX\ convention of using |@| in protected macro names |
| 338 |
% throughout the code. Therefore, we must first save the current category code |
| 339 |
% of |@| for later restoration, and set its category code to `letter` |
| 340 |
% \begin{macrocode} |
| 341 |
\edef\asapsymatcode{\the\catcode`\@} |
| 342 |
\catcode`\@=11 |
| 343 |
% \end{macrocode} |
| 344 |
% |
| 345 |
% Next, we do some engine detection to ensure that a compatible one is used: |
| 346 |
% \begin{macrocode} |
| 347 |
\ifdefined\XeTeXinterchartoks % we are in XeTeX |
| 348 |
\else\ifdefined\directlua % we are in LuaTex |
| 349 |
% \end{macrocode} |
| 350 |
% For \hologo{LuaTeX}, we use |luaotfload.sty| so that the same font loading |
| 351 |
% syntax may be used in \hologo{XeTeX} and \hologo{LuaTeX}: |
| 352 |
% \begin{macrocode} |
| 353 |
\input luaotfload.sty |
| 354 |
% \end{macrocode} |
| 355 |
% If a compatible engine is not detected, we issue an error message and stop |
| 356 |
% loading the remainder of the file: |
| 357 |
% \begin{macrocode} |
| 358 |
\else % not supported |
| 359 |
\errmessage{asapsym error: Not an OTF-capable engine! Use xetex or luatex} |
| 360 |
\expandafter\endinput |
| 361 |
\fi |
| 362 |
\fi |
| 363 |
% \end{macrocode} |
| 364 |
% |
| 365 |
% \begin{macro}{\asapsym@raw} |
| 366 |
% The |\asapsym@raw|\marg{stylistic-set}\marg{character} macro is used |
| 367 |
% internally to typeset the actual symbol, similar to the \LaTeX\ variant. |
| 368 |
% Here, we use the |\font| primitive to select the font and stylistic set: |
| 369 |
% \begin{macrocode} |
| 370 |
\def\asapsym@raw#1#2{\bgroup\font\asapsym = |
| 371 |
"[Asap-Symbol.otf]:+ss#1"\asapsym #2\egroup} |
| 372 |
% \end{macrocode} |
| 373 |
% \end{macro} |
| 374 |
% |
| 375 |
% Having defined all the format-specific code, the generic code is |\input|: |
| 376 |
% \begin{macrocode} |
| 377 |
\input asapsym-generic |
| 378 |
% \end{macrocode} |
| 379 |
% |
| 380 |
% Finally, we restore the category code of |@|: |
| 381 |
% \begin{macrocode} |
| 382 |
\catcode`\@=\asapsymatcode |
| 383 |
% \end{macrocode} |
| 384 |
% |
| 385 |
% \iffalse |
| 386 |
%</plainwrapper> |
| 387 |
% \fi |
| 388 |
% |
| 389 |
% \subsection{Generic Macro Code} |
| 390 |
% \iffalse |
| 391 |
%<*generic> |
| 392 |
% \fi |
| 393 |
% |
| 394 |
% Define a prefix to be used by all user-facing macros: |
| 395 |
% \begin{macrocode} |
| 396 |
\def\asapsym@prefix{asap} |
| 397 |
% \end{macrocode} |
| 398 |
% |
| 399 |
% \begin{macro}{\asapsym@set} |
| 400 |
% The |\asapsym@set|\marg{type}\marg{stylistic-set} macro defines a helper macro |
| 401 |
% for a given `type' of symbol. |
| 402 |
% \begin{macrocode} |
| 403 |
\def\asapsym@set#1#2{\expandafter\def% |
| 404 |
\csname\asapsym@prefix #1\endcsname##1{\asapsym@raw{#2}{##1}}} |
| 405 |
% \end{macrocode} |
| 406 |
% \end{macro} |
| 407 |
% |
| 408 |
% Define a helper macro for each `type' of symbol. The font is implemented such |
| 409 |
% that each `type' of symbol exists within a specific stylistic set: |
| 410 |
% \begin{macrocode} |
| 411 |
\asapsym@set{arrow}{06} |
| 412 |
\asapsym@set{elevator}{03} |
| 413 |
\asapsym@set{object}{04} |
| 414 |
\asapsym@set{people}{01} |
| 415 |
\asapsym@set{signal}{05} |
| 416 |
\asapsym@set{transport}{02} |
| 417 |
% \end{macrocode} |
| 418 |
% |
| 419 |
% \begin{macro}{\asapsym@sym} |
| 420 |
% The |\asapsym@sym|\marg{base-name}\marg{type}\marg{char} defines a |
| 421 |
% user-facing symbol macro. The resulting macro's |\csname| is comprised of |
| 422 |
% the package prefix and \marg{base-name}. The symbol is taken from character |
| 423 |
% slot \marg{char} of the stylistic set corresponding to \marg{type}. |
| 424 |
% \begin{macrocode} |
| 425 |
\def\asapsym@sym#1#2#3{\expandafter\def% |
| 426 |
\csname\asapsym@prefix#1\endcsname{\csname\asapsym@prefix#2\endcsname{#3}}} |
| 427 |
% \end{macrocode} |
| 428 |
% \end{macro} |
| 429 |
% |
| 430 |
% \begin{macro}{asapsym@mka} |
| 431 |
% |\asapsym@mka|\marg{base-name}\marg{char} is used to create a user-facing |
| 432 |
% arrow symbol macro. The macro name is comprised of the package prefix, a |
| 433 |
% prefix |Arrow|, and \marg{base-name}. The symbol is taken from character slot |
| 434 |
% \marg{char} of the arrows font. |
| 435 |
% \begin{macrocode} |
| 436 |
\def\asapsym@mka#1#2{\asapsym@sym{Arrow#1}{arrow}{#2}} |
| 437 |
% \end{macrocode} |
| 438 |
% \end{macro} |
| 439 |
% |
| 440 |
% All arrows are defined using the \emph{make arrow} helper macro: |
| 441 |
% \begin{macrocode} |
| 442 |
\asapsym@mka{Left}{A} |
| 443 |
\asapsym@mka{UpLeft}{B} |
| 444 |
\asapsym@mka{Up}{C} |
| 445 |
\asapsym@mka{UpRight}{D} |
| 446 |
\asapsym@mka{Right}{E} |
| 447 |
\asapsym@mka{DownRight}{F} |
| 448 |
\asapsym@mka{Down}{G} |
| 449 |
\asapsym@mka{DownLeft}{H} |
| 450 |
\asapsym@mka{CircleOpenLeft}{I} |
| 451 |
\asapsym@mka{CircleOpenUpLeft}{J} |
| 452 |
\asapsym@mka{CircleOpenUp}{K} |
| 453 |
\asapsym@mka{CircleOpenUpRight}{L} |
| 454 |
\asapsym@mka{CircleOpenRight}{M} |
| 455 |
\asapsym@mka{CircleOpenDownRight}{N} |
| 456 |
\asapsym@mka{CircleOpenDown}{O} |
| 457 |
\asapsym@mka{CircleOpenDownLeft}{P} |
| 458 |
\asapsym@mka{CircleFillLeft}{Q} |
| 459 |
\asapsym@mka{CircleFillUpLeft}{R} |
| 460 |
\asapsym@mka{CircleFillUp}{S} |
| 461 |
\asapsym@mka{CircleFillUpRight}{T} |
| 462 |
\asapsym@mka{CircleFillRight}{U} |
| 463 |
\asapsym@mka{CircleFillDownRight}{V} |
| 464 |
\asapsym@mka{CircleFillDown}{W} |
| 465 |
\asapsym@mka{CircleFillDownLeft}{X} |
| 466 |
% \end{macrocode} |
| 467 |
% |
| 468 |
% \begin{macro}{asapsym@mke} |
| 469 |
% |\asapsym@mke|\marg{base-name}\marg{char} is used to create a user-facing |
| 470 |
% elevator symbol macro. The macro name is comprised of the package prefix and |
| 471 |
% \marg{base-name}. The symbol is taken from character slot \marg{char} of the |
| 472 |
% elevators font. |
| 473 |
% \begin{macrocode} |
| 474 |
\def\asapsym@mke#1#2{\asapsym@sym{#1}{elevator}{#2}} |
| 475 |
% \end{macrocode} |
| 476 |
% \end{macro} |
| 477 |
% |
| 478 |
% All elevators are defined using the \emph{make elevator} helper macro: |
| 479 |
% \begin{macrocode} |
| 480 |
\asapsym@mke{Elevator}{A} |
| 481 |
\asapsym@mke{Stair}{B} |
| 482 |
\asapsym@mke{StairDown}{C} |
| 483 |
\asapsym@mke{StairUp}{D} |
| 484 |
\asapsym@mke{Escalator}{E} |
| 485 |
\asapsym@mke{EscalatorDown}{F} |
| 486 |
\asapsym@mke{EscalatorUp}{G} |
| 487 |
% \end{macrocode} |
| 488 |
% |
| 489 |
% \begin{macro}{asapsym@mko} |
| 490 |
% |\asapsym@mko|\marg{base-name}\marg{char} is used to create a user-facing |
| 491 |
% object symbol macro. The macro name is comprised of the package prefix and |
| 492 |
% \marg{base-name}. The symbol is taken from character slot \marg{char} of the |
| 493 |
% objects font. |
| 494 |
% \begin{macrocode} |
| 495 |
\def\asapsym@mko#1#2{\asapsym@sym{#1}{object}{#2}} |
| 496 |
% \end{macrocode} |
| 497 |
% \end{macro} |
| 498 |
% |
| 499 |
% All objects are defined using the \emph{make object} helper macro: |
| 500 |
% \begin{macrocode} |
| 501 |
\asapsym@mko{Book}{A} |
| 502 |
\asapsym@mko{Envelope}{B} |
| 503 |
\asapsym@mko{Gift}{C} |
| 504 |
\asapsym@mko{Locker}{D} |
| 505 |
\asapsym@mko{LostAndFound}{E} |
| 506 |
\asapsym@mko{Microscope}{F} |
| 507 |
\asapsym@mko{Cross}{G} |
| 508 |
\asapsym@mko{Phone}{H} |
| 509 |
\asapsym@mko{MobilePhone}{I} |
| 510 |
\asapsym@mko{Tablet}{J} |
| 511 |
\asapsym@mko{Monitor}{K} |
| 512 |
\asapsym@mko{Utensils}{L} |
| 513 |
\asapsym@mko{Mug}{M} |
| 514 |
\asapsym@mko{Hanger}{N} |
| 515 |
\asapsym@mko{Cigarette}{O} |
| 516 |
% \end{macrocode} |
| 517 |
% |
| 518 |
% \begin{macro}{asapsym@mkp} |
| 519 |
% |\asapsym@mkp|\marg{base-name}\marg{char} is used to create a user-facing |
| 520 |
% people symbol macro. The macro name is comprised of the package prefix and |
| 521 |
% \marg{base-name}. The symbol is taken from character slot \marg{char} of the |
| 522 |
% people font. |
| 523 |
% \begin{macrocode} |
| 524 |
\def\asapsym@mkp#1#2{\asapsym@sym{#1}{people}{#2}} |
| 525 |
% \end{macrocode} |
| 526 |
% \end{macro} |
| 527 |
% |
| 528 |
% \begin{macro}{asapsym@mkd} |
| 529 |
% |\asapsym@mkd|\marg{base-name}\marg{char} is used to create gender-specific |
| 530 |
% user-facing people symbol macros. The macro names are comprised of the package |
| 531 |
% prefix, |Male| or |Female| as the case may be, and \marg{base-name}. The |
| 532 |
% symbols are taken from character slot \marg{char} of the people font. |
| 533 |
% \begin{macrocode} |
| 534 |
\def\asapsym@mkd#1#2{ |
| 535 |
\asapsym@mkp{Male#1}{\uppercase{#2}} |
| 536 |
\asapsym@mkp{Female#1}{\lowercase{#2}}} |
| 537 |
% \end{macrocode} |
| 538 |
% \end{macro} |
| 539 |
% |
| 540 |
% All people are defined using the \emph{make people} helper macro. Some |
| 541 |
% symbols have the gender-specific variants, while others do not. |\asapsym@mkd| |
| 542 |
% and |\asapsym@mkp| are used as appropriate. |
| 543 |
% \begin{macrocode} |
| 544 |
\asapsym@mkd{WithServiceAnimal}{A} |
| 545 |
\asapsym@mkd{WalkingDog}{B} |
| 546 |
\asapsym@mkd{Walking}{C} |
| 547 |
\asapsym@mkd{WithLuggageWaving}{D} |
| 548 |
\asapsym@mkd{WithLuggageWaiting}{E} |
| 549 |
\asapsym@mkd{DiscardingTrash}{F} |
| 550 |
\asapsym@mkd{AtHelpDesk}{G} |
| 551 |
\asapsym@mkd{HoldingInfant}{H} |
| 552 |
\asapsym@mkd{WalkingStroller}{I} |
| 553 |
\asapsym@mkd{WithChild}{J} |
| 554 |
\asapsym@mkp{WalkingCane}{K} |
| 555 |
\asapsym@mkp{WaitingSeated}{L} |
| 556 |
\asapsym@mkd{AtDrinkingFountain}{M} % ??? is this correct ??? |
| 557 |
\asapsym@mkd{Adult}{N} |
| 558 |
\asapsym@mkd{Child}{O} |
| 559 |
\asapsym@mkp{WheelchairStationary}{P} |
| 560 |
\asapsym@mkp{WheelchairInMotion}{p} |
| 561 |
\asapsym@mkp{Pregnant}{Q} |
| 562 |
\asapsym@mkp{GroupMeeting}{R} |
| 563 |
\asapsym@mkp{Cycling}{S} |
| 564 |
\asapsym@mkp{Dog}{T} |
| 565 |
\asapsym@mkp{Infant}{U} |
| 566 |
% \end{macrocode} |
| 567 |
% |
| 568 |
% \begin{macro}{asapsym@mks} |
| 569 |
% |\asapsym@mks|\marg{base-name}\marg{char} is used to create user-facing sign |
| 570 |
% symbol macros, along with `negated' versions. The macro names are comprised |
| 571 |
% of the package prefix, |Not| for negated versions, \marg{base-name}, and |
| 572 |
% |Sign|. The symbols are taken from character slot \marg{char} of the people |
| 573 |
% font. For the negated versions, the not sign is overlaid. |
| 574 |
% \begin{macrocode} |
| 575 |
\def\asapsym@mks#1#2{ |
| 576 |
\asapsym@sym{#1Sign}{signal}{#2} |
| 577 |
\asapsym@sym{Not#1Sign}{signal}{#2\llap{X}}} |
| 578 |
% \end{macrocode} |
| 579 |
% \end{macro} |
| 580 |
% |
| 581 |
% All signals are defined using the \emph{make signal} helper macro: |
| 582 |
% \begin{macrocode} |
| 583 |
\asapsym@mks{Information}{A} |
| 584 |
\asapsym@mks{Hospital}{B} |
| 585 |
\asapsym@mks{Help}{C} |
| 586 |
\asapsym@mks{Dollar}{D} |
| 587 |
\asapsym@mks{Emergency}{E} |
| 588 |
\asapsym@mks{Parking}{F} |
| 589 |
\asapsym@mks{Walk}{G} |
| 590 |
\asapsym@mks{Dog}{H} |
| 591 |
\asapsym@mks{MobilePhone}{I} |
| 592 |
\asapsym@mks{Cigarette}{J} |
| 593 |
\asapsym@mks{Not}{X} |
| 594 |
% \end{macrocode} |
| 595 |
% |
| 596 |
% \begin{macro}{asapsym@mkt} |
| 597 |
% |\asapsym@mkt|\marg{base-name}\marg{char} is used to create a user-facing |
| 598 |
% transporation symbol macro. The macro name is comprised of the package prefix and |
| 599 |
% \marg{base-name}. The symbol is taken from character slot \marg{char} of the |
| 600 |
% transportation font. |
| 601 |
% \begin{macrocode} |
| 602 |
\def\asapsym@mkt#1#2{\asapsym@sym{#1}{transport}{#2}} |
| 603 |
% \end{macrocode} |
| 604 |
% \end{macro} |
| 605 |
% |
| 606 |
% All transports are defined using the \emph{make transportation} helper macro: |
| 607 |
% \begin{macrocode} |
| 608 |
\asapsym@mkt{Boat}{A} |
| 609 |
\asapsym@mkt{Helicopter}{B} |
| 610 |
\asapsym@mkt{AirplaneOverhead}{C} |
| 611 |
\asapsym@mkt{AirplaneTakeoff}{D} |
| 612 |
\asapsym@mkt{AirplaneLanding}{E} |
| 613 |
\asapsym@mkt{Bicycle}{F} |
| 614 |
\asapsym@mkt{Automobile}{G} |
| 615 |
\asapsym@mkt{Taxi}{H} |
| 616 |
\asapsym@mkt{AutomobileWithKey}{I} |
| 617 |
\asapsym@mkt{Bus}{J} |
| 618 |
\asapsym@mkt{Train}{K} |
| 619 |
% \end{macrocode} |
| 620 |
% |
| 621 |
% \iffalse |
| 622 |
%</generic> |
| 623 |
% \fi |
| 624 |
% |
| 625 |
% \Finale |
| 626 |
\endinput |