Dsdoc
Dsdoc
111
Olaf Kummer
November 29, 2006
1 Introduction
This font is useful for typesetting the mathematical symbols for the natural
numbers (N), whole numbers (Z), rational numbers (Q), real numbers (R),
complex numbers (C), and a couple of others which are sometimes needed.
The easiest possibility to represent these sets using TEX is to use boldface,
where you get N after entering $\mathbf{N}$.
Then one can assemble the glyphs from other ones. For example the expres-
sion $\mathrm{I\!N}$ yields IN.
The calligraphic symbol N generated by $\mathcal{N}$ is another option.
But if none of the above suits your needs or personal taste, you should use
a special font. These fonts are known as the blackboard bold fonts. There is a
well-known font distributed by the AMS as amsyb, but the fonts bbold by Alain
Jeffery and bbm by Gilles F. Robert are viable options, too.
And there is this font, too, which was designed to be as similar to the
Computer Modern family of fonts by Donald E. Knuth as possible. Which of
these options you prefer is a matter of personal taste, so read on to find out
whether you like this font.
2 License
You may use and distribute these fonts as you like. You may modify these
fonts as long as you do not rename the files to one of those names that Donald
E. Knuth chose for the Computer Modern fonts. (And seriously, who would
want to do that?)
3 Installation
Here are the instructions to install the doublestroke package.
1. If a previous version of this font is installed, remove all the files, especially
the font files that were generated by Metafont after the first installation.
1
dsdoc.tex dsrom8.mf dsss10.tfm readme
dsfont.sty dsrom8.pfb dsss12.mf Udsrom.fd
dsrom10.mf dsrom8.tfm dsss12.pfb Udsss.fd
dsrom10.pfb dsrom.mf dsss12.tfm
dsrom10.tfm dsromo.mf dsss8.mf
dsrom12.mf dsromu.mf dsss8.pfb
should be present.
3. Make sure that you have TEX, LATEX (with NFSS), and Metafont installed.
Make sure that cmbase.mf is accessible by Metafont.
5. Verify the installation by generating this documentation file from its source
dsdoc.tex. The resulting file dsdoc.dvi should be identical to this text.
6. If you want to use the PostScript fonts, you have to make them known to
dvips and/or PDFTEX. The details of this process depend on your system
installation. For example, if you are working in a Unix-style environment
with a recent TEX installation, you can configure dvips by setting the
environment variable DVIPSRC to point to a configuration file myconfig,
which would look as follows:
p +dstroke.map
This will tell dvips to load the font map file. PDFTEX looks for a config-
uration file called pdftex.cfg, into which you should put the line
map +dstroke.map
2
You have probably done all of the above, because you are reading this doc-
umentation. But maybe you got this documentation from somewhere else and
ran into trouble during the installation. In this case try the following:
• If LATEX complains about a missing input file, check whether the files *.fd
and *.sty are accessible and readable.
• If LATEX complains about a missing font, check the placement of the files
*.tfm.
• If LATEX issues strange errors, you might have an old version of LATEX
or NFSS. Try using the fonts with low-level font commands instead of
dsfont.sty and check the next item, too.
• If LATEX issues strange errors, the files might have been corrupted during
transmission. Conversions of CR, LF, and so on might cause this problem.
• If the previewer or the printer driver complains about missing fonts and
does not automatically call Metafont to generate these font, either adapt
your installation or generate the fonts by hand. Depending on your in-
stallation you must run something like
If that does not help and your friendly TEXnician is unavailable, drop me a
mail. I will try to help you, if time permits.
4 Usage
You can use the fonts with all versions of TEX and LATEX, if you apply the
low-level command \font. For example we can write
\font\dsrom=dsrom10
$$\hbox{\dsrom N}=\{0,1,2,\ldots\}$$
$$\hbox{\dsrom ABCDEFGHIJKLMNOPQRSTUVWXYZ}$$
\bye
3
to obtain
N = {0, 1, 2, . . .}
ABCDEFGHIJKLMNOPQRSTUVWXYZ
using TEX alone. If LATEX and NFSS are available as suggested in the installation
section, you can use the style dsfont for an easier and more flexible approach.
The style provides a single command \mathds which can be used in math mode
to typeset a doublestroke symbol. It use is similar to that of \mathbb from the
AMS package. For example
\documentclass{article}
\usepackage{dsfont}
\begin{document}
\[\mathds{N}=\{0,1,2,\ldots\}\]
\[\mathds{ABCDEFGHIJKLMNOPQRSTUVWXYZ}\]
\end{document}
\[\mathds{1}\;\mathds{h}\;\mathds{k}\]
results in
1hk
Why are the other lowercase letters and numerals missing? Well, they would
be ugly if treated in the same way as the uppercase letters. Hence I considered
the beauty of each individual letter more important than the completeness of
the whole character set. Using \mathds{a} we can get the letter a. This is the
way the letter A looked in previous versions of this font. It is provided in case
somebody likes the old version better. The two other letters V and W have
changed significantly, too, but there will be nobody who prefers the old glyphs,
I think.
Let us look at some examples.
\[\mathds{N}\subset\mathds{Z}\subset\mathds{Q}
\subset\mathds{R}\subset\mathds{C}\]
\[\{a_i\}_{i\in\mathds{N}}\textrm{~where~}a_i\in\mathds{C}\]
\[\forall x\in\mathds{X}:\exists s\in\mathds{S}:
x\circ t\in\mathds{T}^\mathds{1}\]
N⊂Z⊂Q⊂R⊂C
4
We can see that the font can occur in subscripts or superscripts without any
problems. The last formula shows the possibility to use the doublestroke font
for custom defined objects. Some caution is required here. Usually it is best to
stick to those symbols whose usage is common, like the natural numbers N etc.
But there are reasons to use own glyphs, of course.
Some people prefer a sans serif doublestroke font. This can be accomplished
by a minimal change of the TEX source.
\documentclass{article}
\usepackage[sans]{dsfont}
\begin{document}
\[\mathds{N}=\{0,1,2,\ldots\}\]
\[\mathds{ABCDEFGHIJKLMNOPQRSTUVWXYZ}\]
\end{document}
N = {0, 1, 2, . . .}
ABCDEFGHIJKLMNOPQRSTUVWXYZ
In this document I had to use both fonts for example purposes. Do not do
this at home, unless you really know why. I discourage the simultaneous use of
serif and sans serif doublestroke fonts in a single document, because it results
in confused readers.
5 Changes
Changes in Version 1.0
• The characters 1, h, and k were added.
• The sans serif version of the font was added. The metaness required to
generate a sans serif font was already present in the earlier version. The
style file was rewritten to allow a choice between the two fonts.
5
Changes in Version 1.11
• Documentation bugs were corrected
6 Thanks
Thanks go to D. E. Knuth who gave TEX, Metafont, and Computer Modern
to the world. Marco Kuhlmann added the PostScript version of the fonts and
commented on the installation process. Jürgen Vollmer provided some ideas
that were used in this documentation file. Han-Wen Nienhuys created mftrace,
which was required for creating PostScript versions of this font. Reinhard Zierke
did not only provide the most complete TEX installation I can imagine, but also
motivated this improved version of the font.