| 1 |
\documentclass[a4paper]{article} |
| 2 |
\usepackage{dsfont} |
| 3 |
|
| 4 |
% We need both the roman and the sans serif version of |
| 5 |
% the font in this document for example purposes. |
| 6 |
% Do not do this at home, unless you really know why. |
| 7 |
% Chances are you will not end up with a |
| 8 |
% masterpiece of digital typography. |
| 9 |
\DeclareMathAlphabet{\varmathds}{U}{dsss}{m}{n} |
| 10 |
|
| 11 |
\newcommand{\MF}{\textsf{Metafont}} |
| 12 |
|
| 13 |
\begin{document} |
| 14 |
|
| 15 |
\title{\bf The Doublestroke Font V1.111} |
| 16 |
|
| 17 |
\author{Olaf Kummer} |
| 18 |
|
| 19 |
\maketitle |
| 20 |
|
| 21 |
\section{Introduction} |
| 22 |
|
| 23 |
This font is useful for typesetting the mathematical |
| 24 |
symbols for the natural numbers ($\mathds{N}$), |
| 25 |
whole numbers ($\mathds{Z}$), rational numbers ($\mathds{Q}$), |
| 26 |
real numbers ($\mathds{R}$), complex numbers ($\mathds{C}$), |
| 27 |
and a couple of others which are sometimes needed. |
| 28 |
|
| 29 |
The easiest possibility to represent these sets using |
| 30 |
\TeX{} is to use boldface, where you get $\mathbf{N}$ |
| 31 |
after entering \verb:$\mathbf{N}$:. |
| 32 |
|
| 33 |
Then one can assemble the glyphs from |
| 34 |
other ones. For example the expression \verb:$\mathrm{I\!N}$: |
| 35 |
yields $\mathrm{I\!N}$. |
| 36 |
|
| 37 |
The calligraphic symbol $\mathcal{N}$ generated by |
| 38 |
\verb:$\mathcal{N}$: is another option. |
| 39 |
|
| 40 |
But if none of the above suits your needs or |
| 41 |
personal taste, you should use a special font. These fonts |
| 42 |
are known as the blackboard bold fonts. There is a |
| 43 |
well-known font distributed by the AMS as |
| 44 |
\texttt{amsyb}, but the fonts |
| 45 |
\texttt{bbold} by Alain Jeffery and \texttt{bbm} by |
| 46 |
Gilles F.~Robert are viable options, too. |
| 47 |
|
| 48 |
And there is this font, too, which was designed |
| 49 |
to be as similar to the Computer Modern family of fonts |
| 50 |
by Donald E.~Knuth as possible. Which of these options you |
| 51 |
prefer is a matter of personal taste, so read on to find |
| 52 |
out whether you like this font. |
| 53 |
|
| 54 |
|
| 55 |
\section{License} |
| 56 |
|
| 57 |
You may use and distribute these fonts as you like. |
| 58 |
You may modify these fonts as long as you do not |
| 59 |
rename the files to one of those names that |
| 60 |
Donald E.~Knuth chose for the Computer Modern fonts. |
| 61 |
(And seriously, who would want to do that?) |
| 62 |
|
| 63 |
|
| 64 |
\section{Installation} |
| 65 |
|
| 66 |
Here are the instructions to install the doublestroke package. |
| 67 |
|
| 68 |
\begin{enumerate} |
| 69 |
\item If a previous version of this font is installed, remove all |
| 70 |
the files, especially the font files that were generated by |
| 71 |
\MF{} after the first installation. |
| 72 |
|
| 73 |
\item Depending on how you obtained this package it might be |
| 74 |
necessary to unpack/uncompress an archive. Now the files |
| 75 |
\begin{verbatim} |
| 76 |
dsdoc.dvi dsrom12.pfb dsss10.mf dsss8.tfm |
| 77 |
dsdoc.ps dsrom12.tfm dsss10.pfb dstroke.map |
| 78 |
dsdoc.tex dsrom8.mf dsss10.tfm readme |
| 79 |
dsfont.sty dsrom8.pfb dsss12.mf Udsrom.fd |
| 80 |
dsrom10.mf dsrom8.tfm dsss12.pfb Udsss.fd |
| 81 |
dsrom10.pfb dsrom.mf dsss12.tfm |
| 82 |
dsrom10.tfm dsromo.mf dsss8.mf |
| 83 |
dsrom12.mf dsromu.mf dsss8.pfb |
| 84 |
\end{verbatim} |
| 85 |
should be present. |
| 86 |
|
| 87 |
\item Make sure that you have \TeX, \LaTeX{} (with NFSS), and \MF{} |
| 88 |
installed. Make sure that \texttt{cmbase.mf} is accessible by \MF. |
| 89 |
|
| 90 |
\item Move the files to their destination. |
| 91 |
|
| 92 |
\begin{tabular}{lll} |
| 93 |
The files & are & and are needed by \\[1ex] |
| 94 |
\texttt{*.tfm} & font metric files & \TeX \\ |
| 95 |
\texttt{*.fd} & font defintions & \TeX \\ |
| 96 |
\texttt{*.sty} & style files & \TeX \\ |
| 97 |
\texttt{*.mf} & \MF sources & \MF \\ |
| 98 |
\texttt{*.pfb} & PostScript fonts & \TeX \\ |
| 99 |
\texttt{*.map} & font map files & \texttt{dvips}, PDF\TeX |
| 100 |
\end{tabular} |
| 101 |
|
| 102 |
The exact location where the files belong depends on your |
| 103 |
installation. As a first approximation, install them |
| 104 |
near other files with the same extension. |
| 105 |
|
| 106 |
Unlike previous versions of this font, no pregenerated |
| 107 |
fonts at 300\,dpi are included, because |
| 108 |
these fonts should always be generated with the proper |
| 109 |
\MF{} mode. The metric files are included, however, because |
| 110 |
they do not depend on the printer. |
| 111 |
|
| 112 |
\item Verify the installation by generating this documentation |
| 113 |
file from its source \texttt{dsdoc.tex}. The resulting file |
| 114 |
\texttt{dsdoc.dvi} should be identical to this text. |
| 115 |
|
| 116 |
\item If you want to use the PostScript fonts, you have to make |
| 117 |
them known to \texttt{dvips} and/or PDF\TeX. The details of |
| 118 |
this process depend on your system installation. For example, |
| 119 |
if you are working in a Unix-style environment with a recent |
| 120 |
\TeX\ installation, you can configure \texttt{dvips} by setting |
| 121 |
the environment variable \texttt{DVIPSRC} to point to a |
| 122 |
configuration file \texttt{myconfig}, which would look as |
| 123 |
follows: |
| 124 |
\begin{verbatim} |
| 125 |
p +dstroke.map |
| 126 |
\end{verbatim} |
| 127 |
This will tell \texttt{dvips} to load the font map file. |
| 128 |
PDF\TeX\ looks for a configuration file called |
| 129 |
\texttt{pdftex.cfg}, into which you should put the line |
| 130 |
\begin{verbatim} |
| 131 |
map +dstroke.map |
| 132 |
\end{verbatim} |
| 133 |
for it to find the PostScript fonts. |
| 134 |
|
| 135 |
Note that for this to work, all files need to be put into their |
| 136 |
appropriate places. If you are unsure about where to put |
| 137 |
things, consult your system administrator or the manual of your |
| 138 |
\TeX\ system. |
| 139 |
\end{enumerate} |
| 140 |
|
| 141 |
You have probably done all of the above, because you are reading |
| 142 |
this documentation. But maybe you got this documentation from |
| 143 |
somewhere else and ran into trouble during the installation. |
| 144 |
In this case try the following: |
| 145 |
|
| 146 |
\begin{itemize} |
| 147 |
\item If \LaTeX{} complains about a missing input file, check whether |
| 148 |
the files \texttt{*.fd} and \texttt{*.sty} are accessible and readable. |
| 149 |
\item If \LaTeX{} complains about a missing font, check the |
| 150 |
placement of the files \texttt{*.tfm}. |
| 151 |
\item If \LaTeX{} issues strange errors, you might have an old version |
| 152 |
of \LaTeX{} or NFSS. Try using the fonts with low-level font |
| 153 |
commands instead of dsfont.sty and check the next item, too. |
| 154 |
\item If \LaTeX{} issues strange errors, the files might have been |
| 155 |
corrupted during transmission. Conversions of CR, LF, and |
| 156 |
so on might cause this problem. |
| 157 |
\item If the previewer or the printer driver complains about missing |
| 158 |
fonts and does not automatically call \MF{} to generate |
| 159 |
these font, either adapt your installation or generate |
| 160 |
the fonts by hand. Depending on your installation you |
| 161 |
must run something like |
| 162 |
\begin{verbatim} |
| 163 |
mf '\mode=localfont; input dsrom10' |
| 164 |
\end{verbatim} |
| 165 |
for each of the fonts. |
| 166 |
\item If \MF{} is called and complains about missing source |
| 167 |
files, check whether these (\texttt{*.mf}) are placed |
| 168 |
correctly. |
| 169 |
\item If \MF{} is called and complains about strange paths |
| 170 |
or about paths that do not intersect, you are probably |
| 171 |
generating the font at a lower resolution than 100\,dpi. |
| 172 |
There is little you can do except ignoring the errors or |
| 173 |
telling \MF{} to do so. Please report such errors only |
| 174 |
if they occur at resolutions above 100\,dpi. |
| 175 |
\item If the previewer or the printer driver complains about missing |
| 176 |
characters, check whether you have deleted all files from |
| 177 |
previous versions of this font. |
| 178 |
\item If the previewer or the printer driver complains about a |
| 179 |
checksum error, check whether you have deleted all files from |
| 180 |
previous versions of this font. |
| 181 |
\end{itemize} |
| 182 |
|
| 183 |
If that does not help and your friendly \TeX nician is unavailable, |
| 184 |
drop me a mail. I will try to help you, if time permits. |
| 185 |
|
| 186 |
|
| 187 |
\section{Usage} |
| 188 |
|
| 189 |
You can use the fonts with all versions of \TeX{} and \LaTeX, |
| 190 |
if you apply the low-level command \verb:\font:. |
| 191 |
For example we can write |
| 192 |
\begin{verbatim} |
| 193 |
\font\dsrom=dsrom10 |
| 194 |
$$\hbox{\dsrom N}=\{0,1,2,\ldots\}$$ |
| 195 |
$$\hbox{\dsrom ABCDEFGHIJKLMNOPQRSTUVWXYZ}$$ |
| 196 |
\bye |
| 197 |
\end{verbatim} |
| 198 |
to obtain |
| 199 |
\[\mathds{N}=\{0,1,2,\ldots\}\] |
| 200 |
\[\mathds{ABCDEFGHIJKLMNOPQRSTUVWXYZ}\] |
| 201 |
using \TeX{} alone. |
| 202 |
If \LaTeX{} and NFSS are available as suggested in the installation |
| 203 |
section, you can use the style \texttt{dsfont} for an easier and more |
| 204 |
flexible approach. The style provides a single command \verb:\mathds: |
| 205 |
which can be used in math mode to typeset a doublestroke symbol. |
| 206 |
It use is similar to that of \verb:\mathbb: from the |
| 207 |
AMS package. For example |
| 208 |
\begin{verbatim} |
| 209 |
\documentclass{article} |
| 210 |
\usepackage{dsfont} |
| 211 |
\begin{document} |
| 212 |
\[\mathds{N}=\{0,1,2,\ldots\}\] |
| 213 |
\[\mathds{ABCDEFGHIJKLMNOPQRSTUVWXYZ}\] |
| 214 |
\end{document} |
| 215 |
\end{verbatim} |
| 216 |
will again result in |
| 217 |
\[\mathds{N}=\{0,1,2,\ldots\}\] |
| 218 |
\[\mathds{ABCDEFGHIJKLMNOPQRSTUVWXYZ}\] |
| 219 |
as we have already done in \TeX. The uppercase letters shown here |
| 220 |
are the most common, but there are a few others in use. |
| 221 |
\begin{verbatim} |
| 222 |
\[\mathds{1}\;\mathds{h}\;\mathds{k}\] |
| 223 |
\end{verbatim} |
| 224 |
results in |
| 225 |
\[\mathds{1}\;\mathds{h}\;\mathds{k}\] |
| 226 |
Why are the other lowercase letters and numerals missing? Well, |
| 227 |
they would be ugly if treated in the same way as the uppercase |
| 228 |
letters. Hence I considered the beauty of each individual letter |
| 229 |
more important than the completeness of the whole character set. |
| 230 |
Using \verb:\mathds{a}: we can get the letter $\mathds{a}$. |
| 231 |
This is the way the letter $\mathds{A}$ looked in previous versions |
| 232 |
of this font. It is provided in case somebody likes the old |
| 233 |
version better. The two other letters $\mathds{V}$ and $\mathds{W}$ |
| 234 |
have changed significantly, too, but there will be nobody who |
| 235 |
prefers the old glyphs, I think. |
| 236 |
|
| 237 |
Let us look at some examples. |
| 238 |
\begin{verbatim} |
| 239 |
\[\mathds{N}\subset\mathds{Z}\subset\mathds{Q} |
| 240 |
\subset\mathds{R}\subset\mathds{C}\] |
| 241 |
\[\{a_i\}_{i\in\mathds{N}}\textrm{~where~}a_i\in\mathds{C}\] |
| 242 |
\[\forall x\in\mathds{X}:\exists s\in\mathds{S}: |
| 243 |
x\circ t\in\mathds{T}^\mathds{1}\] |
| 244 |
\end{verbatim} |
| 245 |
After running \LaTeX{} we get |
| 246 |
\[\mathds{N}\subset\mathds{Z}\subset\mathds{Q} |
| 247 |
\subset\mathds{R}\subset\mathds{C}\] |
| 248 |
\[(a_i)_{i\in\mathds{N}}\textrm{~where~}a_i\in\mathds{R}\] |
| 249 |
\[\forall x\in\mathds{X}:\exists s\in\mathds{S}: |
| 250 |
x\circ s\in\mathds{T}^\mathds{1}\] |
| 251 |
We can see that the font can occur in subscripts |
| 252 |
or superscripts without any problems. |
| 253 |
The last formula shows the possibility to use the |
| 254 |
doublestroke font for custom defined objects. Some caution is |
| 255 |
required here. Usually it is best to stick to those symbols |
| 256 |
whose usage is common, like the natural numbers $\mathds{N}$ etc. |
| 257 |
But there are reasons to use own glyphs, of course. |
| 258 |
|
| 259 |
Some people prefer a sans serif doublestroke font. This can be |
| 260 |
accomplished by a minimal change of the \TeX{} source. |
| 261 |
\begin{verbatim} |
| 262 |
\documentclass{article} |
| 263 |
\usepackage[sans]{dsfont} |
| 264 |
\begin{document} |
| 265 |
\[\mathds{N}=\{0,1,2,\ldots\}\] |
| 266 |
\[\mathds{ABCDEFGHIJKLMNOPQRSTUVWXYZ}\] |
| 267 |
\end{document} |
| 268 |
\end{verbatim} |
| 269 |
Did you spot the change? The result is |
| 270 |
\[\varmathds{N}=\{0,1,2,\ldots\}\] |
| 271 |
\[\varmathds{ABCDEFGHIJKLMNOPQRSTUVWXYZ}\] |
| 272 |
In this document I had to use both fonts for example purposes. |
| 273 |
Do not do this at home, unless you really know why. |
| 274 |
I discourage the simultaneous use of serif and |
| 275 |
sans serif doublestroke fonts in a single document, because |
| 276 |
it results in confused readers. |
| 277 |
|
| 278 |
|
| 279 |
\section{Changes} |
| 280 |
|
| 281 |
\subsection*{Changes in Version 1.0} |
| 282 |
|
| 283 |
\begin{itemize} |
| 284 |
\item The characters $\mathds{1}$, $\mathds{h}$, and $\mathds{k}$ |
| 285 |
were added. |
| 286 |
|
| 287 |
\item The characters $\mathds{A}$, $\mathds{V}$, and $\mathds{W}$ |
| 288 |
were completely redone. |
| 289 |
|
| 290 |
\item For several characters the size of the serifs was adjusted. |
| 291 |
|
| 292 |
\item Several characters were made more robust at low resolutions. |
| 293 |
In order to achieve this goal, the appearance of the letter |
| 294 |
$\mathds{S}$ had to be changed for some extreme parameter settings. |
| 295 |
|
| 296 |
\item The sans serif version of the font was added. The metaness |
| 297 |
required to generate a sans serif font was already present |
| 298 |
in the earlier version. The style file was rewritten to allow |
| 299 |
a choice between the two fonts. |
| 300 |
|
| 301 |
\item 8-point fonts for subscripts were added. |
| 302 |
|
| 303 |
\item The pregenerated fonts were removed from the distribution. |
| 304 |
|
| 305 |
\item This document was written. |
| 306 |
\end{itemize} |
| 307 |
|
| 308 |
|
| 309 |
\subsection*{Changes in Version 1.1} |
| 310 |
|
| 311 |
\begin{itemize} |
| 312 |
\item The license section was added. |
| 313 |
\end{itemize} |
| 314 |
|
| 315 |
|
| 316 |
\subsection*{Changes in Version 1.11} |
| 317 |
|
| 318 |
\begin{itemize} |
| 319 |
\item Documentation bugs were corrected |
| 320 |
\end{itemize} |
| 321 |
|
| 322 |
|
| 323 |
\subsection*{Changes in Version 1.111} |
| 324 |
|
| 325 |
\begin{itemize} |
| 326 |
\item PostScript versions of the fonts were added. These were |
| 327 |
generated from the \MF\ sources using the \texttt{mftrace} |
| 328 |
program by Han-Wen Nienhuys. |
| 329 |
\end{itemize} |
| 330 |
|
| 331 |
|
| 332 |
\section{Thanks} |
| 333 |
|
| 334 |
Thanks go to D.~E.~Knuth who gave \TeX, \MF, and |
| 335 |
Computer Modern to the world. |
| 336 |
Marco Kuhlmann added the PostScript version of the fonts |
| 337 |
and commented on the installation process. |
| 338 |
J\"urgen Vollmer provided some |
| 339 |
ideas that were used in this documentation file. |
| 340 |
Han-Wen Nienhuys created \texttt{mftrace}, which was |
| 341 |
required for creating PostScript versions of this font. |
| 342 |
Reinhard Zierke did not only provide the most complete |
| 343 |
\TeX{} installation I can imagine, but also |
| 344 |
motivated this improved version of the font. |
| 345 |
|
| 346 |
|
| 347 |
\end{document} |