[Tex/LaTex] To have script-like S for Schwartz space

amsmathunicode-math

I want this symbol

enter image description here

My tex

\documentclass{article}
\usepackage{mathrsfs} % for \mathscr{S} 
\usepackage{amsmath, amsfonts, amssymb, textcomp}
\usepackage[T4, OT1]{fontenc}
\usepackage{newunicodechar}
\usepackage{unicode-math}
\begin{document}
\mathscr{S}
\end{document}

I get

enter image description here

My underlying typesetting engine is XeLaTeX.

How can you have the script-like symbol for Schwartz space?

Best Answer

You can load another font for \mathscr, for instance Asana Math.

\documentclass{article}
\usepackage{amsmath}
\usepackage{unicode-math}

\setmathfont{Latin Modern Math} % you need to reload the default
\setmathfont[range=\mathscr,Scale=MatchUppercase]{Asana Math}

\begin{document}
$\mathcal{S}\ne\mathscr{S}$
\end{document}

enter image description here