I am trying to use the Kleene's O ($\mathcal{O}$) in some equations to represent a zero matrix.
However, I am using Times as my standard math font and do not like the look of the symbol and would like to set it back to the standard font.
How can I set the math font to standard for just a single symbol. I would like to create a command permitting me to do so as such:
\newcommand{\zeromatrix}{\mathcal{O}}
How can I however set the font for the single symbol inside back to standard?
Thanks in advance for your help!
Edit: Here's a minimal working example of my document with the math font set to Times:
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{mathptmx}
\begin{document}
$\mathcal{O}$
\end{document}

$inside that definition, it's being used in math more anyway so the$does more harm than good. – daleif May 03 '18 at 13:28unicode-mathlets you use\setmathfont]range={cal,bfcal}]option to change only\mathcaland\mathbfcal. You’ll also want to setscale=MatchUppercaseto make sure the letters are the right size. For example,\setmathfont[range={cal,bfcal}, scale=MatchUppercase]{Latin Modern Math}. Several fonts, incluing XITS Math, Stix Two Math, and Asana Math, have separate\mathcaland\mathscrthat you can access withStylisticSetorAlternate. – Davislor May 06 '18 at 21:47