On Thu, 1 Dec 2011, Hans van der Meer wrote:
Instead of the mathfont'a italics I would like to try an upright typeface. See for example the P.p on the left of the sample, 1-p in the second \pmatrix and the toprow in the last one.
How can I do this globally,
I don't think that there is a global interface. You can try \appendtoks \mathrm \to \everysetupmathematics. In principle, we can have an interface similar to \setupmathematics[lcgreek=...,ucgreek=...], but the choice of keys requires some thought.
there by avoiding avoiding the need to sprinkle \mathrm's all around as in: \pmatrix{\mathrm p\cr\mathrm 1-p\cr}. A single \mathrm in front as not enough for the matrices.
That is because \pmatrix uses \halign, where each cell starts a new math gruop. This reminds me of an old request to have support for \mhalign and \mvalign at the engine level. Aditya