latex3 / unicode-math

XeLaTeX/LuaLaTeX package for using unicode/OpenType maths fonts
http://ctan.org/pkg/unicode-math
LaTeX Project Public License v1.3c
241 stars 28 forks source link

Per mille symbol (‰) cannot be set using range (not in unicode-math-table.tex) #452

Open Socob opened 6 years ago

Socob commented 6 years ago

Description

The per mille symbol ‰ (U+2030 PER MILLE SIGN, known in LaTeX as \permil in the wasysym package) is not part of unicode-math-table.tex and thus, because of #381, it is not possible to take it from another font using the range option. As it can reasonably be expected to be used in math mode (just like the percent sign %), I think it should be added to unicode-math-table.tex.

(More generally, #381 should be fixed, though.)

Check/indicate

Minimal example demonstrating the issue

\documentclass{article}
\usepackage{unicode-math}
\setmainfont{texgyrepagella-math.otf}
\setmathfont{latinmodern-math.otf}
\setmathfont{texgyrepagella-math.otf}[
    range={
        "2030, % ‰
    }
]
\begin{document}
    ‰$‰$
\end{document}

Further details

The same applies to ‱ (U+2031 PER TEN THOUSAND SIGN), but since that one is so rarely used, I don’t think it’s nearly as important.

wspr commented 6 years ago

Thanks. I’d be happy adding \permil I’d say. (Maybe \mathpermil instead.)