Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

De-emphasise the \mathXX synonyms in the documentation #446

Open
wspr opened this issue Jan 25, 2018 · 7 comments
Open

De-emphasise the \mathXX synonyms in the documentation #446

wspr opened this issue Jan 25, 2018 · 7 comments

Comments

@wspr
Copy link
Collaborator

wspr commented Jan 25, 2018

I'm not sure if I'll ever phase out the \mathXX synonyms entirely, but they definitely seem to cause confusion. (E.g., https://tex.stackexchange.com/questions/411995/unicode-math-changing-it-and-bfup-font-ranges)

I now think it would be best to introduce all the new commands as \symXX, and only later introduce the synonyms. The synonyms are really only there for backwards compatibility...

@davidcarlisle
Copy link
Member

davidcarlisle commented Jan 25, 2018 via email

@wspr
Copy link
Collaborator Author

wspr commented Jan 25, 2018

Oops sorry, I should have explained myself better. I meant that the legacy \mathrm commands should be promoted as what they are, and new UM commands \symup, etc, not given “synonyms” with \math.. prefix just because that’s what people are used to writing.

@wspr
Copy link
Collaborator Author

wspr commented Jan 26, 2018

To be a little more clear, the synonyms I was referring to are listed below.
The first are "legitimate" synonyms for compatibility:

    \cs{symbb}      & \cs{mathbb}     \\
    \cs{symcal}     & \cs{mathcal}    \\
    \cs{symscr}     & \cs{mathscr}    \\
    \cs{symfrak}    & \cs{mathfrak}   \\

But the rest are less clear:

    \cs{symbbit}    & \cs{mathbbit}   \\
    \cs{symsfup}    & \cs{mathsfup}   \\
    \cs{symsfit}    & \cs{mathsfit}   \\
    \cs{symbfit}    & \cs{mathbfit}   \\
    \cs{symbfcal}   & \cs{mathbfcal}  \\
    \cs{symbfscr}   & \cs{mathbfscr}  \\
    \cs{symbffrak}  & \cs{mathbffrak} \\
    \cs{symbfsfup}  & \cs{mathbfsfup} \\
    \cs{symbfsfit}  & \cs{mathbfsfit} \\

I haven't fully sorted how this can be fixed up to avoid continued confusion, but I think I need to do a re-think.

@callegar
Copy link

I really think that \mathbfit should not be an alias of \symbfit as that breaks the promise made in the unicode-math manual about the fact that "The legacy \math.. commands switch to text fonts that are set up to behave correctly in mathematics, and should be used for multi-letter identifiers.".

As unicode-math is now, \mathbf and \mathit preserve ligatures actually giving you a "text math alphabet" that is actually suitable for multi-letter identifiers, but \mathbfit is inconsistent with them, typesetting a multi-letter identifier as if it was a product between single letter identifiers.

Incidentally, what is the correct way to force a multi-letter identifier to be typeset in bold italics?

@wspr
Copy link
Collaborator Author

wspr commented Dec 17, 2018 via email

@joukewitteveen
Copy link

Is there a way to turn certain synonyms off? For instance, UM redefines mathbb (when amssymb is also in use), but I would like mathbb to refer to the AMSb font, while symbb does the UM thing. Similar considerations apply to mathcal and mathscr.

@eg9
Copy link
Contributor

eg9 commented Oct 19, 2019

@joukewitteveen

You can redeclare \mathbb yourself:

\documentclass{article}
\usepackage{amsmath,amssymb}
\usepackage{unicode-math}

\setmathfont{STIX Two Math} % has a very distinctive Blackboard Bold font

\AtBeginDocument{\DeclareMathAlphabet{\mathbb}{U}{msb}{m}{n}}

\begin{document}

$\mathbb{A}\ne\symbb{A}$

\end{document}

Screen Shot 2019-10-19 at 11 08 34

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants