Debian Codegraph @

texmf-dist/source/latex/base/latexsym.dtx

raw
1 % \iffalse meta-comment
2 %
3 % Copyright (C) 1993-2025
4 % The LaTeX Project and any individual authors listed elsewhere
5 % in this file.
6 %
7 % This file is part of the LaTeX base system.
8 % -------------------------------------------
9 %
10 % It may be distributed and/or modified under the
11 % conditions of the LaTeX Project Public License, either version 1.3c
12 % of this license or (at your option) any later version.
13 % The latest version of this license is in
14 % https://www.latex-project.org/lppl.txt
15 % and version 1.3c or later is part of all distributions of LaTeX
16 % version 2008 or later.
17 %
18 % This file has the LPPL maintenance status "maintained".
19 %
20 % The list of all files belonging to the LaTeX base distribution is
21 % given in the file `manifest.txt'. See also `legal.txt' for additional
22 % information.
23 %
24 % The list of derived (unpacked) files belonging to the distribution
25 % and covered by LPPL is defined by the unpacking scripts (with
26 % extension .ins) which are part of the distribution.
27 %
28 % \fi
29 %
30 %
31 % \iffalse % this is a METACOMMENT !
32 %
33 % File `latexsym.dtx'.
34 % Copyright (C) 1994-2019 by Frank Mittelbach. All rights reserved.
35 %
36 %<package>\NeedsTeXFormat{LaTeX2e}
37 %<package>\ProvidesPackage{latexsym}
38 %<fd>\ProvidesFile{ulasy.fd}
39 %<-driver> [1998/08/17 v2.2e
40 %<package> Standard LaTeX package (lasy symbols)]
41 %<fd> LaTeX symbol font definitions]
42 %
43 %<*driver>
44 \documentclass{ltxdoc}
45 \usepackage{latexsym}
46 \GetFileInfo{latexsym.sty}
47 \providecommand\dst{\expandafter{\normalfont\scshape docstrip}}
48 \title{The \LaTeX{} symbol fonts for use with
49 \LaTeXe.\thanks{This file has version
50 number \fileversion, dated \filedate.}}
51 \date{\filedate}
52 \author{Frank Mittelbach}
53 \begin{document}
54 \MaintainedByLaTeXTeam{latex}
55 \maketitle
56 \DocInput{latexsym.dtx}
57 \end{document}
58 %</driver>
59 % \fi
60 %
61 % \changes{v2.2e}{1998/08/17}{Documentation fixes.}
62 %
63 % \section{Introduction}
64 %
65 % This file defines the package |latexsym| which makes the few
66 % additional characters available that come from the |lasy| fonts
67 % (\LaTeX's symbol fonts). These fonts are not automatically
68 % included in the NFSS2/\LaTeXe{} since they take up important
69 % space and aren't necessary if one makes use of the packages
70 % \texttt{amsfonts} or \texttt{amssymb}.
71 %
72 % The commands defined by the \texttt{latexsym} package are:
73 % \begin{quote}\raggedright
74 % |\mho|~$\mho$ \quad
75 % |\Join|~$\Join$ \quad
76 % |\Box|~$\Box$ \quad
77 % |\Diamond|~$\Diamond$ \quad
78 % |\leadsto|~$\leadsto$ \quad
79 % |\sqsubset|~$\sqsubset$ \quad
80 % |\sqsupset|~$\sqsupset$ \quad
81 % |\lhd|~$\lhd$ \quad
82 % |\unlhd|~$\unlhd$ \quad
83 % |\rhd|~$\rhd$ \quad
84 % |\unrhd|~$\unrhd$
85 % \end{quote}
86 %
87 % \MaybeStop{}
88 %
89 % \section{The \dst{} modules}
90 %
91 % The following modules are used in the implementation to direct
92 % \dst{} in generating the external files:
93 % \begin{center}
94 % \begin{tabular}{ll}
95 % driver & produce a documentation driver file \\
96 % package & produce a package file \\
97 % fd & produce a font definition file
98 % \end{tabular}
99 % \end{center}
100 %
101 %
102 % \section{The Implementation}
103 %
104 % The individual files generated from this code are identified at the
105 % very top of this file by a couple of lines looking like this:
106 % \begin{verbatim}
107 % %<fd>\ProvidesFile{Ulasy.fd}
108 % %<-driver> [????/??/?? v2.2?
109 % %<package> Standard LaTeX package (lasy symbols)]
110 % %<fd> LaTeX symbol font definitions]
111 %\end{verbatim}
112 %
113 % \begin{macrocode}
114 %<*package>
115 % \end{macrocode}
116 %
117 % \begin{macro}{\symlasy}
118 %
119 % It is possible to detect whether or not the \LaTeX{} symbols are
120 % already defined by checking for the math group number with the
121 % name |\symlasy|.
122 %
123 % In that case we exit but write a message to the transcript file.
124 % \begin{macrocode}
125 \ifx\symlasy\undefined \else
126 \wlog{Package latexsym: nothing to set up^^J}%
127 \endinput \fi
128 % \end{macrocode}
129 % Otherwise we define the new symbol font.
130 % \begin{macrocode}
131 \DeclareSymbolFont{lasy}{U}{lasy}{m}{n}
132 \SetSymbolFont{lasy}{bold}{U}{lasy}{b}{n}
133 % \end{macrocode}
134 % \end{macro}
135 %
136 %
137 % Because the lasy symbols are made an error in the format we have
138 % to undefine them before we can set them anew with
139 % |\DeclareMathSymbol|.
140 % \begin{macrocode}
141 \let\mho\undefined \let\sqsupset\undefined
142 \let\Join\undefined \let\lhd\undefined
143 \let\Box\undefined \let\unlhd\undefined
144 \let\Diamond\undefined \let\rhd\undefined
145 \let\leadsto\undefined \let\unrhd\undefined
146 \let\sqsubset\undefined
147 % \end{macrocode}
148 % \changes{v2.2a}{1995/03/18}{\cs{lhd} and friends should be bin ops.}
149 % \begin{macrocode}
150 \DeclareMathSymbol\mho {\mathord}{lasy}{"30}
151 \DeclareMathSymbol\Join {\mathrel}{lasy}{"31}
152 \DeclareMathSymbol\Box {\mathord}{lasy}{"32}
153 \DeclareMathSymbol\Diamond {\mathord}{lasy}{"33}
154 \DeclareMathSymbol\leadsto {\mathrel}{lasy}{"3B}
155 \DeclareMathSymbol\sqsubset{\mathrel}{lasy}{"3C}
156 \DeclareMathSymbol\sqsupset{\mathrel}{lasy}{"3D}
157 \DeclareMathSymbol\lhd {\mathbin}{lasy}{"01}
158 \DeclareMathSymbol\unlhd {\mathbin}{lasy}{"02}
159 \DeclareMathSymbol\rhd {\mathbin}{lasy}{"03}
160 \DeclareMathSymbol\unrhd {\mathbin}{lasy}{"04}
161 % \end{macrocode}
162 % To save some space we can remove the definition of |\not@base|
163 % since it isn't any longer needed. (We use |\@undefined| so that
164 % gives an error and not a recursive definition
165 % if it is still used somewhere.)
166 % \changes{v2.2b}{1995/07/03}{Free space for \cs{not@base}}
167 % \begin{macrocode}
168 \let\not@base\@undefined
169 %</package>
170 % \end{macrocode}
171 %
172 % \subsection{\LaTeX{} symbols fonts}
173 %
174 % \changes{v2.2d}{1996/11/20}{lowercase ulasy.fd /1044}
175 % The rest of this file defines the font shape declarations
176 % that have to go into the corresponding |.fd| file.
177 %
178 % \begin{macrocode}
179 %<*fd>
180 \DeclareFontFamily{U}{lasy}{}
181 \DeclareFontShape{U}{lasy}{m}{n}{ <5> <6> <7> <8> <9> gen * lasy
182 <10> <10.95> <12> <14.4> <17.28> <20.74> <24.88>lasy10 }{}
183 % \end{macrocode}
184 % Since there are no bold lasy symbols below 10pt we silently
185 % substitute them by the medium ones to avoid terminal warnings if
186 % |\boldmath| is selected.
187 % \begin{macrocode}
188 \DeclareFontShape{U}{lasy}{b}{n}{ <-10> ssub * lasy/m/n
189 <10> <10.95> <12> <14.4> <17.28> <20.74> <24.88>lasyb10 }{}
190 %</fd>
191 % \end{macrocode}
192 %
193 % The next line goes into all files and in addition prevents \dst{}
194 % from adding any further code from the main source file (such as a
195 % character table).
196 % \begin{macrocode}
197 \endinput
198 % \end{macrocode}
199 %
200 % \DeleteShortVerb{\|}
201 % \Finale
202 %
203 %