我正在使用 texlive2018 并尝试制作一个可以xeCJK
在 Mac OS 上运行的简单 tex 文件,但fontspec
即使我使用西方字符集字体文件也找不到字体文件。
test.tex文件如下:
\documentclass[12pt,a4paper]{article}
\usepackage{xltxtra,fontspec,xunicode}
\usepackage[slantfont,boldfont]{xeCJK} % xeCJK
\setmonofont{Monaco} % set font
\begin{document}
\begin{verse}
Stray birds of summer come to my window to sing and fly away. \\
And yellow leaves of autumn, which have no songs, \\
flutter and fall there with a sign.\\
\hfill \emph{Rabindranath Tagore}
\end{verse}
\end{document}
$ xelatex 测试.tex
错误信息的结尾是这样的:
kpathsea: Running mktexmf Monaco
! I can't find file `Monaco'.
<*> ...:=ljfour; mag:=1; nonstopmode; input Monaco
Please type another input file name
! Emergency stop.
<*> ...:=ljfour; mag:=1; nonstopmode; input Monaco
Transcript written on mfput.log.
grep: Monaco.log: No such file or directory
mktextfm: `mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input Monaco' failed to make Monaco.tfm.
kpathsea: Appending font creation commands to missfont.log.
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!
! fontspec error: "font-not-found"
!
! The font "Monaco" cannot be found.
!
! See the fontspec documentation for further information.
!
! For immediate help type H <return>.
!...............................................
l.10
?