5

I am a regular Overleaf user. I wanted to compile $\mathbb{5}$. I can do it for $\mathbb{1}$(Or like $\mathbb{1}$). I have read this.

I have used this set of packages alongside the other necessary packages.

\usepackage{bbm} %%(The \mathbb{} effect for 1 only)
%\usepackage{newtxmath} %%(The \mathbb{} effect for digits)
%\usepackage{unicode-math} %(Only works with LuaLatex)
\usepackage{dsfont}

The only time I have a positive return is the case when I use usepackage{newtxmath}. But when I use the package, it ruins the whole text of the pdf.

2
  • 1
    @DavidCarlisle, \mathds{5} is not working for me. Commented Oct 14, 2020 at 10:45
  • With cmathbb package in the new version of TexLive.
    – M.Ahmadi
    Commented Oct 15, 2020 at 7:44

2 Answers 2

10

You could use the double struck from stix2, just taking enough from stix2.sty to define the one font not change the whole setup.

enter image description here

\documentclass{article}
\DeclareFontEncoding{LS1}{}{}
\DeclareFontSubstitution{LS1}{stix2}{m}{n}
\DeclareMathAlphabet{\stixbb}{LS1}{stix2bb}   {m} {n}
\begin{document}

[$\stixbb{12345}+12345$]

\end{document}
3
  • I use \documentclass{amsart}. There will be no issues, right? Commented Oct 14, 2020 at 11:20
  • 2
    font setup in amsart is essentially same as article+amsmath so should be fine @RalphClausen Commented Oct 14, 2020 at 11:28
  • Thanks! @DavidCarlisle Commented Oct 14, 2020 at 11:38
3

This works out of the box in unicode-math. The package also supports \Bbbfive and the Unicode character 𝟝.

You must log in to answer this question.

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