5

In the answers to package for \mathbb{lowercase letter} symbol there are two options for a blackboard bold font that includes lower case letters. They look like this:

enter image description here

Unfortunately neither of these look very good to me. The mathbol one is better, but still looks pretty awkward, with the n being much wider than the s, for example.

On the other hand, MathJax has quite a nice font for this - if I write the same thing on a Stack Exchange site that supports it, I get this:

enter image description here

I know that MathJax isn't LaTeX, but since the font exists I'm wondering if there is a LaTeX package that provides it, or something similar. I wouldn't use the mathbol or bbm fonts in a paper, but I would use this if there was a way to generate it in LaTeX.

Here's the mwe for the two LaTeX packages:

\documentclass{article}
\usepackage{mathbbol}
\usepackage{bbm}
\begin{document}

mathbol package: $\mathbb{Lens}$

bbm package: $\mathbbm{Lens}$

\end{document}
2
  • Is it an option to use LuaTeX and to load one of the many OpenType fonts that have these lower case double struck letters?
    – mickep
    Commented Mar 31, 2023 at 10:46
  • @mickep unfortunately I'd run into the age-old issue that arXiv doesn't support LuaTeX. I really wish they did.
    – N. Virgo
    Commented Mar 31, 2023 at 10:48

1 Answer 1

10

The only font I know which isn't really ugly is STIX2-bb.

\documentclass{article}
\usepackage{amsmath}
\usepackage{amssymb}

\DeclareFontFamily{U}{stix2bb}{\skewchar\font127 }
\DeclareFontShape{U}{stix2bb}{m}{n} {<-> stix2-mathbb}{}
\DeclareMathAlphabet{\mathbb}{U}{stix2bb}{m}{n}

\begin{document}

$X+\mathbb{X}$

$\mathbb{AbcdeFghi}$

\end{document}

Don't try anything else than letters inside \mathbb.

enter image description here

2
  • Cool, I'm pretty sure that's exactly the font MathJax uses.
    – N. Virgo
    Commented Mar 31, 2023 at 11:43
  • 2
    @N.Virgo -- The blackboard bold in STIX2 was modeled after the old metal Monotype alphabet. Not everybody really likes it, but it's definitely "traditional". (Just a historical aside.) Commented Mar 31, 2023 at 19:00

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .