[latex3-commits] [git/LaTeX3-latex3-mathtools] master: added a comment about issues with \xmapsto whenever unicode-math is used. See issue #45 (ae38a60)
daleif
daleif at math.au.dk
Thu Aug 11 10:44:14 CEST 2022
Repository : https://github.com/latex3/mathtools
On branch : master
Link : https://github.com/latex3/mathtools/commit/ae38a60535330fc9ac2d75245f7bfe76a93d0b53
>---------------------------------------------------------------
commit ae38a60535330fc9ac2d75245f7bfe76a93d0b53
Author: daleif <daleif at math.au.dk>
Date: Thu Aug 11 10:43:39 2022 +0200
added a comment about issues with \xmapsto whenever unicode-math is used. See issue #45
>---------------------------------------------------------------
ae38a60535330fc9ac2d75245f7bfe76a93d0b53
mathtools.dtx | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/mathtools.dtx b/mathtools.dtx
index 28526b0..8f2a448 100644
--- a/mathtools.dtx
+++ b/mathtools.dtx
@@ -1118,6 +1118,20 @@ colorlinks,
% \[
% A \xLeftarrow[under]{over} B
% \]
+% \textbf{Caveat for \cs{xmapsto}:} Whenever \textsf{lualatex} and
+% \pkg{unicode-math} is used, the macro \cs{xmapsto} will not work
+% correctly (a random 7 appears). This is due to how we define
+% \cs{xmapsto}: the symbol »\,$\mapstochar{}$\,« (via \cs{mapstochar}, setup in the \LaTeX{}
+% kernel) and and extensible \cs{rightarrow}. The symbol behind
+% \cs{mapstochar} is not defined in unicode, and thus is not available
+% in the unicode math fonts.\footnote{The symbol $\mapsto$
+% \emph{is} in unicode and \pkg{unicode-math} maps \cs{mapsto} onto
+% this symbol in the unicode math font. Whereas without
+% \pkg{unicode-math}, \cs{mapsto} is a symbol constructed by
+% combining \cs{mapstochar} and \cs{rightarrow}. On the other hand
+% \textsf{lualatex} \emph{does} have some special macros to create
+% extensible arrows, but \emph{none} of them can write above
+% \emph{and} below at the same time. So for now we leave this unresolved.}
% \begin{codesyntax}
% \SpecialUsageIndex{\xrightharpoondown}
% \cs{xrightharpoondown}\oarg{sub}\marg{sup}\texttt{~~~~}
More information about the latex3-commits
mailing list.