我目前正在尝试在 overleaf 中使用西里尔字体,但无论我如何尝试,overleaf 都会抛出错误,尽管 PDF 预览看起来很好。
我的序言代码如下:
\usepackage{fontspec}
\usepackage{polyglossia}
\setdefaultlanguage{ukrainian}
\setotherlanguages{english,russian}
\setmainfont{Times New Roman}
\newfontfamily{\cyrillicfonttt}{Liberation Mono}
尽管如此,overleaf 还是给我一个错误:
Package polyglossia Error: The current latin font LiberationMono(0) does not contain the "Cyrillic" script!
(polyglossia) Please define \cyrillicfont with \newfontfamily command.
See the polyglossia package documentation for explanation.
Type H <return> for immediate help.
...
l.24 \selectlanguage *{ukrainian}
This error message was generated by an \errmessage
command, so I can't give any explicit help.
Pretend that you're Hercule Poirot: Examine all clues,
and deduce the truth by order and method.
有没有办法解决 overleaf 中的这个问题?这是因为 overleaf 使用了旧版本的 polyglossia 还是软件包本身的问题?可以向人们报告以修复吗?