Fonts & Character Sets ⇒ Blackboard bold numbers; trouble with \mathbb
Blackboard bold numbers; trouble with \mathbb
I just started using LaTeX and I have an issue with the \mathbb command. Letters work just fine, but when I am trying to use double-struck numbers, e.g. with \mathbb{1}, this character
shows up instead of the blackboard bold number 1. I did find out I can circumvent this by creating combining the characters "1" and "I" to make somewhat of a double-struck "1", but I would still like to know what is going wrong when I use \mathbb.
Any help would be appreciated.
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
- Stefan Kottwitz
- Site Admin
- Posts: 10360
- Joined: Mon Mar 10, 2008 9:44 pm
Blackboard bold numbers; trouble with \mathbb
\mathbb (of amsfonts) supports only letters, not digits. You could use bbm:
Code: Select all
\documentclass{article}
\usepackage{bbm}
\begin{document}
\[
\mathbbm{1}
\]
\end{document}
Code: Select all
\documentclass{article}
\usepackage{dsfont}
\begin{document}
\[
\mathds{1}
\]
\end{document}
Re: Blackboard bold numbers; trouble with \mathbb
I have a follow-up beginner's question right away: Is there an easier way of installing dsfont in MiKTeX than figuring out by myself where to put the individual files, as the documentation suggests? As it appears to me the dsfont package cannot be installed via the package manager in MiKTeX.
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Blackboard bold numbers; trouble with \mathbb
Search the package list in the MiKTeX Package Manager (MPM) for the doublestroke package and install it.299792458 wrote:[…] I have a follow-up beginner's question right away: Is there an easier way of installing dsfont in MiKTeX than figuring out by myself where to put the individual files, as the documentation suggests? As it appears to me the dsfont package cannot be installed via the package manager in MiKTeX.
Thorsten
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10