I want to create a mnemonic command for \mathbb{1} as provided by mathpazo. I can't just use \newcommand*{\unity}{\mathbb{1}}, because that would break the moment I were to change math fonts (e.g., if I wanted to revert to Computer Modern), since usually there is not \mathbb{1} provided and I would need to load a package like bbm.

So instead I thought I could use \DeclareMathSymbol{\unity}{\mathord}{<sym-font-name}{<slot>}. But how can I find the proper family in \DeclareSymbolFont{sym-font-name}{encoding}{family}{series}{shape}?

pazotest.pdf on page 12 states that apparently the slot for \mathbb{1} is "31, but I don't know how to access "Pazo Math Blackboard Bold".

2 Answers
2

You can declare a new math alphabet \mathbb and you have access to it without loading mathpazo. The downside is clearly this occupy a math alphabet (out of the limited 16). Another solution which is perhaps more close to what you want is,