我正在尝试以文档方式使用 roboto 字体。罗马字体运行良好,但希腊字体却出现问题。
\documentclass[12pt]{beamer}
\usepackage[sfdefault]{roboto}
\usepackage{amsmath}
%\usepackage{mathspec}
%\setmathsfont(Greek)[Lowercase=Regular,Scale=0.76]{roboto}
\begin{document}
$\gamma = G$
\end{document}
**更新 1 ** Henri 的解决方案给了我错误(使用 xelatex):
kpathsea: Running mktexmf Roboto
! I can't find file `Roboto'.
<*> ...:=ljfour; mag:=1; nonstopmode; input Roboto
Please type another input file name
! Emergency stop.
<*> ...:=ljfour; mag:=1; nonstopmode; input Roboto
Transcript written on mfput.log.
grep: Roboto.log: No such file or directory
mktextfm: `mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input Roboto' failed to make Roboto.tfm.
kpathsea: Appending font creation commands to missfont.log.
在使用时fontspec
,我遇到了包裹冲突