I'm just a poor latex user who wants customized font style. Here is my basic setting.
\documentclass[11pt]{article}
\usepackage{amsthm,amssymb,amsmath,amsbsy}
\usepackage[T1]{fontenc}
\usepackage[lf]{Baskervaldx} % lining figures
\usepackage[bigdelims]{newtxmath} % math italic letters from Nimbus Roman (vvarbb for mathbb font)
\usepackage[bb=px, cal=cm, scr=boondoxo]{mathalfa}
\DeclareMathAlphabet{\mathup}{OT1}{\familydefault}{m}{n}
\begin{document}
$\mathup{Category}$ $\text{Category}$
\end{document}
My problem is when I use \mathup in my setting, it uses Computer Modern instead of the Baskervaldx that I'm using as the text font. (Obviously using \text is bad decision because it is not a math mode...) Is there a way to fix this? Is the unicode-math package work for this? (I tried but somehow my overleaf has some problem with loading this package. Maybe conflict with some other parts of my code.)
\begin{document}
and\end{document}
. Thank you.baskervillef
instead; add also thebaskerville
option tonewtxmath
.\mathup
was producing sans-serif output; I think you meant to write that LaTeX was using Computer Modern.) Feel free to revert.