I would like to use e.g. the calligraphic font from two different fonts conveniently in the same document.
For example in the snippet below, how can I load in parallel e.g. the calligraphic fonts from LatinModern and use it via a command like \symcallatin{ABC}
?
I have already found some solutions that rely on switching the whole font e.g. using mathversion
. But I would like to avoid this and instead have a dedicated command that allows to write certain symbols in a predefined font.
How can this be achieved?
% !TeX TS-program = lualatex
\documentclass{standalone}
\usepackage{fontspec,unicode-math}
\setmathfont{TeX Gyre Pagella Math}
\setmathfont[range={cal,bfcal},StylisticSet=1]{XITS Math}
\begin{document}
$\symcal{ABC}$
\end{document}
\symscr
you get the glyphs from Pagella Math.