Debian Codegraph @

texmf-dist/doc/fonts/bboldx/Bboldx-doc.tex

raw
1 % !TEX TS-program = pdflatexmk
2 % Template file for TeXShop by Michael Sharpe, LPPL
3 \documentclass[11pt]{amsart}
4 \usepackage[margin=1in]{geometry}
5 \usepackage[parfill]{parskip}% Begin paragraphs with an empty line rather than an indent
6 %\pdfmapfile{+bboldx.map}
7 %\usepackage{graphicx}
8 %\usepackage{amssymb}% don't use with newtxmath
9 %SetFonts
10 % libertine+newtxmath
11 \usepackage{trace}
12 \usepackage{newpxtext} % use sb in place of bold
13 \usepackage[T1]{fontenc}
14 \usepackage{textcomp}
15 \usepackage[varqu,varl]{zi4}% inconsolata
16 \usepackage[vvarbb]{newpxmath}
17 %\usepackage[symbols]{bboldx}
18 \usepackage{bboldx}
19 % option vvarbb gives you stix blackboard bold
20 \useosf % use oldstyle figures except in math
21 %\usepackage[cal=boondoxo]{mathalfa}% less slanted than STIX cal
22 %\usepackage{bm}
23 %SetFonts
24 \usepackage{fonttable}
25 \title{{\tt BBOLDX}---an extension of {\tt BBOLD}}
26 \author{Michael Sharpe}
27 \date{\today} % Activate to display a given date or no date
28
29 \begin{document}
30 \maketitle
31 %\[\mathbb{0123456789}\text{\txtbbGamma \txtbfbbGamma}\]
32 %\[\mathbb{0123456[](),.!\#\$:;<>?/}\]
33 %\end{document}
34 In the 1990's, Alan Jeffrey developed an extensive Blackboard Bold font with weight a good match to Computer Modern, with upper and lower case Latin and Greek letters as well as punctuation and a number of symbols. The font was the property of Y\&{}Y, and, after their dissolution, the copyright was gifted to TUG in 2007, with the freest license imaginable. This package extends the original by adding a couple of glyphs and, more important, adding two new weights. Where the original stem widths were 40 units, the additions have stem widths of 56 units and 90 units respectively. For a comparison, here are the three, labelled {\tt Thin}, {\tt Regular} and {\tt Bold} respectively.
35
36 Thin: {\usefont{U}{bboldx}{l}{n} \char"06\char"0C Hk1234567890}\\
37 Regular: {\usefont{U}{bboldx}{m}{n} \char"06\char"0C Hk1234567890}\\
38 Bold: {\usefont{U}{bboldx}{b}{n} \char"06\char"0C Hk1234567890}
39
40 \textsc{Font Table for BBOLDX-Regular}:\\
41 \fonttable{BBOLDX-Regular}
42 \newpage
43 This package creates two basic commands, \verb|\bbxfamily| and \verb|\bbbxfamily| to identify the fonts that should be considered regular and bold, and uses them to define macros \verb|\textbb| and \verb|\textbfbb| by which you may access any character, though not necessarily by convenient means as the fonts do not completely follow any standard encoding. Nonetheless, it does understand Roman letters and digits, as well as some punctuation and symbols: e.g., \verb|\textbb{(A)b[1].,!?<>-}| renders as \textbb{(A)b[1].,!?<>-}. Characters may also be accessed by consulting the above table for the position of the character. For example, lowercase psi is in slot 32 decimal={"20} (HEX), so \verb|\textbb{\char32}| or \verb|\textbb{\char"20}| yields \textbb{\char"20}. It also creates macros \verb|\mathbb|, \verb|\mathbfbb| that are specific to math mode but are more limited in scope but work as expected for all numeric and Roman alphabetic arguments.
44
45 There are two ways this package may be used.
46
47 \textbf{\textsc{1: Load the {\tt bboldx} package directly.}}
48
49 To do this, place one of the lines
50 \begin{verbatim}
51 \usepackage{bboldx} % for Regular and Bold weights
52 \usepackage[light]{bboldx} % for Thin and Regular weights
53 \end{verbatim}
54 in your document preamble following any other lines that may load math alphabets. Other options are available:
55 \begin{itemize}
56 \item
57 {\tt scaled} (or {\tt scale}) controls the relative size, as in
58 \begin{verbatim}
59 \usepackage[scaled=1.03]{bboldx}
60 \end{verbatim}
61 which results in scaling up {\tt bboldx} fonts by 3\%.
62 \item
63 {\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 MathAlphabet, which handles with greater efficacy the [La]TeX limitation to just 16 math families.)
64 \item {\tt bfbb} forces the package to not load the regular and light weights, but use \verb|\mathbb| as if bold were the regular weight.
65 \end{itemize}
66 %The macros \verb|\mathbb| and its bold counterpart \verb|\mathbfbb| understand all alphanumeric arguments but no others, at least directly.
67
68 \textsc{Usage as a symbol font}\\
69 With a symbol font, each character may be defined as a math symbol, but, unlike one created as a MathAlphabet, it uses up one of your 16 math families even if never used in the document. In symbol font mode, \verb|\mathbb| and its bold counterpart \verb|\mathbfbb| work as expected for digits as well as Roman alphabetic arguments.
70 The symbols defined with special names are the Greek and dotless characters with names
71 \begin{verbatim}
72 \bbdotlessi, \bbdotlessj or \imathbb, \jmathbb
73 \bbGamma ... \bbOmega
74 \bbalpha ... \bbomega
75 \end{verbatim}
76 and the delimiter symbols
77 \begin{verbatim}
78 \bbLbrack
79 \bbRbrack
80 \bbLangle
81 \bbRangle
82 \bbLparen
83 \bbRparen
84 \end{verbatim}
85
86 \textsc{Usage as a MathAlphabet}\\
87 The package defines (as text symbols only) the following macros for use with the Greek letters as well as {\tt dotlessi} and {\tt dotlessj}.
88 \begin{verbatim}
89 \txtbbdotlessi, \txtbbdotlessj
90 \txtbbGamma ... \txtbbOmega
91 \txtbbalpha ... \txtbbomega
92 \txtbbLparen \txtbbRparen \txtbbLbrack \txtbbRbrack \txtbbLangle \txtbbRangle
93 \end{verbatim}
94 as well as their ``bold'' counterparts
95 \begin{verbatim}
96 \txtbfbbdotlessi, \txtbfbbdotlessj
97 \txtbfbbGamma ... \txtbfbbOmega
98 \txtbfbbalpha ... \txtbfbbomega
99 \txtbfbbLparen \txtbfbbRparen \txtbfbbLbrack \txtbfbbRbrack \txtbfbbLangle \txtbfbbRangle
100 \end{verbatim}
101
102 To use these in math you could use the \verb|\text| command from {\tt amsmath}, like
103 \begin{verbatim}
104 \[\text{\txtbbalpha}+\mathbb{1}_\{\text{\txtbbbeta}>\delta\}}\]
105 \end{verbatim}
106 which renders in MathAlphabet mode as
107 \[\text{\txtbbalpha}+\mathbb{1}_{\{\text{\txtbbbeta}>\delta\}}\]
108 \textbf{\textsc{2: Through the {\tt mathalpha} package}}
109
110
111 Place one of the lines
112 \begin{verbatim}
113 \usepackage[bb=bboldx]{mathalpha}
114 \usepackage[bb=bboldx-light]{mathalpha}
115 \end{verbatim}
116 in your document preamble following any other lines that may load math alphabets. These have the same effect as loading the {\tt bboldx} package described above. For example,
117 \begin{verbatim}
118 \usepackage[bb=bboldx-light,bbscaled=.97]{mathalpha}
119 \end{verbatim}
120 has the same effect as
121 \begin{verbatim}
122 \usepackage[light,scale=.97]{bboldx}
123 \end{verbatim}
124 The options {\tt bbsymbols} and {\tt bfbb} to {\tt mathalpha} are simply passed through to the {\tt bboldx} package for processing.
125 ({\tt Mathalpha} does of course allow you to set many other options for other math alphabets.)
126 \end{document}
127