I need a blackboard bold 1. I know the font bbold provides it along with 0, but if I declare the math alphabet via:
\DeclareSymbolFond{bbold}{U}{bbold}{m}{n}
\DeclareMathAlphabet{\bbold}{bbold}
or the likes, I get a too many math alphabets used error message which I cannot resolve because my very complex package mixes many fonts and produces the error, and the combination I want is the one in force and I don't want to engage in a messy editing of the package which is absolutely huge. I found a workaround here which brought me to:
\documentclass[a4paper]{report}
\usepackage{amsmath,amssymb,amsfonts}
\begin{document}
[\mathbb{Z}\quad{\fontencoding{U}\fontfamily{bbold}\fontseries{m}\fontshape{n}\selectfont 1\csname U/bbold/m/n\endcsname1}.]
\fontencoding{U}\fontfamily{bbold}\fontseries{m}\fontshape{n}\selectfont1
\end{document}
This outputs:
I notice the font selection commands work only in text mode. Now I could, of course, switch to text mode every time I need a blackboard bold 1, which is not very often, but I don't like the idea too much. So I was wondering: why do the 1s in math mode stay in their normal font? Why is there no warning of any kind about this font substitution? And how do I make these commands work in math mode, or anyway select that font in math mode (without the commands at the question's top of course)?


\text{\usefont{U}{bbold}{m}{n}1}is better. – egreg Aug 02 '15 at 16:23bbolddeclared, but then I tried changing\mathcalto usedutchcaland it complained, and removing the declaration ofbboldallowed me to usedutchcal. Besides that, I have an idea which I just thought of which might save some fonts, but it's pretty long to implement and I'm not sure how out of time I am at the moment because correcting the notes of someone who didn't prepare his lessons can take anything from hours to months :). Or 6 to 8 weeks :). – MickG Aug 02 '15 at 16:40