
Estoy buscando una manera de redefinir la fuente que \mathcal
se usa en modo matemático. Me gustaría que todos los caracteres que utilicen la \mathcal{}
función se escriban, por ejemplo, en la fuente Asana Math, y que el resto del texto matemático se escriba en el texto predeterminado. Hasta ahora tengo:
\documentclass[11pt]{report}
%%%Packages%%%
\usepackage{amssymb}
\usepackage{amsmath}
\usepackage{amsthm}
\usepackage{amsfonts}
\usepackage{amsmath}
\usepackage{fontspec}
\usepackage{unicode-math}
%\DeclareMathAlphabet{\mathcal}{OMS}{cmsy}{m}{n}
%\setmathfont{Asana Math}
\let\mathcal=\mathscr
\begin{document}
\begin{equation}
\mathcal{p} = U(x,t)
\end{equation}
\end{document}
como mi MWE.
Respuesta1
Al configurar una fuente matemática con \setmathfont
, puede usar la range
opción para especificar qué alfabeto matemático desea cambiar, siempre que haya definido una fuente matemática principal. Esto funciona bien con unicode-math
fuentes, pero como dijeron otros en los comentarios, en la mayoría de los casos el paquete es mathalpha
realmente bueno para cambiar mathcal
, mathscr
y fuentes.mathbb
mathfrak
El siguiente ejemplo utiliza el alfabeto predeterminado utilizado por unicode-math
(Latin Modern Math) y luego establece la \mathscr
fuente en Asana Math.
\documentclass[11pt]{report}
\usepackage{amssymb, amsmath, amsthm}
\usepackage{unicode-math}
\setmathfont{LatinModern-Math.otf}
\setmathfont{Asana-Math.otf}[range=scr]
\begin{document}
\begin{gather*}
ABCDEFGHIJKLMNOPQRSTUVWXYZ \\
abcdefghijklmnopqrstuvwxyz \\
\mathcal{ABCDEFGHIJKLMNOPQRSTUVWXYZ} \\
\mathcal{abcdefghijklmnopqrstuvwxyz} \\
\mathscr{ABCDEFGHIJKLMNOPQRSTUVWXYZ} \\
\mathscr{abcdefghijklmnopqrstuvwxyz} \\
\mathfrak{ABCDEFGHIJKLMNOPQRSTUVWXYZ} \\
\mathfrak{abcdefghijklmnopqrstuvwxyz}
\end{gather*}
\end{document}
Respuesta2
Pruebe con \usepackage{eucal}
, esto hace que los \mathcal
caracteres tengan una fuente diferente...