Use both boondox-ds and the blackboard fonts from amsfonts

I want to use the blackboard bold font boondox-ds provided by the boondox package, but keep, for denoting number sets, the \mathbb from amsfonts. What boondox-ds does, however, is overwriting \mathbb. How can I, instead, import boondox-ds to, say, \mathbbbondox?

• Please provide a minimal working example (MWE). – cfr Dec 8 '14 at 2:19
• Note that there is no default \mathbb. I've edited your question according to my best guess at your meaning. If I've misunderstood, please roll back my changes and clarify it yourself. – cfr Dec 8 '14 at 2:30
• Two blackboard bold fonts not very different from each other will confuse readers. – egreg Dec 8 '14 at 9:46

Provided you can spare a maths alphabet:

\documentclass{article}
\usepackage{mathtools,amssymb,amsfonts}
\DeclareMathAlphabet{\mathbx}{U}{BOONDOX-ds}{m}{n}
\SetMathAlphabet{\mathbx}{bold}{U}{BOONDOX-ds}{b}{n}
\DeclareMathAlphabet{\mathbbx} {U}{BOONDOX-ds}{b}{n}
\begin{document}

\verb|\mathbb|
$\mathbb{N Z R}$

\verb|\mathbx|
$\mathbx{N Z R}$

\end{document}


• Thanks, works perfektly! But I can use anything insetead of \mathbx, right? Because at first your comment "Provided you can spare a maths alphabet:" made me think I mathbx was also defined by amsfonts – 黄雨伞 Dec 9 '14 at 16:56
• @黄雨伞 Yes. You can use anything. Just you only have 16 maths fonts. So it is possible to run out. – cfr Dec 9 '14 at 17:13