latex3 / unicode-math

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

Make `symcal` work with lowercase latin letters #589

Closed marcin-serwin closed 10 months ago

marcin-serwin commented 2 years ago

Status

READY

Description

The documentation describes mathcal and mathscr as synonyms, but the mathscr correctly maps the lowercase Latin letters, while mathcal only handles the uppercase letters. This PR changes the cal alphabet to be the same as scr.

Todo

Minimal example demonstrating the new/fixed functionality

\documentclass{article}
\usepackage{unicode-math}
\setmathfont{STIXTwoMath-Regular.otf}

\begin{document}
\[
    \symscr{ABCDabcd} \quad \symcal{ABCDabcd}
\]
\end{document}

Before image

After image

wspr commented 10 months ago

Sorry for the slow reply. I have no memory of why these were not defined identically to begin with! Many thanks for the initiative and the well organised pull request.