1 % \iffalse meta-comment
4 % The LaTeX3 Project and any individual authors listed elsewhere
7 % This file is part of the LaTeX base system.
8 % -------------------------------------------
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 % http://www.latex-project.org/lppl.txt
15 % and version 1.3c or later is part of all distributions of LaTeX
16 % version 2005/12/01 or later.
18 % This file has the LPPL maintenance status "maintained".
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
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.
32 % \iffalse % this is a METACOMMENT !
34 % File `latexsym.dtx'.
35 % Copyright 1994-1998 by Frank Mittelbach. All rights reserved.
37 %<package>\NeedsTeXFormat{LaTeX2e}
38 %<package>\ProvidesPackage{latexsym}
39 %<fd>\ProvidesFile{ulasy.fd}
40 %<-driver> [1998/08/17 v2.2e
41 %<package> Standard LaTeX package (lasy symbols)]
42 %<fd> LaTeX symbol font definitions]
45 \documentclass{ltxdoc}
47 \GetFileInfo{latexsym.sty}
48 \providecommand\dst{\expandafter{\normalfont\scshape docstrip}}
49 \title{The \LaTeX{} symbol fonts for use with
50 \LaTeXe.\thanks{This file has version
51 number \fileversion, dated \filedate.}}
53 \author{Frank Mittelbach}
55 \MaintainedByLaTeXTeam{latex}
57 \DocInput{latexsym.dtx}
62 % \changes{v2.2e}{1998/08/17}{Documentation fixes.}
64 % \section{Introduction}
66 % This file defines the package |latexsym| which makes the few
67 % additional characters available that come from the |lasy| fonts
68 % (\LaTeX's symbol fonts). These fonts are not automatically
69 % included in the NFSS2/\LaTeXe{} since they take up important
70 % space and aren't necessary if one makes use of the packages
71 % \texttt{amsfonts} or \texttt{amssymb}.
73 % The commands defined by the \texttt{latexsym} package are:
74 % \begin{quote}\raggedright
76 % |\Join|~$\Join$ \quad
78 % |\Diamond|~$\Diamond$ \quad
79 % |\leadsto|~$\leadsto$ \quad
80 % |\sqsubset|~$\sqsubset$ \quad
81 % |\sqsupset|~$\sqsupset$ \quad
83 % |\unlhd|~$\unlhd$ \quad
90 % \section{The \dst{} modules}
92 % The following modules are used in the implementation to direct
93 % \dst{} in generating the external files:
96 % driver & produce a documentation driver file \\
97 % package & produce a package file \\
98 % fd & produce a font definition file
103 % \section{The Implementation}
105 % The individual files generated from this code are identified at the
106 % very top of this file by a couple of lines looking like this:
108 % %<fd>\ProvidesFile{Ulasy.fd}
109 % %<-driver> [????/??/?? v2.2?
110 % %<package> Standard LaTeX package (lasy symbols)]
111 % %<fd> LaTeX symbol font definitions]
118 % \begin{macro}{\symlasy}
120 % It is possible to detect whether or not the \LaTeX{} symbols are
121 % already defined by checking for the math group number with the
124 % In that case we exit but write a message to the transcript file.
126 \ifx\symlasy\undefined \else
127 \wlog{Package latexsym: nothing to set up^^J}%
130 % Otherwise we define the new symbol font.
132 \DeclareSymbolFont{lasy}{U}{lasy}{m}{n}
133 \SetSymbolFont{lasy}{bold}{U}{lasy}{b}{n}
138 % Because the lasy symbols are made an error in the format we have
139 % to undefine them before we can set them anew with
140 % |\DeclareMathSymbol|.
142 \let\mho\undefined \let\sqsupset\undefined
143 \let\Join\undefined \let\lhd\undefined
144 \let\Box\undefined \let\unlhd\undefined
145 \let\Diamond\undefined \let\rhd\undefined
146 \let\leadsto\undefined \let\unrhd\undefined
147 \let\sqsubset\undefined
149 % \changes{v2.2a}{1995/03/18}{\cs{lhd} and friends should be bin ops.}
151 \DeclareMathSymbol\mho {\mathord}{lasy}{"30}
152 \DeclareMathSymbol\Join {\mathrel}{lasy}{"31}
153 \DeclareMathSymbol\Box {\mathord}{lasy}{"32}
154 \DeclareMathSymbol\Diamond {\mathord}{lasy}{"33}
155 \DeclareMathSymbol\leadsto {\mathrel}{lasy}{"3B}
156 \DeclareMathSymbol\sqsubset{\mathrel}{lasy}{"3C}
157 \DeclareMathSymbol\sqsupset{\mathrel}{lasy}{"3D}
158 \DeclareMathSymbol\lhd {\mathbin}{lasy}{"01}
159 \DeclareMathSymbol\unlhd {\mathbin}{lasy}{"02}
160 \DeclareMathSymbol\rhd {\mathbin}{lasy}{"03}
161 \DeclareMathSymbol\unrhd {\mathbin}{lasy}{"04}
163 % To save some space we can remove the definition of |\not@base|
164 % since it isn't any longer needed. (We use |\@undefined| so that
165 % gives an error and not a recursive definition
166 % if it is still used somewhere.)
167 % \changes{v2.2b}{1995/07/03}{Free space for \cs{not@base}}
169 \let\not@base\@undefined
173 % \subsection{\LaTeX{} symbols fonts}
175 % \changes{v2.2d}{1996/11/20}{lowercase ulasy.fd /1044}
176 % The rest of this file defines the the font shape declarations
177 % that have to go into the corresponding |.fd| file.
181 \DeclareFontFamily{U}{lasy}{}
182 \DeclareFontShape{U}{lasy}{m}{n}{ <5> <6> <7> <8> <9> gen * lasy
183 <10> <10.95> <12> <14.4> <17.28> <20.74> <24.88>lasy10 }{}
185 % Since there are no bold lasy symbols below 10pt we silently
186 % substitute them by the medium ones to avoid terminal warnings if
187 % |\boldmath| is selected.
189 \DeclareFontShape{U}{lasy}{b}{n}{ <-10> ssub * lasy/m/n
190 <10> <10.95> <12> <14.4> <17.28> <20.74> <24.88>lasyb10 }{}
194 % The next line goes into all files and in addition prevents \dst{}
195 % from adding any further code from the main source file (such as a
201 % \DeleteShortVerb{\|}
206 %% {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
207 %% 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
208 %% Digits \0\1\2\3\4\5\6\7\8\9
209 %% Exclamation \! Double quote \" Hash (number) \#
210 %% Dollar \$ Percent \% Ampersand \&
211 %% Acute accent \' Left paren \( Right paren \)
212 %% Asterisk \* Plus \+ Comma \,
213 %% Minus \- Point \. Solidus \/
214 %% Colon \: Semicolon \; Less than \<
215 %% Equals \= Greater than \> Question mark \?
216 %% Commercial at \@ Left bracket \[ Backslash \\
217 %% Right bracket \] Circumflex \^ Underscore \_
218 %% Grave accent \` Left brace \{ Vertical bar \|
219 %% Right brace \} Tilde \~}