summaryrefslogtreecommitdiff
path: root/fonts
diff options
context:
space:
mode:
Diffstat (limited to 'fonts')
-rw-r--r--fonts/bboldx/README7
-rw-r--r--fonts/bboldx/doc/Bboldx-doc.pdfbin117248 -> 149415 bytes
-rw-r--r--fonts/bboldx/doc/Bboldx-doc.tex76
-rw-r--r--fonts/bboldx/tex/bboldx.sty217
-rw-r--r--fonts/dsserif/README6
-rw-r--r--fonts/dsserif/doc/dsserif-doc.pdfbin257248 -> 262228 bytes
-rw-r--r--fonts/dsserif/doc/dsserif-doc.tex22
-rw-r--r--fonts/dsserif/tex/dsserif.sty90
8 files changed, 317 insertions, 101 deletions
diff --git a/fonts/bboldx/README b/fonts/bboldx/README
index 353112cc8f..0b5a62e3dd 100644
--- a/fonts/bboldx/README
+++ b/fonts/bboldx/README
@@ -7,7 +7,12 @@ The files are Copyright 2007 TeX Users Group, with license:
BBOLDX extends the original to a set of three weights with the original, whose weight was a good match to Computer Modern with stem of width 40 em units, now identified as the light member, with regular and bold having stem-widths of 56 em units and 90 em units respectively. The extension is Copyright (c) Michael Sharpe 2021 and the license continues to be as before.
-Current version 1.02 2021-10-21
+Current version 1.03 2021-10-29
+
+Changes in version 1.03
+1. New options, including one to force handling as a Symbol Font rather than as a Math Alphabet.
+2. Expanded support macros particular to usage as a Symbol Font or a Math Alphabet.
+3. Expanded documentation.
Changes in version 1.01
bboldx.sty was modified so that the macro names followed the style of unicode names.
diff --git a/fonts/bboldx/doc/Bboldx-doc.pdf b/fonts/bboldx/doc/Bboldx-doc.pdf
index 89161889ee..a382abfe1b 100644
--- a/fonts/bboldx/doc/Bboldx-doc.pdf
+++ b/fonts/bboldx/doc/Bboldx-doc.pdf
Binary files differ
diff --git a/fonts/bboldx/doc/Bboldx-doc.tex b/fonts/bboldx/doc/Bboldx-doc.tex
index 7a5cecca5d..3a39613844 100644
--- a/fonts/bboldx/doc/Bboldx-doc.tex
+++ b/fonts/bboldx/doc/Bboldx-doc.tex
@@ -1,23 +1,25 @@
% !TEX TS-program = pdflatexmk
% Template file for TeXShop by Michael Sharpe, LPPL
-\documentclass[11pt]{article}
+\documentclass[11pt]{amsart}
\usepackage[margin=1in]{geometry}
\usepackage[parfill]{parskip}% Begin paragraphs with an empty line rather than an indent
-\pdfmapfile{+bboldx.map}
-\usepackage{graphicx}
+%\pdfmapfile{+bboldx.map}
+%\usepackage{graphicx}
%\usepackage{amssymb}% don't use with newtxmath
%SetFonts
% libertine+newtxmath
+\usepackage{trace}
\usepackage{newpxtext} % use sb in place of bold
\usepackage[T1]{fontenc}
\usepackage{textcomp}
\usepackage[varqu,varl]{zi4}% inconsolata
\usepackage[vvarbb]{newpxmath}
+%\usepackage[symbols]{bboldx}
\usepackage{bboldx}
% option vvarbb gives you stix blackboard bold
\useosf % use oldstyle figures except in math
%\usepackage[cal=boondoxo]{mathalfa}% less slanted than STIX cal
-\usepackage{bm}
+%\usepackage{bm}
%SetFonts
\usepackage{fonttable}
\title{{\tt BBOLDX}---an extension of {\tt BBOLD}}
@@ -26,6 +28,9 @@
\begin{document}
\maketitle
+%\[\mathbb{0123456789}\text{\txtbbGamma \txtbfbbGamma}\]
+%\[\mathbb{0123456[](),.!\#\$:;<>?/}\]
+%\end{document}
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.
Thin: {\usefont{U}{bboldx}{l}{n} \char"06\char"0C Hk1234567890}\\
@@ -35,27 +40,70 @@ Bold: {\usefont{U}{bboldx}{b}{n} \char"06\char"0C Hk1234567890}
\textsc{Font Table for BBOLDX-Regular}:\\
\fonttable{BBOLDX-Regular}
\newpage
-There are two ways these may be used.\\
-\textsc{1: Load the bboldx package.}\\
+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 Roman alphabetic arguments.
+
+There are two ways this package may be used.\\
+\textsc{1: Load the bboldx package directly.}\\
To do this, place one of the lines
\begin{verbatim}
\usepackage{bboldx} % for Regular and Bold weights
\usepackage[light]{bboldx} % for Thin and Regular weights
\end{verbatim}
-in your document preamble following any other lines that may load math alphabets. 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|\textbbb| 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---\textbb{(A)b[1].,!?<>-}. Other characters may 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}. As a convenience, the package defines (as math symbols only) the following macros for use with the Greek letters as well as {\tt dotlessi} and {\tt dotlessj}.
+in your document preamble following any other lines that may load math alphabets. Other options are available:
+\begin{itemize}
+\item
+{\tt scaled} (or {\tt scale}) controls the relative size, as in
+\begin{verbatim}
+\usepackage[scaled=1.03]{bboldx}
+\end{verbatim}
+which results in scaling up {\tt bboldx} fonts by 3\%.
+\item
+{\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.)
+\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.
+\end{itemize}
+%The macros \verb|\mathbb| and its bold counterpart \verb|\mathbfbb| understand all alphanumeric arguments but no others, at least directly.
+
+\textsc{Usage as a symbol font}\\
+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.
+The symbols defined with special names are the Greek and dotless characters with names
\begin{verbatim}
\bbdotlessi, \bbdotlessj or \imathbb, \jmathbb
\bbGamma ... \bbOmega
\bbalpha ... \bbomega
\end{verbatim}
-The package also [re]defines the macros \verb|\mathbb| and \verb|\mathbbb| to point the same glyphs as \verb|\textbb| and \verb|\textbbb|, but for use in math mode.
+and the delimiter symbols
+\begin{verbatim}
+\bbLbrack
+\bbRbrack
+\bbLangle
+\bbRangle
+\bbLparen
+\bbRparen
+\end{verbatim}
-There is also a {\tt scaled} (or {\tt scale}) option you may use to adjust the relative size of the {\tt bboldx} glyphs. For example,
+\textsc{Usage as a MathAlphabet}\\
+The package defines (as text symbols only) the following macros for use with the Greek letters as well as {\tt dotlessi} and {\tt dotlessj}.
+\begin{verbatim}
+\txtbbdotlessi, \txtbbdotlessj
+\txtbbGamma ... \txtbbOmega
+\txtbbalpha ... \txtbbomega
+\txtbbLparen \txtbbRparen \txtbbLbrack \txtbbRbrack \txtbbLangle \txtbbRangle
+\end{verbatim}
+as well as their ``bold'' counterparts
\begin{verbatim}
-\usepackage[scale=.98]{bboldx}
+\txtbfbbdotlessi, \txtbfbbdotlessj
+\txtbfbbGamma ... \txtbfbbOmega
+\txtbfbbalpha ... \txtbfbbomega
+\txtbfbbLparen \txtbfbbRparen \txtbfbbLbrack \txtbfbbRbrack \txtbfbbLangle \txtbfbbRangle
\end{verbatim}
-will lead to a 2\% reduction of the size of the rendered {\tt bboldx} characters.\
+There are no special macros for digits because they are easily handled with \verb|\textbb{0}| through \verb|\textbb{9}| and \verb|\textbfbb{0}| through \verb|\textbfbb{9}|. (In this mode, \verb|\mathbb| and \verb|\mathbfbb| don't work as expected with numeric arguments.)
+To use these in math you could use the \verb|\text| command from {\tt amsmath}, like
+\begin{verbatim}
+\[\text{\txtbbalpha}+\text{\textbb{1}}\{\text{\txtbbbeta}>\delta\}}\]
+\end{verbatim}
+which renders in MathAlphabet mode as
+\[\text{\txtbbalpha}+\text{\textbb{1}}_{\{\text{\txtbbbeta}>\delta\}}\]
\textsc{2: Through the {\tt mathalpha} package}\\
Place one of the lines
\begin{verbatim}
@@ -70,5 +118,7 @@ has the same effect as
\begin{verbatim}
\usepackage[light,scale=.97]{bboldx}
\end{verbatim}
-({\tt Mathalpha} does of course allow you to set many other math alphabet options.)
-\end{document} \ No newline at end of file
+The options {\tt bbsymbols} and {\tt bfbb} to {\tt mathalpha} are simply passed through to the {\tt bboldx} package for processing.
+({\tt Mathalpha} does of course allow you to set many other options for other math alphabets.)
+\end{document}
+ \ No newline at end of file
diff --git a/fonts/bboldx/tex/bboldx.sty b/fonts/bboldx/tex/bboldx.sty
index a840641222..b2432b1681 100644
--- a/fonts/bboldx/tex/bboldx.sty
+++ b/fonts/bboldx/tex/bboldx.sty
@@ -1,76 +1,181 @@
\NeedsTeXFormat{LaTeX2e}
-\def\fileversion{1.422}
-\def\filedate{2021/05/29}
-
-\def\fileversion{1.01}
-\def\filedate{2021/10/21}
-\ProvidesPackage{bboldx}[\filedate\space v\fileversion]
-
-\message{`bboldx' v\fileversion, \filedate\space (Michael Sharpe) Symbol package extending Bbold}
+\def\fileversion{1.03}
+\def\filedate{2021/10/29}
+\ProvidesPackage{bboldx}[%
+ \filedate\space v\fileversion\space (Michael Sharpe) Symbol package extending Bbold]
+\NeedsTeXFormat{LaTeX2e}
\RequirePackage{xkeyval}
\newif\ifbboldx@light \bboldx@lightfalse
+\newif\ifbboldx@sym
\newcommand*{\bboldx@scaled}{s*[1]}
+\newcommand*{\bboldx@m}{m}
+\newcommand*{\bboldx@b}{b}
\DeclareOptionX{scaled}{\renewcommand*{\bboldx@scaled}{s*[#1]}}
\DeclareOptionX{scale}{\renewcommand*{\bboldx@scaled}{s*[#1]}}
+\DeclareOptionX{bfbb}{\renewcommand*{\bboldx@m}{b}}
\DeclareOptionX{light}[true]{\@nameuse{bboldx@light#1}}
+\DeclareOptionX{bbsymbols}{\bboldx@symtrue}
+\DeclareOptionX{symbols}{\bboldx@symtrue}
\ProcessOptionsX\relax
\let\mathbb\relax \let\mathbbb\relax
-\def\bbx@m{m}\def\bbx@b{b}
-\ifbboldx@light\def\bbx@m{l}\def\bbx@b{m}\fi
+%\def\bbx@m{m}\def\bbx@b{b}
+\if b\bboldx@m\else
+ \ifbboldx@light
+ \renewcommand*{\bboldx@m}{l}
+ \renewcommand*{\bboldx@b}{m}
+ \fi
+\fi
-\newcommand{\bbxfamily}{\fontencoding{U}\fontfamily{bboldx}\fontseries{\bbx@m}\fontshape{n}\selectfont}
-\newcommand{\bbbxfamily}{\fontencoding{U}\fontfamily{bboldx}\fontseries{\bbx@b}\fontshape{n}\selectfont}
+\newcommand{\bbxfamily}{\fontencoding{U}\fontfamily{bboldx}\fontseries{\bboldx@m}\fontshape{n}\selectfont}
+\newcommand{\bbbxfamily}{\fontencoding{U}\fontfamily{bboldx}\fontseries{\bboldx@b}\fontshape{n}\selectfont}
% \DeclareMathAlphabet{\mathbb}{U}{bboldx}{l}{n}
% \SetMathAlphabet{\mathbb}{bold}{U}{bboldx}{m}{n}
% \DeclareMathAlphabet{\mathbbb}{U}{bboldx}{m}{n}
\newcommand{\textbb}[1]{{\bbxfamily#1}}
-\newcommand{\textbbb}[1]{{\bbbxfamily#1}}
+\newcommand{\textbfbb}[1]{{\bbbxfamily#1}}
+
+\ifbboldx@sym%
+ \DeclareSymbolFont{bboldx}{U}{bboldx}{\bboldx@m}{n}
+ \DeclareSymbolFontAlphabet{\mathbb}{bboldx}
+ \DeclareFontSubstitution{U}{bboldx}{\bboldx@m}{n}
+ \if b\bboldx@m\else
+ \SetSymbolFont{bboldx}{bold}{U}{bboldx}{\bboldx@b}{n}
+ \DeclareMathAlphabet{\mathbfbb}{U}{bboldx}{\bboldx@b}{n}
+ \fi
+ \DeclareMathSymbol{\bbdotlessi}{\mathord}{bboldx}{128}
+ \DeclareMathSymbol{\bbdotlessj}{\mathord}{bboldx}{129}
+ \DeclareMathSymbol{\bbGamma}{\mathord}{bboldx}{0}
+ \DeclareMathSymbol{\bbDelta}{\mathord}{bboldx}{1}
+ \DeclareMathSymbol{\bbTheta}{\mathord}{bboldx}{2}
+ \DeclareMathSymbol{\bbLambda}{\mathord}{bboldx}{3}
+ \DeclareMathSymbol{\bbXi}{\mathord}{bboldx}{4}
+ \DeclareMathSymbol{\bbPi}{\mathord}{bboldx}{5}
+ \DeclareMathSymbol{\bbSigma}{\mathord}{bboldx}{6}
+ \DeclareMathSymbol{\bbUpsilon}{\mathord}{bboldx}{7}
+ \DeclareMathSymbol{\bbPhi}{\mathord}{bboldx}{8}
+ \DeclareMathSymbol{\bbPsi}{\mathord}{bboldx}{9}
+ \DeclareMathSymbol{\bbOmega}{\mathord}{bboldx}{10}
+ \DeclareMathSymbol{\bbalpha}{\mathord}{bboldx}{11}
+ \DeclareMathSymbol{\bbbeta}{\mathord}{bboldx}{12}
+ \DeclareMathSymbol{\bbgamma}{\mathord}{bboldx}{13}
+ \DeclareMathSymbol{\bbdelta}{\mathord}{bboldx}{14}
+ \DeclareMathSymbol{\bbepsilon}{\mathord}{bboldx}{15}
+ \DeclareMathSymbol{\bbzeta}{\mathord}{bboldx}{16}
+ \DeclareMathSymbol{\bbeta}{\mathord}{bboldx}{17}
+ \DeclareMathSymbol{\bbtheta}{\mathord}{bboldx}{18}
+ \DeclareMathSymbol{\bbiota}{\mathord}{bboldx}{19}
+ \DeclareMathSymbol{\bbkappa}{\mathord}{bboldx}{20}
+ \DeclareMathSymbol{\bblambda}{\mathord}{bboldx}{21}
+ \DeclareMathSymbol{\bbmu}{\mathord}{bboldx}{22}
+ \DeclareMathSymbol{\bbnu}{\mathord}{bboldx}{23}
+ \DeclareMathSymbol{\bbxi}{\mathord}{bboldx}{24}
+ \DeclareMathSymbol{\bbpi}{\mathord}{bboldx}{25}
+ \DeclareMathSymbol{\bbrho}{\mathord}{bboldx}{26}
+ \DeclareMathSymbol{\bbsigma}{\mathord}{bboldx}{27}
+ \DeclareMathSymbol{\bbtau}{\mathord}{bboldx}{28}
+ \DeclareMathSymbol{\bbupsilon}{\mathord}{bboldx}{29}
+ \DeclareMathSymbol{\bbphi}{\mathord}{bboldx}{30}
+ \DeclareMathSymbol{\bbchi}{\mathord}{bboldx}{31}
+ \DeclareMathSymbol{\bbpsi}{\mathord}{bboldx}{32}
+ \DeclareMathSymbol{\bbomega}{\mathord}{bboldx}{127}
+ \DeclareMathSymbol{\bbLbrack}{\mathopen}{bboldx}{`[}
+ \DeclareMathSymbol{\bbRbrack}{\mathclose}{bboldx}{`]}
+ \DeclareMathSymbol{\bbLangle}{\mathopen}{bboldx}{`<}
+ \DeclareMathSymbol{\bbRangle}{\mathclose}{bboldx}{`>}
+ \DeclareMathSymbol{\bbLparen}{\mathopen}{bboldx}{`(}
+ \DeclareMathSymbol{\bbRparen}{\mathclose}{bboldx}{`)}
+
+ \let\imathbb\bbdotlessi
+ \let\jmathbb\bbdotlessj
+\else
+ \def\bboldx@mpre{\usefont{U}{bboldx}{\bboldx@m}{n}\char}
+ \def\bboldx@bpre{\usefont{U}{bboldx}{\bboldx@b}{n}\char}
+ \def\bboldx@txt#1#2{\@namedef{txtbb#1}{{\bboldx@mpre #2}} \@namedef{txtbfbb#1}{{\bboldx@bpre #2}}}
-\DeclareSymbolFont{bboldx}{U}{bboldx}{\bbx@m}{n}
-\SetSymbolFont{bboldx}{bold}{U}{bboldx}{\bbx@b}{n}
-\DeclareFontSubstitution{U}{bboldx}{\bbx@m}{n}
-\DeclareSymbolFontAlphabet{\mathbb}{bboldx}
-\DeclareMathAlphabet{\mathbbb}{U}{bboldx}{b}{n}
+ \bboldx@txt{Gamma}{0}
+ \bboldx@txt{Delta}{1}
+ \bboldx@txt{Theta}{2}
+ \bboldx@txt{Lambda}{3}
+ \bboldx@txt{Xi}{4}
+ \bboldx@txt{Pi}{5}
+ \bboldx@txt{Sigma}{6}
+ \bboldx@txt{Upsilon}{7}
+ \bboldx@txt{Phi}{8}
+ \bboldx@txt{Psi}{9}
+ \bboldx@txt{Omega}{10}
+\bboldx@txt{alpha}{11}
+\bboldx@txt{beta}{12}
+\bboldx@txt{gamma}{13}
+\bboldx@txt{delta}{14}
+\bboldx@txt{epsilon}{15}
+\bboldx@txt{zeta}{16}
+\bboldx@txt{eta}{17}
+\bboldx@txt{theta}{18}
+\bboldx@txt{iota}{19}
+\bboldx@txt{kappa}{20}
+\bboldx@txt{lambda}{21}
+\bboldx@txt{mu}{22}
+\bboldx@txt{nu}{23}
+\bboldx@txt{xi}{24}
+\bboldx@txt{pi}{25}
+\bboldx@txt{rho}{26}
+\bboldx@txt{sigma}{27}
+\bboldx@txt{tau}{28}
+\bboldx@txt{upsilon}{29}
+\bboldx@txt{phi}{30}
+\bboldx@txt{chi}{31}
+\bboldx@txt{psi}{32}
+\bboldx@txt{omega}{127}
+\bboldx@txt{dotlessi}{128}
+\bboldx@txt{dotlessj}{129}
+\bboldx@txt{Lparen}{40}
+\bboldx@txt{Rparen}{41}
+\bboldx@txt{Lbrack}{91}
+\bboldx@txt{Rbrack}{93}
+\bboldx@txt{Rangle}{94}
+\bboldx@txt{Rangle}{95}
-\DeclareMathSymbol{\bbdotlessi}{\mathord}{bboldx}{128}
-\DeclareMathSymbol{\bbdotlessj}{\mathord}{bboldx}{129}
-\DeclareMathSymbol{\bbGamma}{\mathord}{bboldx}{0}
-\DeclareMathSymbol{\bbDelta}{\mathord}{bboldx}{1}
-\DeclareMathSymbol{\bbTheta}{\mathord}{bboldx}{2}
-\DeclareMathSymbol{\bbLambda}{\mathord}{bboldx}{3}
-\DeclareMathSymbol{\bbXi}{\mathord}{bboldx}{4}
-\DeclareMathSymbol{\bbPi}{\mathord}{bboldx}{5}
-\DeclareMathSymbol{\bbSigma}{\mathord}{bboldx}{6}
-\DeclareMathSymbol{\bbUpsilon}{\mathord}{bboldx}{7}
-\DeclareMathSymbol{\bbPhi}{\mathord}{bboldx}{8}
-\DeclareMathSymbol{\bbPsi}{\mathord}{bboldx}{9}
-\DeclareMathSymbol{\bbOmega}{\mathord}{bboldx}{10}
-\DeclareMathSymbol{\bbalpha}{\mathord}{bboldx}{11}
-\DeclareMathSymbol{\bbbeta}{\mathord}{bboldx}{12}
-\DeclareMathSymbol{\bbgamma}{\mathord}{bboldx}{13}
-\DeclareMathSymbol{\bbdelta}{\mathord}{bboldx}{14}
-\DeclareMathSymbol{\bbepsilon}{\mathord}{bboldx}{15}
-\DeclareMathSymbol{\bbzeta}{\mathord}{bboldx}{16}
-\DeclareMathSymbol{\bbeta}{\mathord}{bboldx}{17}
-\DeclareMathSymbol{\bbtheta}{\mathord}{bboldx}{18}
-\DeclareMathSymbol{\bbiota}{\mathord}{bboldx}{19}
-\DeclareMathSymbol{\bbkappa}{\mathord}{bboldx}{20}
-\DeclareMathSymbol{\bblambda}{\mathord}{bboldx}{21}
-\DeclareMathSymbol{\bbmu}{\mathord}{bboldx}{22}
-\DeclareMathSymbol{\bbnu}{\mathord}{bboldx}{23}
-\DeclareMathSymbol{\bbxi}{\mathord}{bboldx}{24}
-\DeclareMathSymbol{\bbpi}{\mathord}{bboldx}{25}
-\DeclareMathSymbol{\bbrho}{\mathord}{bboldx}{26}
-\DeclareMathSymbol{\bbsigma}{\mathord}{bboldx}{27}
-\DeclareMathSymbol{\bbtau}{\mathord}{bboldx}{28}
-\DeclareMathSymbol{\bbupsilon}{\mathord}{bboldx}{29}
-\DeclareMathSymbol{\bbphi}{\mathord}{bboldx}{30}
-\DeclareMathSymbol{\bbchi}{\mathord}{bboldx}{31}
-\DeclareMathSymbol{\bbpsi}{\mathord}{bboldx}{32}
-\DeclareMathSymbol{\bbomega}{\mathord}{bboldx}{127}
-\let\imathbb\bbdotlessi
-\let\jmathbb\bbdotlessj
+ % \newcommand*{\txtbbGamma}{{\usefont{U}{bboldx}{\bboldx@m}{n}\char0 }}
+% \newcommand*{\txtbbDelta}{{\usefont{U}{bboldx}{\bboldx@m}{n}\char1 }}
+% \newcommand*{\txtbbTheta}{{\usefont{U}{bboldx}{\bboldx@m}{n}\char2 }}
+% \newcommand*{\txtbbLambda}{{\usefont{U}{bboldx}{\bboldx@m}{n}\char3 }}
+% \newcommand*{\txtbbXi}{{\usefont{U}{bboldx}{\bboldx@m}{n}\char4 }}
+% \newcommand*{\txtbbPi}{{\usefont{U}{bboldx}{\bboldx@m}{n}\char5 }}
+% \newcommand*{\txtbbSigma}{{\usefont{U}{bboldx}{\bboldx@m}{n}\char6 }}
+% \newcommand*{\txtbbUpsilon}{{\usefont{U}{bboldx}{\bboldx@m}{n}\char7 }}
+% \newcommand*{\txtbbPhi}{{\usefont{U}{bboldx}{\bboldx@m}{n}\char8 }}
+% \newcommand*{\txtbbPsi}{{\usefont{U}{bboldx}{\bboldx@m}{n}\char9 }}
+% \newcommand*{\txtbbOmega}{{\usefont{U}{bboldx}{\bboldx@m}{n}\char10 }}
+% \newcommand*{\txtbbalpha}{{\usefont{U}{bboldx}{\bboldx@m}{n}\char11 }}
+% \newcommand*{\txtbbbeta}{{\usefont{U}{bboldx}{\bboldx@m}{n}\char12 }}
+% \newcommand*{\txtbbgamma}{{\usefont{U}{bboldx}{\bboldx@m}{n}\char13 }}
+% \newcommand*{\txtbbdelta}{{\usefont{U}{bboldx}{\bboldx@m}{n}\char14 }}
+% \newcommand*{\txtbbepsilon}{{\usefont{U}{bboldx}{\bboldx@m}{n}\char15 }}
+% \newcommand*{\txtbbzeta}{{\usefont{U}{bboldx}{\bboldx@m}{n}\char16 }}
+% \newcommand*{\txtbbeta}{{\usefont{U}{bboldx}{\bboldx@m}{n}\char17 }}
+% \newcommand*{\txtbbtheta}{{\usefont{U}{bboldx}{\bboldx@m}{n}\char18 }}
+% \newcommand*{\txtbbiota}{{\usefont{U}{bboldx}{\bboldx@m}{n}\char19 }}
+% \newcommand*{\txtbbkappa}{{\usefont{U}{bboldx}{\bboldx@m}{n}\char20 }}
+% \newcommand*{\txtbblambda}{{\usefont{U}{bboldx}{\bboldx@m}{n}\char21}}
+% \newcommand*{\txtbbmu}{{\usefont{U}{bboldx}{\bboldx@m}{n}\char22 }}
+% \newcommand*{\txtbbnu}{{\usefont{U}{bboldx}{\bboldx@m}{n}\char23 }}
+% \newcommand*{\txtbbxi}{{\usefont{U}{bboldx}{\bboldx@m}{n}\char24 }}
+% \newcommand*{\txtbbpi}{{\usefont{U}{bboldx}{\bboldx@m}{n}\char25 }}
+% \newcommand*{\txtbbrho}{{\usefont{U}{bboldx}{\bboldx@m}{n}\char26 }}
+% \newcommand*{\txtbbsigma}{{\usefont{U}{bboldx}{\bboldx@m}{n}\char27 }}
+% \newcommand*{\txtbbtau}{{\usefont{U}{bboldx}{\bboldx@m}{n}\char28 }}
+% \newcommand*{\txtbbupsilon}{{\usefont{U}{bboldx}{\bboldx@m}{n}\char29 }}
+% \newcommand*{\txtbbphi}{{\usefont{U}{bboldx}{\bboldx@m}{n}\char30 }}
+% \newcommand*{\txtbbchi}{{\usefont{U}{bboldx}{\bboldx@m}{n}\char31 }}
+% \newcommand*{\txtbbpsi}{{\usefont{U}{bboldx}{\bboldx@m}{n}\char32 }}
+% \newcommand*{\txtbbomega}{{\usefont{U}{bboldx}{\bboldx@m}{n}\char127 }}
+% \newcommand*{\txtbbdotlessi}{{\usefont{U}{bboldx}{\bboldx@m}{n}\char128 }}
+% \newcommand*{\txtbbdotlessj}{{\usefont{U}{bboldx}{\bboldx@m}{n}\char129 }}
+\fi
+%
+
+
\endinput
diff --git a/fonts/dsserif/README b/fonts/dsserif/README
index ed00d11ac7..9181661d7d 100644
--- a/fonts/dsserif/README
+++ b/fonts/dsserif/README
@@ -19,7 +19,11 @@ The font files and the LaTeX support files are
Files provided "as is", with no warranties.
-Current version: 1.02 2021-10-23
+Current version: 1.03 2021-10-28
+
+Changes in version 1.03
+1. Added options symbols (load as symbol font, not as MathAlphabet), bfbb (force \mathbb to refer to bold weight.)
+2. Added math macros for Greek letters if loading as symbol font, and text macros for those characters if in MathAlphabet mode.
Changes in version 1.02
1. Added Greek uppercase letters (regular weight only.)
diff --git a/fonts/dsserif/doc/dsserif-doc.pdf b/fonts/dsserif/doc/dsserif-doc.pdf
index bf892869b6..99710c6f35 100644
--- a/fonts/dsserif/doc/dsserif-doc.pdf
+++ b/fonts/dsserif/doc/dsserif-doc.pdf
Binary files differ
diff --git a/fonts/dsserif/doc/dsserif-doc.tex b/fonts/dsserif/doc/dsserif-doc.tex
index fbf021e681..1a50902940 100644
--- a/fonts/dsserif/doc/dsserif-doc.tex
+++ b/fonts/dsserif/doc/dsserif-doc.tex
@@ -17,7 +17,7 @@
% option vvarbb gives you stix blackboard bold
\useosf % use oldstyle figures except in math
\usepackage{trace}
-\usepackage{dsserif}
+\usepackage[symbols]{dsserif}
\usepackage{bm}
%SetFonts
\title{The DSSerif Package}
@@ -26,10 +26,17 @@
\begin{document}
\maketitle
-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 only package option is {\tt scaled}, which may be used to scale the size, like
+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:
+\begin{itemize}
+\item
+{\tt scaled} (or {\tt scale}) controls the relative size, as in
\begin{verbatim}
\usepackage[scaled=1.03]{dsserif}
\end{verbatim}
+\item
+{\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.)
+\item {\tt bfbb} forces the package to not load the regular weight, but use \verb|\mathbb| as if bold were the regular weight.
+\end{itemize}
The available characters are:\\
@@ -56,10 +63,11 @@ If you load the {\tt dsserif} package using
\usepackage{dsserif}
\end{verbatim}
then
-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|\mathbbb| may be used without \verb|\boldmath| or \verb|\bm| to render a bold symbol, e.g., \verb|\mathbbb{A}| gives $\mathbbb{A}$.
+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}$.
-\textbf{Macros for non-alphabetic characters}\\
-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{\imathbb}| gives $\bm{\imathbb}$, as expected. There are also some Greek letters available. Currently, these are only in regular weight and are pictured above,
+\textbf{Macros for non-alphanumeric characters}\\
+\textbf{For the following paragraph, you need to use the option {\tt bfbb}.}\\
+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,
having names
\begin{verbatim}
\bbGamma
@@ -77,9 +85,9 @@ I like to use $\bbdotlessi$ and $\bbdotlessj$ (or their bold versions) for unit
The {\tt DSSerif} glyphs may also be accessed using {\tt mathalpha}:
\begin{verbatim}
-\usepackage[bb=dsserif]{mathalpha}
+\usepackage[bb=dsserif]{mathalpha} % there are also options bfbb and bbsymbols
\end{verbatim}
-(added after loading other math fonts) will redefine \verb|\mathbb| and \verb|\mathbbb| 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.,
+(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.,
\begin{verbatim}
$x\in \text{{\usefont{U}{DSSerif}{m}{n}C}}^n$
\end{verbatim}
diff --git a/fonts/dsserif/tex/dsserif.sty b/fonts/dsserif/tex/dsserif.sty
index 69938a9c29..24b57b4519 100644
--- a/fonts/dsserif/tex/dsserif.sty
+++ b/fonts/dsserif/tex/dsserif.sty
@@ -1,38 +1,82 @@
\NeedsTeXFormat{LaTeX2e}
-\def\fileversion{1.02}
-\def\filedate{2021/10/23}
+\def\fileversion{1.03}
+\def\filedate{2021/10/28}
\ProvidesPackage{dsserif}[\filedate\space v\fileversion\space U/dsserif]
%\@ifundefined{hexnumber@}{\input{binhex}}{}
\RequirePackage{xkeyval}%
\newcommand*{\DSS@scale}{1}
+\newcommand*{\DSS@m}{m}
+\newif\ifDSS@sym
\DeclareOptionX{scale}{\renewcommand*{\DSS@scale}{#1}}
\DeclareOptionX{scaled}{\renewcommand*{\DSS@scale}{#1}}
+\DeclareOptionX{bfbb}{\renewcommand*{\DSS@m}{b}}
+\DeclareOptionX{bbsymbols}{\DSS@symtrue}
+\DeclareOptionX{symbols}{\DSS@symtrue}
\ExecuteOptionsX{scale}%
\ProcessOptionsX\relax%
\let\mathbb\relax
-\DeclareSymbolFont{DSSerif}{U}{DSSerif}{m}{n}
-\SetSymbolFont{DSSerif}{bold}{U}{DSSerif}{b}{n}
-\DeclareFontSubstitution{U}{DSSerif}{m}{n}
-\DeclareSymbolFontAlphabet{\mathbb}{DSSerif}
-\let\mathbbb\relax
-\DeclareMathAlphabet{\mathbbb}{U}{DSSerif}{b}{n}
-\DeclareMathSymbol{\bbGamma}{\mathord}{DSSerif}{0}
-\DeclareMathSymbol{\bbDelta}{\mathord}{DSSerif}{1}
-\DeclareMathSymbol{\bbTheta}{\mathord}{DSSerif}{2}
-\DeclareMathSymbol{\bbLambda}{\mathord}{DSSerif}{3}
-%\DeclareMathSymbol{\bbXi}{\mathord}{DSSerif}{4}
-\DeclareMathSymbol{\bbPi}{\mathord}{DSSerif}{5}
-\DeclareMathSymbol{\bbSigma}{\mathord}{DSSerif}{6}
-%\DeclareMathSymbol{\bbUpsilon}{\mathord}{DSSerif}{7}
-\DeclareMathSymbol{\bbPhi}{\mathord}{DSSerif}{8}
-\DeclareMathSymbol{\bbPsi}{\mathord}{DSSerif}{9}
-\DeclareMathSymbol{\bbOmega}{\mathord}{DSSerif}{10}
-\DeclareMathSymbol{\bbdotlessi}{\mathord}{DSSerif}{16}
-\DeclareMathSymbol{\bbdotlessj}{\mathord}{DSSerif}{17}
-\let\imathbb\bbdotlessi
-\let\jmathbb\bbdotlessj
+\DeclareFontFamily{U}{DSSerif}{\skewchar \font =45}% openface
+\DeclareFontShape{U}{DSSerif}{m}{n}{
+ <-> \DSS@scale DSSerif}{}
+\DeclareFontShape{U}{DSSerif}{b}{n}{
+ <-> \DSS@scale DSSerif-Bold}{}
+\DeclareFontSubstitution{U}{DSSerif}{\DSS@m}{n}
+\ifDSS@sym
+ \DeclareSymbolFont{DSSerifS}{U}{DSSerif}{\DSS@m}{n}
+ \DeclareSymbolFontAlphabet{\mathbb}{DSSerifS}
+ \if b\DSS@m\else%
+ \SetSymbolFont{DSSerifS}{bold}{U}{DSSerif}{b}{n}
+ \DeclareMathAlphabet{\mathbfbb}{U}{DSSerif}{b}{n}%\DeclareFontSubstitution{U}{DSSerifS}{m}{n}
+ \fi
+ \DeclareMathSymbol{\bbGamma}{\mathord}{DSSerifS}{0}
+ \DeclareMathSymbol{\bbDelta}{\mathord}{DSSerifS}{1}
+ \DeclareMathSymbol{\bbTheta}{\mathord}{DSSerifS}{2}
+ \DeclareMathSymbol{\bbLambda}{\mathord}{DSSerifS}{3}
+ %\DeclareMathSymbol{\bbXi}{\mathord}{DSSerif}{4}
+ \DeclareMathSymbol{\bbPi}{\mathord}{DSSerifS}{5}
+ \DeclareMathSymbol{\bbSigma}{\mathord}{DSSerifS}{6}
+ %\DeclareMathSymbol{\bbUpsilon}{\mathord}{DSSerif}{7}
+ \DeclareMathSymbol{\bbPhi}{\mathord}{DSSerifS}{8}
+ \DeclareMathSymbol{\bbPsi}{\mathord}{DSSerifS}{9}
+ \DeclareMathSymbol{\bbOmega}{\mathord}{DSSerifS}{10}
+ \DeclareMathSymbol{\bbdotlessi}{\mathord}{DSSerifS}{16}
+ \DeclareMathSymbol{\bbdotlessj}{\mathord}{DSSerifS}{17}
+ \let\imathbb\bbdotlessi
+ \let\jmathbb\bbdotlessj
+\else
+ \DeclareMathAlphabet{\mathbb}{U}{DSSerif}{\DSS@m}{n}
+ \if b\DSS@m\else%
+ \SetMathAlphabet{\mathbb}{bold}{U}{DSSerif}{b}{n}
+ \DeclareMathAlphabet{\mathbfbb} {U}{DSSerif}{b}{n}
+ \let\mathbbb\mathbfbb
+ \fi
+ \newcommand*{\txtbbGamma}{{\usefont{U}{DSSerif}{m}{n}\char0 }}
+ \newcommand*{\txtbbDelta}{{\usefont{U}{DSSerif}{m}{n}\char1 }}
+ \newcommand*{\txtbbTheta}{{\usefont{U}{DSSerif}{m}{n}\char2 }}
+ \newcommand*{\txtbbLambda}{{\usefont{U}{DSSerif}{m}{n}\char3 }}
+ %\newcommand*{\txtbbXi}{{\usefont{U}{DSSerif}{m}{n}\char4 }}
+ \newcommand*{\txtbbPi}{{\usefont{U}{DSSerif}{m}{n}\char5 }}
+ \newcommand*{\txtbbSigma}{{\usefont{U}{DSSerif}{m}{n}\char6 }}
+ %\newcommand*{\txtbbUpsilon}{{\usefont{U}{DSSerif}{m}{n}\char{DSSerif}{7 }}
+ \newcommand*{\txtbbPhi}{{\usefont{U}{DSSerif}{m}{n}\char8 }}
+ \newcommand*{\txtbbPsi}{{\usefont{U}{DSSerif}{m}{n}\char9 }}
+ \newcommand*{\txtbbOmega}{{\usefont{U}{DSSerif}{m}{n}\char10 }}
+ \newcommand*{\txtbbdotlessi}{{\usefont{U}{DSSerif}{m}{n}\char16 }}
+ \newcommand*{\txtbbdotlessj}{{\usefont{U}{DSSerif}{m}{n}\char17 }}
+% \def\txtbbzero{{\usefont{U}{DSSerif}{m}{n}0}}
+% \def\txtbbone{{\usefont{U}{DSSerif}{m}{n}1}}
+% \def\txtbbtwo{{\usefont{U}{DSSerif}{m}{n}2}}
+% \def\txtbbthree{{\usefont{U}{DSSerif}{m}{n}3}}
+% \def\txtbbfour{{\usefont{U}{DSSerif}{m}{n}4}}
+% \def\txtbbfive{{\usefont{U}{DSSerif}{m}{n}5}}
+% \def\txtbbsix{{\usefont{U}{DSSerif}{m}{n}6}}
+% \def\txtbbseven{{\usefont{U}{DSSerif}{m}{n}7}}
+% \def\txtbbeight{{\usefont{U}{DSSerif}{m}{n}8}}
+% \def\txtbbnine{{\usefont{U}{DSSerif}{m}{n}9}}
+
+\fi
\endinput