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

[Feature request] Option to choose if SCRIPT unicode input must be rendered with scr of cal #614

Open
pierrecagne opened this issue Jun 2, 2023 · 0 comments

Comments

@pierrecagne
Copy link

Description

When using unicode-math with unicode character in the .tex source, the inputs π’œ to 𝒡 (MATHEMATICAL SCRIPT CAPITAL letters, although some of them like β„’ and ℬ seem to be in the Letterlike Symbols block instead) in math mode are rendered with the src style of the main math font. I suggest there is an option to the unicode-math package so that one can choose that these unicode inputs are rendered by the scr or cal style of the rest of the document selected by range.

Add info or delete as appropriate:

Minimal example demonstrating the issue

The following source:

\documentclass{minimal}

\usepackage{fontspec}
\usepackage{unicode-math}

\setmathfont{Libertinus Math Regular}
\setmathfont{TeX Gyre Pagella Math}[range=cal]
\setmathfont{Latin Modern Math}[range=scr]

\begin{document}
Unicode input: $β„’$

Mathcal input: $\mathcal L$

Mathscr input: $\mathscr L$
\end{document}

renders 3 different Ls. The first of which is the src style of Libertinus Math Regular.

A script=... option of the package would allow the user to choose how to render this first L:

\documentclass{minimal}

\usepackage{fontspec}
\usepackage[script=cal]{unicode-math}

\setmathfont{Libertinus Math Regular}
\setmathfont{TeX Gyre Pagella Math}[range=cal]
\setmathfont{Latin Modern Math}[range=scr]

\begin{document}
Unicode input: $β„’$

Mathcal input: $\mathcal L$

Mathscr input: $\mathscr L$
\end{document}

In that case, the first L is rendered as the second one.

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

1 participant