Now you can stack bold with mathfrak, bold with mathcal. Symbols can also be bolded, italicized or both — 𝜋 𝛑 𝝅.
When converting the AST, a global font context stack is used to keep track of which character variants to use for the conversion.
Mathematical variants are always preferred if available, as they are usually more standardized symbols.
There are interactions between functions that can be surprising:
\i{\mathfrak{sample}} ⟹ \mathfrak{sample}
\mathfrak{\i{sample}} ⟹ \i{sample}
Superscript and subscript override the current font context as there are no font variants for super/subscripts
These can be confusing, but so is LaTeX in general. I think the addition of catchall \i and \b functions for italic and bold are a big step up from the different incompatible functions required by LaTeX for bold math symbols, bold text, etc.
Now you can stack bold with mathfrak, bold with mathcal. Symbols can also be bolded, italicized or both — 𝜋 𝛑 𝝅. When converting the AST, a global font context stack is used to keep track of which character variants to use for the conversion. Mathematical variants are always preferred if available, as they are usually more standardized symbols.
There are interactions between functions that can be surprising:
\i{\mathfrak{sample}}
⟹\mathfrak{sample}
\mathfrak{\i{sample}}
⟹\i{sample}
These can be confusing, but so is LaTeX in general. I think the addition of catchall
\i
and\b
functions for italic and bold are a big step up from the different incompatible functions required by LaTeX for bold math symbols, bold text, etc.Resolves #7