Debian Codegraph @

texmf-dist/source/fonts/svrsymbols/svrsymbols.dtx

raw
1 %% \CharacterTable
2 %% {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
3 %% 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
4 %% Digits \0\1\2\3\4\5\6\7\8\9
5 %% Exclamation \! Double quote \" Hash (number) \#
6 %% Dollar \$ Percent \% Ampersand \&
7 %% Acute accent \' Left paren \( Right paren \)
8 %% Asterisk \* Plus \+ Comma \,
9 %% Minus \- Point \. Solidus \/
10 %% Colon \: Semicolon \; Less than \<
11 %% Equals \= Greater than \> Question mark \?
12 %% Commercial at \@ Left bracket \[ Backslash \\
13 %% Right bracket \] Circumflex \^ Underscore \_
14 %% Grave accent \` Left brace \{ Vertical bar \|
15 %% Right brace \} Tilde \~}
16 %%
17 %\iffalse
18 %
19 % (c) Copyright 2015-2019 Pablo Garcia Risueno, Apostolos Syropoulos,
20 % and Natalia Verges
21 % This program can be redistributed and/or modified under the
22 % terms of the LaTeX Project Public License Distributed from
23 % http://www.latex-project.org/lppl.txt; either
24 % version 1.3c of the License, or any later version.
25 %
26 % This work has the LPPL maintenance status `maintained'.
27 %
28 % Please report errors or suggestions for improvement to
29 %
30 % Apostolos Syropoulos ([email protected])
31 %
32 %\fi
33 % \CheckSum{344}
34 % \iffalse This is a Metacomment
35 %
36 %<svrsymbols, >\ProvidesFile{svrsymbols.sty}
37 %
38 %<svrsymbols, > [2019/02/12 v2.0b Package `svrsymbols.sty']
39 %
40 % \begin{macrocode}
41 %<*driver>
42 \documentclass{ltxdoc}
43 \GetFileInfo{svrsymbols.drv}
44 \usepackage{xltxtra}
45 \usepackage{svrsymbols}
46 \usepackage{fullpage}
47 \usepackage{longtable}
48 \begin{document}
49 \setmainfont[Mapping=tex-text]{Universal Modern}
50 \setmonofont{UM Typewriter}
51 \setsansfont[Mapping=tex-text]{GFS Neohellenic}
52 \DocInput{svrsymbols.dtx}
53 \end{document}
54 %</driver>
55 % \end{macrocode}
56 % \fi
57 %\MakeShortVerb{\|}
58 %\StopEventually{}
59 %\title{The \textsf{svrsymbols} \LaTeX\ Package:\\New ideograms for Physics}
60 %\author{Pablo Garc{\'\i}a Risue{\~n}o\\ Humboldt Universit\"at\\ zu Berlin, Germany\\
61 %\and Apostolos Syropoulos\\ Xanthi, Greece\\ \texttt{[email protected]}
62 %\and Nat\`alia Verg\'es\\ Besal\'u (Girona), Spain}
63 % \date{2019/02/12}
64 %\maketitle
65 % \begin{abstract}
66 % The \textsf{svrsymbols} package is a \LaTeX\ interface to the \textsf{SVRsymbols}
67 % font. The glyphs of this font are ideograms that have been designed for use in
68 % Physics texts. Some symbols are standard and some are entirely new.
69 %\end{abstract}
70 %
71 % \section{Introduction - Usage}
72 % Ideograms are present in most communication codes that are in daily use. Examples of ideograms are the digits
73 % 0,1,\ldots,9, mathematical symbols (like $+$, $-$, $\in$, $\sqrt{}$, etc.), emoticons, traffic signs or commercial logos.
74 % In English there are symbols that represent words (e.g., think of the symbols @, \$, and \&). In addition,
75 % there are symbols that are ubiquitous in certain languages (e.g., Chinese, Korean, and Japanese). Nowadays,
76 % the current ``corpus'' of modern languages that are written with an alphabet (e.g., Spanish and Greek) include
77 % certain ideograms and pictograms to enhance and simplify communication (e.g., think of smileys).
78 %
79 %\input svrsymbols.tex
80 %
81 % Physics employs the language of mathematics to express ideas and facts. Nevertheless, in Physics
82 % certain letters and symbols have reserved meaning. The \textsf{SVRsymbols}\footnote{This version of
83 % the package is bundled with an OpenType version of the font so that people who use LibreOffice can
84 % also use it in their documents.} font contain some new ideograms
85 % for use in Physics. The symbols have been designed so to be intuitive, easy to identify and to remember.
86 % The package \textsf{svrsymbols} currently has no options and provides an interface to the font. In
87 % particular, it defines commands that work only in math mode and provide access to the various glyphs of
88 % the \textsf{SVRsymbols} font. These commands as well as the symbols each command corresponds to are shown
89 % in Table~\ref{tbl1}. In addition there are three more commands that can be used get size-variants of the
90 % $\assumption$ symbol:
91 % \begin{displaymath}
92 % \bigassumption\rightarrow\mbox{\texttt{\char`\\bigassumption}},\;
93 % \biggassumption\rightarrow\mbox{\texttt{\char`\\biggassumption}},\;
94 % \Bigassumption\rightarrow\mbox{\texttt{\char`\\Bigassumption}}.
95 % \end{displaymath}
96 % \section{The Source code}
97 % The first part of the code is the identification part.
98 % \begin{macrocode}
99 %<*svrsymbols>
100 \NeedsTeXFormat{LaTeX2e}
101 \ProvidesPackage{svrsymbols}
102 [2019/02/12 v.2.0b, New Symbols for Physics.]
103 % \end{macrocode}
104 % The commands that follow define commands according to the NFSS necessary to access the font that contains
105 % the various glyphs. First we define a new font family and then the various variants. Since there are no
106 % variants, the commands use the ``default'' font.
107 % \begin{macrocode}
108 \DeclareFontFamily{OML}{svr}{}
109 \DeclareFontShape{OML}{svr}{m}{it}{
110 <-> SVRsymbols
111 }{}
112 \DeclareFontShape{OML}{svr}{b}{it}{
113 <-> SVRsymbols
114 }{}
115 \DeclareFontShape{OML}{svr}{m}{sl}{<->ssub * svr/m/it}{}
116 \DeclareFontShape{OML}{svr}{bx}{it}{<->ssub * svr/b/it}{}
117 \DeclareFontShape{OML}{svr}{b}{sl}{<->ssub * svr/b/it}{}
118 \DeclareFontShape{OML}{svr}{bx}{sl}{<->ssub * svr/b/sl}{}
119 \DeclareSymbolFont{svrsymbols}{OML}{svr}{m}{it}
120 \SetSymbolFont{svrsymbols}{bold}{OML}{svr}{b}{it}
121 % \end{macrocode}
122 % The commands that follow are the glyph access commands. Let us stress again that these commands can
123 % be used only in math mode.
124 % \begin{macrocode}
125 \DeclareMathSymbol{\method}{\mathord}{svrsymbols}{`A}
126 \DeclareMathSymbol{\orbit}{\mathord}{svrsymbols}{`B}
127 \DeclareMathSymbol{\atom}{\mathord}{svrsymbols}{`C}
128 \DeclareMathSymbol{\antiproton}{\mathord}{svrsymbols}{`D}
129 \DeclareMathSymbol{\antiquark}{\mathord}{svrsymbols}{`E}
130 \DeclareMathSymbol{\antiquarkb}{\mathord}{svrsymbols}{`F}
131 \DeclareMathSymbol{\antiquarkc}{\mathord}{svrsymbols}{`G}
132 \DeclareMathSymbol{\antiquarkd}{\mathord}{svrsymbols}{`H}
133 \DeclareMathSymbol{\antiquarks}{\mathord}{svrsymbols}{`I}
134 \DeclareMathSymbol{\antiquarkt}{\mathord}{svrsymbols}{`J}
135 \DeclareMathSymbol{\antiquarku}{\mathord}{svrsymbols}{`K}
136 \DeclareMathSymbol{\varphoton}{\mathord}{svrsymbols}{`L}
137 \DeclareMathSymbol{\antineutrino}{\mathord}{svrsymbols}{`M}
138 \DeclareMathSymbol{\neutrino}{\mathord}{svrsymbols}{`N}
139 \DeclareMathSymbol{\quark}{\mathord}{svrsymbols}{`O}
140 \DeclareMathSymbol{\quarkb}{\mathord}{svrsymbols}{`P}
141 \DeclareMathSymbol{\quarkc}{\mathord}{svrsymbols}{`Q}
142 \DeclareMathSymbol{\quarkd}{\mathord}{svrsymbols}{`R}
143 \DeclareMathSymbol{\quarks}{\mathord}{svrsymbols}{`S}
144 \DeclareMathSymbol{\quarkt}{\mathord}{svrsymbols}{`T}
145 \DeclareMathSymbol{\quarku}{\mathord}{svrsymbols}{`U}
146 \DeclareMathSymbol{\dipole}{\mathord}{svrsymbols}{`V}
147 \DeclareMathSymbol{\spindown}{\mathord}{svrsymbols}{`Z}
148 \DeclareMathSymbol{\electron}{\mathord}{svrsymbols}{`a}
149 \DeclareMathSymbol{\svrphoton}{\mathord}{svrsymbols}{`b}
150 \DeclareMathSymbol{\fermiDistrib}{\mathord}{svrsymbols}{`c}
151 \DeclareMathSymbol{\proton}{\mathord}{svrsymbols}{`d}
152 \DeclareMathSymbol{\nucleus}{\mathord}{svrsymbols}{`e}
153 \DeclareMathSymbol{\ion}{\mathord}{svrsymbols}{`f}
154 \DeclareMathSymbol{\neutron}{\mathord}{svrsymbols}{`g}
155 \DeclareMathSymbol{\hole}{\mathord}{svrsymbols}{`h}
156 \DeclareMathSymbol{\exciton}{\mathord}{svrsymbols}{`i}
157 \DeclareMathSymbol{\phonon}{\mathord}{svrsymbols}{`j}
158 \DeclareMathSymbol{\polaron}{\mathord}{svrsymbols}{`k}
159 \DeclareMathSymbol{\reference}{\mathord}{svrsymbols}{`l}
160 \DeclareMathSymbol{\positron}{\mathord}{svrsymbols}{`m}
161 \DeclareMathSymbol{\antiproton}{\mathord}{svrsymbols}{`n}
162 \DeclareMathSymbol{\spinup}{\mathord}{svrsymbols}{`o}
163 \DeclareMathSymbol{\plasmon}{\mathord}{svrsymbols}{`p}
164 \DeclareMathSymbol{\errorsym}{\mathord}{svrsymbols}{`q}
165 \DeclareMathSymbol{\water}{\mathord}{svrsymbols}{`r}
166 \DeclareMathSymbol{\graphene}{\mathord}{svrsymbols}{`s}
167 \DeclareMathSymbol{\solid}{\mathord}{svrsymbols}{`t}
168 \DeclareMathSymbol{\assumption}{\mathord}{svrsymbols}{`u}
169 \DeclareMathSymbol{\bigassumption}{\mathord}{svrsymbols}{"C8}
170 \DeclareMathSymbol{\biggassumption}{\mathord}{svrsymbols}{"C9}
171 \DeclareMathSymbol{\Bigassumption}{\mathord}{svrsymbols}{"CA}
172 \DeclareMathSymbol{\experimentalsym}{\mathord}{svrsymbols}{`v}
173 \DeclareMathSymbol{\antimuon}{\mathord}{svrsymbols}{`w}
174 \DeclareMathSymbol{\muon}{\mathord}{svrsymbols}{`x}
175 \DeclareMathSymbol{\antineutron}{\mathord}{svrsymbols}{`y}
176 \DeclareMathSymbol{\surface}{\mathord}{svrsymbols}{`z}
177 \DeclareMathSymbol{\fermion}{\mathord}{svrsymbols}{"A1}
178 \DeclareMathSymbol{\externalsym}{\mathord}{svrsymbols}{"A2}
179 \DeclareMathSymbol{\internalsym}{\mathord}{svrsymbols}{"A3}
180 \DeclareMathSymbol{\maxwellDistrib}{\mathord}{svrsymbols}{"A4}
181 \DeclareMathSymbol{\resistivity}{\mathord}{svrsymbols}{"A5}
182 \DeclareMathSymbol{\boseDistrib}{\mathord}{svrsymbols}{"A6}
183 \DeclareMathSymbol{\boson}{\mathord}{svrsymbols}{"A7}
184 \DeclareMathSymbol{\spin}{\mathord}{svrsymbols}{"C0}
185 \DeclareMathSymbol{\polariton}{\mathord}{svrsymbols}{"C1}
186 \DeclareMathSymbol{\conductivity}{\mathord}{svrsymbols}{"C2}
187 \DeclareMathSymbol{\bond}{\mathord}{svrsymbols}{"C3}
188 \DeclareMathSymbol{\covbond}{\mathord}{svrsymbols}{"C4}
189 \DeclareMathSymbol{\doublecovbond}{\mathord}{svrsymbols}{"C5}
190 \DeclareMathSymbol{\triplecovbond}{\mathord}{svrsymbols}{"C6}
191 \DeclareMathSymbol{\metalbond}{\mathord}{svrsymbols}{"C7}
192 \DeclareMathSymbol{\hbond}{\mathord}{svrsymbols}{"CB}
193 \DeclareMathSymbol{\svrexample}{\mathord}{svrsymbols}{"CC}
194 \DeclareMathSymbol{\magnon}{\mathord}{svrsymbols}{"CD}
195 \DeclareMathSymbol{\ionicbond}{\mathord}{svrsymbols}{"CE}
196 \DeclareMathSymbol{\tachyon}{\mathord}{svrsymbols}{"CF}
197 \DeclareMathSymbol{\adsorbent}{\mathord}{svrsymbols}{"D0}
198 \DeclareMathSymbol{\adsorbate}{\mathord}{svrsymbols}{"D1}
199 \DeclareMathSymbol{\anyon}{\mathord}{svrsymbols}{"D2}
200 \DeclareMathSymbol{\interaction}{\mathord}{svrsymbols}{"D3}
201 \DeclareMathSymbol{\quadrupole}{\mathord}{svrsymbols}{"D4}
202 \DeclareMathSymbol{\protein}{\mathord}{svrsymbols}{"D5}
203 \DeclareMathSymbol{\tauleptonplus}{\mathord}{svrsymbols}{"D6}
204 \DeclareMathSymbol{\tauleptonminus}{\mathord}{svrsymbols}{"D7}
205 \DeclareMathSymbol{\Bmesonplus}{\mathord}{svrsymbols}{"D9}
206 \DeclareMathSymbol{\Bmesonminus}{\mathord}{svrsymbols}{"DA}
207 \DeclareMathSymbol{\Bmesonnull}{\mathord}{svrsymbols}{"DB}
208 \DeclareMathSymbol{\Dmesonplus}{\mathord}{svrsymbols}{"DC}
209 \DeclareMathSymbol{\Dmesonminus}{\mathord}{svrsymbols}{"DD}
210 \DeclareMathSymbol{\Dmesonnull}{\mathord}{svrsymbols}{"DE}
211 \DeclareMathSymbol{\Tmesonplus}{\mathord}{svrsymbols}{"DF}
212 \DeclareMathSymbol{\Tmesonminus}{\mathord}{svrsymbols}{"E0}
213 \DeclareMathSymbol{\Tmesonnull}{\mathord}{svrsymbols}{"E1}
214 \DeclareMathSymbol{\Upsilonmeson}{\mathord}{svrsymbols}{"E2}
215 \DeclareMathSymbol{\phimeson}{\mathord}{svrsymbols}{"E3}
216 \DeclareMathSymbol{\phimesonnull}{\mathord}{svrsymbols}{"E4}
217 \DeclareMathSymbol{\rhomesonplus}{\mathord}{svrsymbols}{"E5}
218 \DeclareMathSymbol{\rhomesonminus}{\mathord}{svrsymbols}{"E6}
219 \DeclareMathSymbol{\rhomesonnull}{\mathord}{svrsymbols}{"E7}
220 \DeclareMathSymbol{\etameson}{\mathord}{svrsymbols}{"E8}
221 \DeclareMathSymbol{\etamesonprime}{\mathord}{svrsymbols}{"E9}
222 \DeclareMathSymbol{\pionplus}{\mathord}{svrsymbols}{"EA}
223 \DeclareMathSymbol{\pionminus}{\mathord}{svrsymbols}{"EB}
224 \DeclareMathSymbol{\pionnull}{\mathord}{svrsymbols}{"EC}
225 \DeclareMathSymbol{\Kaonplus}{\mathord}{svrsymbols}{"ED}
226 \DeclareMathSymbol{\Kaonminus}{\mathord}{svrsymbols}{"EE}
227 \DeclareMathSymbol{\Kaonnull}{\mathord}{svrsymbols}{"EF}
228 \DeclareMathSymbol{\Gluon}{\mathord}{svrsymbols}{"F0}
229 \DeclareMathSymbol{\Higgsboson}{\mathord}{svrsymbols}{"F1}
230 \DeclareMathSymbol{\Wbosonplus}{\mathord}{svrsymbols}{"F2}
231 \DeclareMathSymbol{\Wbosonminus}{\mathord}{svrsymbols}{"F3}
232 \DeclareMathSymbol{\Wboson}{\mathord}{svrsymbols}{"F4}
233 \DeclareMathSymbol{\Zboson}{\mathord}{svrsymbols}{"F5}
234 \DeclareMathSymbol{\Jpsimeson}{\mathord}{svrsymbols}{"F6}
235 \DeclareMathSymbol{\graviton}{\mathord}{svrsymbols}{"F7}
236 %</svrsymbols>
237 % \end{macrocode}
238 % \Finale