Debian Codegraph @

texmf-dist/doc/fonts/dsserif/dsserif-doc.tex

raw
1 % !TEX TS-program = pdflatexmk
2 % Template file for TeXShop by Michael Sharpe, LPPL
3 \documentclass[11pt]{article}
4 \usepackage[margin=1in]{geometry}
5 \usepackage[parfill]{parskip}
6 %\pdfmapfile{+DSSerif.map}
7 \usepackage{graphicx}
8 %\usepackage{amssymb}% don't use with newtxmath
9 %SetFonts
10 % libertine+newtxmath
11 \usepackage[sb]{libertine} % use sb in place of bold
12 \usepackage[T1]{fontenc}
13 \usepackage{textcomp}
14 \usepackage[varqu,varl]{zi4}% inconsolata
15 \usepackage{amsmath,amsthm}
16 \usepackage[libertine,vvarbb]{newtxmath}
17 % option vvarbb gives you stix blackboard bold
18 \useosf % use oldstyle figures except in math
19 \usepackage{trace}
20 \usepackage[symbols]{dsserif}
21 \usepackage{bm}
22 %SetFonts
23 \title{The DSSerif Package}
24 \author{Michael Sharpe}
25 \date{\today} % Activate to display a given date or no date
26
27 \begin{document}
28 \maketitle
29 DSSerif is short for Double Struck Serif, and, while based on the Courier clone of URW++ (version 2), though much distorted, its double striking and weights are very much in the style of the STIX double struck fonts. The main difference between the two is that STIX is sans serif, while DSSerif is not. The package has the following options:
30 \begin{itemize}
31 \item
32 {\tt scaled} (or {\tt scale}) controls the relative size, as in
33 \begin{verbatim}
34 \usepackage[scaled=1.03]{dsserif}
35 \end{verbatim}
36 \item
37 {\tt bbsymbols} (or {\tt symbols}) controls whether the font is set up as a symbol font. (The default is to set it up as a Math Alphabet, which makes more efficient use of the LaTeX limitation to just 16 math families.)
38 \item {\tt bfbb} forces the package to not load the regular weight, but use \verb|\mathbb| as if bold were the regular weight.
39 \end{itemize}
40
41
42 The available characters are:\\
43 In regular weight:
44 \[\mathbb{0}\;\mathbb{1}\;\mathbb{2}\;\mathbb{3}\;\mathbb{4}\;\mathbb{5}\;\mathbb{6}\;\mathbb{7}\;\mathbb{8}\;\mathbb{9}\]
45 \[\imathbb\;\jmathbb \;\bbGamma\;\bbDelta\;\bbTheta\;\bbLambda\;\bbPi\;\bbSigma\;\bbPhi\;\bbPsi\;\bbOmega
46 \]
47 \[{\mathbb{A}}\;{\mathbb{B}}\;{\mathbb{C}}\;{\mathbb{D}}\;{\mathbb{E}}\;{\mathbb{F}}\;{\mathbb{G}}\;{\mathbb{H}}\;{\mathbb{I}}\;{\mathbb{J}}\;{\mathbb{K}}\;{\mathbb{L}}\;{\mathbb{M}}\]
48 \[{\mathbb{N}}\;{\mathbb{O}}\;{\mathbb{P}}\;{\mathbb{Q}}\;{\mathbb{R}}\;{\mathbb{S}}\;{\mathbb{T}}\;{\mathbb{U}}\;{\mathbb{V}}\;{\mathbb{W}}\;{\mathbb{X}}\;{\mathbb{Y}}\;{\mathbb{Z}}\]
49 \[{\mathbb{a}}\;{\mathbb{b}}\;{\mathbb{c}}\;{\mathbb{d}}\;{\mathbb{e}}\;{\mathbb{f}}\;{\mathbb{g}}\;{\mathbb{h}}\;{\mathbb{i}}\;{\mathbb{j}}\;{\mathbb{k}}\;{\mathbb{l}}\;{\mathbb{m}}\]
50 \[{\mathbb{n}}\;{\mathbb{o}}\;{\mathbb{p}}\;{\mathbb{q}}\;{\mathbb{r}}\;{\mathbb{s}}\;{\mathbb{t}}\;{\mathbb{u}}\;{\mathbb{v}}\;{\mathbb{w}}\;{\mathbb{x}}\;{\mathbb{y}}\;{\mathbb{z}}\]
51 %\[\mathbb{\char0 }\mathbb{\char1 }\mathbb{\char2 }\mathbb{\char3 }\mathbb{\char4 }\mathbb{\char5 }\mathbb{\char6 }\mathbb{\char7 }\mathbb{\char8}\mathbb{\char9 }\mathbb{\char10 }\mathbb{\char11 }\]
52 In bold:
53 {\boldmath
54 \[\mathbb{0}\;\mathbb{1}\;\mathbb{2}\;\mathbb{3}\;\mathbb{4}\;\mathbb{5}\;\mathbb{6}\;\mathbb{7}\;\mathbb{8}\;\mathbb{9}\]
55 \[\imathbb\;\jmathbb\]
56 \[{\mathbb{A}}\;{\mathbb{B}}\;{\mathbb{C}}\;{\mathbb{D}}\;{\mathbb{E}}\;{\mathbb{F}}\;{\mathbb{G}}\;{\mathbb{H}}\;{\mathbb{I}}\;{\mathbb{J}}\;{\mathbb{K}}\;{\mathbb{L}}\;{\mathbb{M}}\]
57 \[{\mathbb{N}}\;{\mathbb{O}}\;{\mathbb{P}}\;{\mathbb{Q}}\;{\mathbb{R}}\;{\mathbb{S}}\;{\mathbb{T}}\;{\mathbb{U}}\;{\mathbb{V}}\;{\mathbb{W}}\;{\mathbb{X}}\;{\mathbb{Y}}\;{\mathbb{Z}}\]
58 \[{\mathbb{a}}\;{\mathbb{b}}\;{\mathbb{c}}\;{\mathbb{d}}\;{\mathbb{e}}\;{\mathbb{f}}\;{\mathbb{g}}\;{\mathbb{h}}\;{\mathbb{i}}\;{\mathbb{j}}\;{\mathbb{k}}\;{\mathbb{l}}\;{\mathbb{m}}\]
59 \[{\mathbb{n}}\;{\mathbb{o}}\;{\mathbb{p}}\;{\mathbb{q}}\;{\mathbb{r}}\;{\mathbb{s}}\;{\mathbb{t}}\;{\mathbb{u}}\;{\mathbb{v}}\;{\mathbb{w}}\;{\mathbb{x}}\;{\mathbb{y}}\;{\mathbb{z}}\]}
60
61 If you load the {\tt dsserif} package using
62 \begin{verbatim}
63 \usepackage{dsserif}
64 \end{verbatim}
65 then
66 most of these are accessed in the usual ways using \verb|\mathbb|. E.g., \verb|\mathbb{0}|, \verb|\mathbb{A}| and \verb|\mathbb{z}| produce $\mathbb{0}$, $\mathbb{A}$ and $\mathbb{z}$ unless \verb|\boldmath| was previously specified, and {\boldmath $\mathbb{0}$, $\mathbb{A}$ and $\mathbb{z}$} otherwise. Finally, the macro \verb|\mathbfbb| may be used without \verb|\boldmath| or \verb|\bm| to render a bold symbol, e.g., \verb|\mathbfbb{A}| gives $\mathbfbb{A}$.
67
68 \textbf{Macros for non-alphanumeric characters}\\
69 \textbf{For the following paragraph, you need to use the option {\tt bfbb}.}\\
70 The dotless {\tt i} and {\tt j} require the special macros \verb|\bbdotlessi|, \verb|\bbdotlessj| (or \verb|\imathbb|, \verb|\jmathbb|.) If you load the package {\tt bm}, then the macro \verb|\bm{}| will in all cases give you the bold version. E.g., \verb|\bm{\bbdotlessi}| gives $\bm{\bbdotlessi}$, as expected. There are also some Greek letters available. Currently, these are only in regular weight and are pictured above,
71 having names
72 \begin{verbatim}
73 \bbGamma
74 \bbDelta
75 \bbTheta
76 \bbLambda
77 \bbPi
78 \bbSigma
79 \bbPhi
80 \bbPsi
81 \bbOmega
82 \end{verbatim}
83
84 I like to use $\bbdotlessi$ and $\bbdotlessj$ (or their bold versions) for unit vectors in the $x$ and $y$ directions, though this is not ISO compliant, and prefer the output to what I would get from the corresponding STIX symbols, where there can be problems distinguishing unserifed glyphs.
85
86 The {\tt DSSerif} glyphs may also be accessed using {\tt mathalpha}:
87 \begin{verbatim}
88 \usepackage[bb=dsserif]{mathalpha} % there are also options bfbb and bbsymbols
89 \end{verbatim}
90 (added after loading other math fonts) will redefine \verb|\mathbb| and \verb|\mathbfbb| to point to the {\tt DSSerif} versions. Use of either {\tt dsserif} or {\tt mathalpha} will entail using at least one of your precious math groups. You may find it sufficient to simply use the symbols as text. E.g.,
91 \begin{verbatim}
92 $x\in \text{{\usefont{U}{DSSerif}{m}{n}C}}^n$
93 \end{verbatim}
94 renders as $x\in \text{{\usefont{U}{DSSerif}{m}{n}C}}^n$ without using an additional math group. If you try to do this with uppercase Greek letters, you'll find you have to use the slot numbers, as in
95 \begin{verbatim}
96 $x\in \text{{\usefont{U}{DSSerif}{m}{n}\char1 }}^n$ % Delta
97 \end{verbatim}
98 If using {\tt newtxmath}, version 1.55 or higher, with the {\tt stix2} option, you will find the {\tt DSSerif} alphabet built in though without the Greek letters, and it will not be necessary to load it with further commands. See the {\tt newtx} documentation for further details.
99
100 \end{document}