In my template compiled by XeLaTeX, \mathcal and \mathscr output the same thing.
\documentclass{article}
\usepackage{latexsym}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{arydshln}
\usepackage{pmat}
\setmathfont{xits-math.otf}
\begin{document}
$ \mathcal{ABCD}, \mathscr{ABCD} $
\end{document}
What should I do to get a normal output from \mathcal{ABCD} like


! LaTeX Error: Filepmat.sty' not found.` – David Carlisle Mar 19 '21 at 16:31