\documentclass[10pt]{beamer}
\usepackage{polyglossia}
\setmainlanguage[numerals=Devanagari]{bengali}
\setotherlanguage{english}
\newfontfamily\englishfont[Scale=MatchLowercase]{Times New Roman}
\newfontfamily\bengalifont[Script=Bengali]{Bangla MN}
\title{\LARGE \textbf বong একাডেমী }
\author{Amit Majumder}
\begin{document}
\begin{frame}
\maketitle
\tableofcontents
\end{frame}
\end{document}
但它给出了错误信息:
Package polyglossia Error: The current roman font does not contain the Bengal(polyglossia) Please define \bengalifont with \newfontfamily. \select@language {bengali}
该怎么办?
答案1
它与 serif 选项一起使用,因为这样会使用罗马字体而不是无衬线字体:
\documentclass[10pt,serif]{beamer}
\usepackage{polyglossia}
\setmainlanguage[numerals=Devanagari]{bengali}
\setotherlanguage{english}
\newfontfamily\englishfont[Scale=MatchLowercase]{Times New Roman}
\newfontfamily\bengalifont[Script=Bengali]{Bangla MN}
\title{\LARGE \textbf বong একাডেমী }
\author{Amit Majumder}
\begin{document}
\begin{frame}
\maketitle
\tableofcontents
\end{frame}
\end{document}