Is it possible to change the default font in the equation environment and also in math mode globally to mathcal or mathscr?
By this I mean that if I typeset $...$, or $$...$$ or
\begin{equation}
...
\end{equation}
or
\begin{theorem}
my description here
\begin{equation}
...
\end{equation}
\end{theorem}
The default font used in the equations will be either mathcal or mathscr?
I am compiling using pdflatex.
I read the following post
How to change default font style in math mode?
however I wansn't able to use it to solve this issue (possibly due to conflicts with the existing packages in the custom template I have to use).
Here is an example:
If I type
\begin{equation}
p(x) = (2\pi \sigma^2)^{-1/2} \exp \bigg\{ \frac{-1\frac{1}{2} \frac{(x - \mu)^2}{\sigma^2} \bigg\}
\begin{equation}
I would like the result to appear like this:
(Image taken from a pdf document I have. I don't know the original author of it so I can not contact them).


\mathcaland\mathscronly work for capital letters, so this would give bad results if you have any lower case letters in your math expressions. To solve this you would need to check automatically which parts of your math are upper case and which are not, that would be very complicated. So it's probably easier to just type the calligraphic or script letters manually. You could consider defining some macro's to save on typing, for example\def\clA{\mathcal{A}}so you can type\clAevery time you need a calligraphic A. – Marijn Jun 03 '20 at 18:31\usepackage{mathpazo}. – Marijn Jun 03 '20 at 19:44\mathcalor\mathscr, but therange=option of\setmathfontfromunicode-mathdoes have a syntax to remap math alphabets such as\mathitand\mathcal. Furthermore, it has lowercase\mathcalLatin letters. There is no Greek\mathcalalphabet, however. – Davislor Jun 04 '20 at 02:30