I'm trying to use CMU Serif Upright Italic for some upright symbols in a document processed with XeLaTeX but am geting error "The font CMU Serif Upright Italic" can not be found."
Is this font not part of TeXLive? And if not, where does one get it?
\documentclass{article}
\usepackage{fontspec}
\usepackage{polyglossia}
\usepackage[math-style=ISO]{unicode-math}
\setdefaultlanguage[variant=american]{english}
\setotherlanguages{french,german,polish,russian}
%% Choose Latin Modern...
\defaultfontfeatures{Scale=MatchLowercase, Ligatures=TeX}
\setmainfont{Latin Modern Roman}[Scale=1.0]
\setmathfont{Latin Modern Math}
\setmathfont{CMU Serif Upright Italic}[range=up]
\newcommand\upi{\symup{i}}
\newcommand\upe{\symup{e}}
\newcommand{\uppi}{\symup{\pi}}
\begin{document}
$\upe^{\uppi \upi} = - 1$
\end{document}
usr/local/texlive/2021/texmf-dist/fontson Mac OS. Try to figure out from the filename the font you are willing to type set with. Maybe you have it may be not, so check for it there. – tush Nov 05 '21 at 20:32usr/local/texlive/2021/texmf-dist/fontsshould I look: type1, truetype, opentype, ... ?? And still the question remains as how to form the corect Name for the argument to\setmathfont. – murray Nov 05 '21 at 21:32fc-cache -finterfere with my local texmf tree, which is in/Users/me/Library/texmf, and normal updating of things when I run the gui TeXLive Utility app? – murray Nov 05 '21 at 21:35fc-cacheagain after installing TeX Live updates though to pick up new fonts. – Marcel Krüger Nov 05 '21 at 21:40unicode-mathalready defines\uppifor you, so I only needed to define it in legacy mode. If you want to redefineunic0de-mathsymbols, you have to do that inside\AtBeginDocument{\DeclareRobustCommand\uppi{...}}, since the package puts its own definitions last. This is so it doesn’t break if a document loads legacy 8-bit math packages too. – Davislor Nov 06 '21 at 04:53\uppi. Or not; it should still work as is. – Davislor Nov 06 '21 at 04:55\newcommand{\uppi}noted! – murray Nov 06 '21 at 15:17