I have been using xelatex plus unicode-math for too long, and I forgot how to use pdflatex. As far as I heard, the STIX fonts are proposed as a free replacement of the fonts of Times family. They have a variety of styles and a large number of symbols. However, I recurrently fall in the same trap, namely, I do not know how to call different styles properly.
Just today I've asked how to access the bold calligraphic style and got this excellent answer. I thought my problems were over, but then I discovered that
\mathbfitas well as\bmdoes not produce bold slanted greek letters. I remember, I have see the solution already. There are also a lot of discussion here for different fonts.I found that last year I had a similar problem with STIX, and indeed got many useful answers. But then again, after re-reading the probably expert answer of Davislor I understood that I do not understand anything. Why it has to be sooooo difficult to make lambda bold!? Why, as a user, not developer I have to worry about the font ranges, fake bolds and isomath?
But I would like to narrow my question as much as possible in order to get a comprehensive answer. I would like to know how to access all possible 17 styles of math stix fonts and how this syntax is different from accessing all possible 9 styles of cm fonts. Furthermore, I am interested only in the pdflatex compatible answer. No font substitution is allowed.
Below is my minimal non working example
\documentclass[]{article}
\usepackage{stix}
\usepackage{amssymb,amsmath}
\newcommand{\symb}{aA\psi\Psi12}
\begin{document}
\begin{align}
%\mathup{\symb}\\
%\mathbfup{\symb}\\
\mathit{\symb}\\
\mathbfit{\symb}\\
%\mathsfup{\symb}\\
\mathsfit{\symb}\\
%\mathbfsfup{\symb}\\
\mathbfsfit{\symb}\\
\mathtt{\symb}\\
\mathbb{\symb}\\
\mathbbit{\symb}\\
\mathscr{\symb}\\
\mathbfscr{\symb}\\
\mathcal{\symb}\\
\mathbfcal{\symb}\\
\mathfrak{\symb}\\
\mathbffrak{\symb}
\end{align}
\end{document}
It gives me a strange error
! LaTeX Error: Too many math alphabets used in version normal.
Summary for making it a bountied question
My ultimate goal is to make as many as possible commands presented above to work in one document in a predictive fashion.
Naturally, no one will ever need to have all the styles in one document. So the error quoted above is not essential. But a reasonable subset of styles would be nice. An example would be in addition to regular variables, vectors (bold-italic, possibly calligraphic), matrices, tensors (bold serifless and sometimes calligraphic), sets (mathbb), codes (mathtt).
I would like an explanation why in order to use
\mathbfcal(not even in the alphabet table)DeclareMathAlphabetis needed, whereas in order to use\mathbfit{\psi}for greek letters the optionlcgreekalphais needed. Especially for the latter, I was assuming that a font selection command is a low level command, unlike for instance\emph, which takes other considerations into account. But why then one needslcgreekalphato overwrite.




Package amssymb Warning: The 'amssymb' package is redundant when you are using the 'stix' package, so I'm not going to load amssymb.You can/should removeamssymb(it doesn't fix the problem but a cleaner log helps debugging issues) – David Carlisle Jan 28 '21 at 23:20\alphauses a fixed font and is not affected by math alphabet commands. stix.sty chooses to keep to that behaviour, but offers the option to have a behaviour more likeunicode-mathwhere\alphaworks likeaand does follow the math alphabets. – David Carlisle Feb 01 '21 at 20:14cgreekalpha. – yarchik Feb 01 '21 at 20:22\usepackage{stix}to an existing document. but it's impossible to say why (unless you are the author of the package) the package could have been defined not to have the option or to make the option default the other way, but they chose to do it the way they did. I gather you didn't like my answer as you ask for another but I don't know what else could be said. Still someone might answer. – David Carlisle Feb 01 '21 at 20:25mathttfrowned upon, like comic sans? "12 refers to the available math alphabet slots after 4 symbol fonts have been defined" can you please substantiate your statement? I would be extremely happy to have 12 fully functional math styles in one document! It seems that one part of my misunderstanding stems from the fact that I do not know the difference between the math alphabets and symbol fonts. I thought they are all the same STIX in both cases. That is why I prefer to call them styles. – yarchik Feb 01 '21 at 21:15\DeclareSymbolFont{...}...which are allocated at the point of declaration, this is used for things like\sumor\rightarrowor\langleetc these need a known slot to work with\mathchardefan math alphabets declared with\DeclareMathAlphabetthese are only allocated if used so you can declare as many as you like but can only use at most 16 minus however many symbol fonts are declared. – David Carlisle Feb 01 '21 at 21:19\mathttthat is defined by default by the stix package. – David Carlisle Feb 01 '21 at 21:25