Debian Codegraph @

texmf-dist/source/latex/bosisio/dblfont.dtx

raw
1 %\iffalse % MetaComment
2 %%
3 %% + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +
4 %% | Copyright(C) 1997-2010 by F. Bosisio |
5 %% | |
6 %% | This program can be redistributed and/or modified under |
7 %% | the terms of the LaTeX Project Public License, either |
8 %% | version 1.3 of this license or (at your option) any later |
9 %% | version. The latest version of this license is in |
10 %% | http://www.latex-project.org/lppl.txt |
11 %% | and version 1.3 or later is part of all LaTeX distributions |
12 %% | version 2005/12/01 or later. |
13 %% | |
14 %% | This work has the LPPL maintenance status `maintained'. |
15 %% | The Current Maintainer of this work is F. Bosisio. |
16 %% | |
17 %% | This work consists of files dblfont.dtx and dblfont.html |
18 %% | and of the derived files dblfont.sty and dblfont.pdf. |
19 %% | |
20 %% | E-mail: [email protected] |
21 %% | CTAN location: macros/latex/contrib/bosisio/ |
22 %% + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +
23 %%
24 %% If you make any improvment, find any bug or have
25 %% any suggestion, please let me know about it.
26 %%
27 %<*package,driver>
28 %\fi
29 %
30 \def\FileName{dblfont}
31 %\iffalse % MetaComment
32 %</package,driver>
33 %<*package>
34 %\fi
35 \def\fileversion{2.2}
36 \def\filedate{1997/12/13}
37 \def\docdate{2005/04/09}
38 \def\filedescr{Blackboard-bold symbols (FB)}
39 %
40 %\iffalse % MetaComment
41 %</package>
42 %<*dtx>
43 %- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
44 % This section is the installation driver
45 %
46 \def\batchfile{\FileName.dtx}
47 %
48 \input docstrip
49 %
50 \keepsilent
51 % \askforoverwritefalse
52 %
53 \generateFile{\FileName.sty}{f}{\from{\FileName.dtx}{package}}
54 %
55 \generateFile{\FileName.drv}{f}{\from{\FileName.dtx}{driver}}
56 %
57 \Msg{******************************************************}
58 \Msg{*}
59 \Msg{* To produce the documentation run the}
60 \Msg{* file `\FileName.drv' through LaTeX.}
61 \Msg{*}
62 \Msg{******************************************************}
63 %
64 \endbatchfile
65 %
66 % End of the installation driver
67 %- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
68 %</dtx>
69 %
70 % This section is the documentation driver
71 %
72 %<+driver>\documentclass[12pt,a4paper]{ltxdoc}
73 %<+driver> \EnableCrossrefs
74 %<+driver> \CodelineIndex
75 %<+driver> \RecordChanges
76 %<+driver> %\OnlyDescription % Uncomment not to see the implementation
77 %<+driver>\begin{document}
78 %<+driver> \DocInput{\FileName.dtx}
79 %<+driver> \PrintIndex
80 %<+driver> \PrintChanges
81 %<+driver>\end{document}
82 %
83 % End of the documentation driver
84 %- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
85 %<*package>
86 %\fi
87 %
88 % \changes{v0.1}{1 November 1997}{First release}
89 % \changes{v1.0}{7 November 1997}{Documentation added}
90 % \changes{v1.1}{17 November 1997}{Added options in ``XX'' format}
91 % \changes{v2.0}{13 December 1997}{Used ``newcommand*'' instead of ``def''}
92 % \changes{v2.1}{5 March 1999}{Added copyright notice and changed addresses}
93 % \changes{v2.2}{9 April 2005}{Usage of the double-quote character (") avoided}
94 %
95 % \MakeShortVerb{\|}
96 %
97 % \title{Package \texttt{\FileName}\thanks{This is version \fileversion,
98 % last revised \filedate; documentation date \docdate}}
99 % \author{F. Bosisio\\\normalsize E-mail: \texttt{[email protected]}}
100 % \date{\filedate}
101 % \maketitle
102 %
103 % \begin{abstract}
104 % Documentation for the package \texttt{\FileName}.
105 % \end{abstract}
106 %
107 % \section{Introduction}
108 % This package provides the font ``|\DblFont|'' (font |msbm10|), which
109 % corresponds to the so called blackdoard-bold symbols.
110 %
111 % \section{The options}
112 % For each uppercase letter ``|X|'' a corresponding ``|X|'' and ``|XX|''
113 % options exist: they declare the commands ``|\X|'' and ``|\XX|'' which
114 % both generate the letter |X| in |DblFont|.
115 % If a command named ``|\X|'' or ``|\XX|'' already exists in \LaTeX{},
116 % its definition is first saved in ``|\BackDoubleX|'' or
117 % ``|\BackDoubleXX|'', respectively.
118 %
119 % \noindent
120 % Also a ``|RT|'' option exists: it declares the ``|\RT|'' command,
121 % which generates the two letters |RT| in |DblFont| (used for the
122 % Raviart-Thomas spaces).
123 %
124 % \StopEventually{}
125 % \newpage
126 % \section{Implementation}
127 %
128 % \begin{macrocode}
129 %%
130 \NeedsTeXFormat{LaTeX2e}[1995/12/01]
131 \ProvidesPackage{\FileName}[\filedate\space v\fileversion\space\filedescr]
132 % \end{macrocode}
133 %
134 % The font ``|\DblFont|'' is loaded, if not already done.
135 % \begin{macrocode}
136 %%
137 \newfont{\DblFont}{msbm10 scaled \magstep1}
138 % \end{macrocode}
139 %
140 % The ``|\DeclareDblFontSymbol|'' has one argument which is used
141 % both as the command name to define and as the output it should
142 % generate (in |\DblFont|).
143 % The ``|\csname #1 \endcsname|'' sequence adds a backslash in front
144 % of the argument, to get the command name.
145 % \begin{macrocode}
146 %%
147 \newcommand*\DeclareDblFontSymbol[1]{%
148 \expandafter\newcommand*\csname #1\endcsname{\ensuremath{\mathbb{#1}}}%
149 }
150 % \end{macrocode}
151 % The ``|\dECL@REdBLfONTsYMBOL|'' has one argument which is used
152 % both as the command name to define (doubled) and as the output
153 % it should generate (in |\DblFont|).
154 % The ``|\csname #1#1 \endcsname|'' sequence adds a backslash in front
155 % of the argument and doubles it, to get the command name.
156 % \begin{macrocode}
157 \newcommand*\dECL@REdBLfONTsYMBOL[1]{%
158 \expandafter\newcommand*\csname #1#1\endcsname{\ensuremath{\mathbb{#1}}}%
159 }
160 % \end{macrocode}
161 %
162 % The command ``|\BackUpL@texCmd{<X>}|'' saves the command ``|\<X>|'' in
163 % the macro ``|\BackDouble<X>|'' and then undefines ``|\<X>|'', so that a
164 % ``|\newcommand*\<X>{..}|'' can be used to redefine it.
165 % \begin{macrocode}
166 %%
167 \newcommand*\BackUpL@texCmd[1]{%
168 \expandafter\let\csname BackDouble#1\endcsname=\csname #1\endcsname%
169 \expandafter\let\csname #1\endcsname\undefined%
170 \typeout{*** Command name ``#1'' has been replaced by ``BackDouble#1''! ***}%
171 }
172 % \end{macrocode}
173 %
174 % An option exists for each uppercase letter: it declares the
175 % command ``|\X|'' which generates the letter |X| in |DblFont|,
176 % where |X| denotes the letter under consideration.
177 % If a command named ``|\X|'' already exists in \LaTeX{}, its definition
178 % is saved in ``|\BackDoubleX|'', before being redefined.
179 % \begin{macrocode}
180 %%
181 \DeclareOption{A}{\DeclareDblFontSymbol{A}}
182 \DeclareOption{B}{\DeclareDblFontSymbol{B}}
183 \DeclareOption{C}{\DeclareDblFontSymbol{C}}
184 \DeclareOption{D}{\DeclareDblFontSymbol{D}}
185 \DeclareOption{E}{\DeclareDblFontSymbol{E}}
186 \DeclareOption{F}{\DeclareDblFontSymbol{F}}
187 \DeclareOption{G}{\DeclareDblFontSymbol{G}}
188 \DeclareOption{H}{\BackUpL@texCmd{H} \DeclareDblFontSymbol{H}}
189 \DeclareOption{I}{\DeclareDblFontSymbol{I}}
190 \DeclareOption{J}{\DeclareDblFontSymbol{J}}
191 \DeclareOption{K}{\DeclareDblFontSymbol{K}}
192 \DeclareOption{L}{\BackUpL@texCmd{L} \DeclareDblFontSymbol{L}}
193 \DeclareOption{M}{\DeclareDblFontSymbol{M}}
194 \DeclareOption{N}{\DeclareDblFontSymbol{N}}
195 \DeclareOption{O}{\BackUpL@texCmd{O} \DeclareDblFontSymbol{O}}
196 \DeclareOption{P}{\BackUpL@texCmd{P} \DeclareDblFontSymbol{P}}
197 \DeclareOption{Q}{\DeclareDblFontSymbol{Q}}
198 \DeclareOption{R}{\DeclareDblFontSymbol{R}}
199 \DeclareOption{S}{\BackUpL@texCmd{S} \DeclareDblFontSymbol{S}}
200 \DeclareOption{T}{\DeclareDblFontSymbol{T}}
201 \DeclareOption{U}{\DeclareDblFontSymbol{U}}
202 \DeclareOption{V}{\DeclareDblFontSymbol{V}}
203 \DeclareOption{W}{\DeclareDblFontSymbol{W}}
204 \DeclareOption{X}{\DeclareDblFontSymbol{X}}
205 \DeclareOption{Y}{\DeclareDblFontSymbol{Y}}
206 \DeclareOption{Z}{\DeclareDblFontSymbol{Z}}
207 % \end{macrocode}
208 %
209 % An option ``|XX|'' exists for each uppercase letter ``|X|'': it declares
210 % the command ``|\XX|'' which generates the letter |X| in |DblFont|.
211 % If a command named ``|\XX|'' already exists in \LaTeX{}, its
212 % definition is saved in ``|\BackDoubleXX|'', before being redefined.
213 % \begin{macrocode}
214 %%
215 \DeclareOption{AA}{\dECL@REdBLfONTsYMBOL{A}}
216 \DeclareOption{BB}{\dECL@REdBLfONTsYMBOL{B}}
217 \DeclareOption{CC}{\dECL@REdBLfONTsYMBOL{C}}
218 \DeclareOption{DD}{\dECL@REdBLfONTsYMBOL{D}}
219 \DeclareOption{EE}{\dECL@REdBLfONTsYMBOL{E}}
220 \DeclareOption{FF}{\dECL@REdBLfONTsYMBOL{F}}
221 \DeclareOption{GG}{\dECL@REdBLfONTsYMBOL{G}}
222 \DeclareOption{HH}{\dECL@REdBLfONTsYMBOL{H}}
223 \DeclareOption{II}{\dECL@REdBLfONTsYMBOL{I}}
224 \DeclareOption{JJ}{\dECL@REdBLfONTsYMBOL{J}}
225 \DeclareOption{KK}{\dECL@REdBLfONTsYMBOL{K}}
226 \DeclareOption{LL}{\dECL@REdBLfONTsYMBOL{L}}
227 \DeclareOption{MM}{\dECL@REdBLfONTsYMBOL{M}}
228 \DeclareOption{NN}{\dECL@REdBLfONTsYMBOL{N}}
229 \DeclareOption{OO}{\dECL@REdBLfONTsYMBOL{O}}
230 \DeclareOption{PP}{\dECL@REdBLfONTsYMBOL{P}}
231 \DeclareOption{QQ}{\dECL@REdBLfONTsYMBOL{Q}}
232 \DeclareOption{RR}{\dECL@REdBLfONTsYMBOL{R}}
233 \DeclareOption{SS}{\BackUpL@texCmd{SS} \dECL@REdBLfONTsYMBOL{S}}
234 \DeclareOption{TT}{\dECL@REdBLfONTsYMBOL{T}}
235 \DeclareOption{UU}{\dECL@REdBLfONTsYMBOL{U}}
236 \DeclareOption{VV}{\dECL@REdBLfONTsYMBOL{V}}
237 \DeclareOption{WW}{\dECL@REdBLfONTsYMBOL{W}}
238 \DeclareOption{XX}{\dECL@REdBLfONTsYMBOL{X}}
239 \DeclareOption{YY}{\dECL@REdBLfONTsYMBOL{Y}}
240 \DeclareOption{ZZ}{\dECL@REdBLfONTsYMBOL{Z}}
241 % \end{macrocode}
242 %
243 % A further option is for Raviart-Thomas spaces: it declares the
244 % command ``|\RT|'' which generates the two letters |RT| in |DblFont|
245 % \begin{macrocode}
246 %
247 \DeclareOption{RT}{\DeclareDblFontSymbol{RT}}
248 % \end{macrocode}
249 %
250 % Finally, the user option are parsed, thereby defining the
251 % corresponding commands.
252 % \begin{macrocode}
253 %
254 \ProcessOptions
255 % \end{macrocode}
256 %
257 %\iffalse % MetaComment
258 %<*package>
259 %\fi
260 %
261 % \CheckSum{154}
262 % \Finale
263 %
264 \endinput