Open DamienRobert opened 4 years ago
Thanks! You are brave to look through the source code here… would you mind also adding an example of the currently-inconsistent behaviour? That would help me a lot to add a test file when the behaviour is fixed.
Sorry for the delay... Here is a minimal sample, where the first two $a$
are mapped to the sf version, but the last a
is still in the rm version.
\documentclass{article}
\usepackage[normal-style=literal]{unicode-math}
\setmathfont{latinmodern-math.otf}
\setmathfont[range=up->sfup]{latinmodern-math.otf}
\begin{document}
$a$
$\symup{a}$
$\symliteral{a}$
\end{document}
By the way compiling this gives me a
Missing number, treated as zero.
<to be read again>
\c__um_sfup_greek_usv
but I did not investigate further why.
Oh, that error is a known issue that I’ve been hoping to get fixed at the Unicode end. There are no sans serif regular weight greek symbols in Unicode — IMO an oversight. But to get it fixed they have asked me to find examples of sans serif greek in published mathematics (differentiated from serif greek).
Unfortunately even though \mathsf{} does work in LaTeX I’ve found next to nothing in actual use. Any leads?
In the current version:
We see that if we remap
up/latin
to egsf
then if the literal feature is active$a$
will give ansf
a
(I think the reasoning is that in literal mode an uprighta
is mapped to an uprighta
which is remapped to an sfa
).But a
$\symliteral{a}$
is still an uprighta
. For consistency, I think the code should instead beBy the way, shouldn't the line
be in
\__um_new_alphabet_config:nnn {it} {Latin}
? And then we can also use