3

The following document works fine when using document class article:

\documentclass{article}
\usepackage{polyglossia}
\setmainlanguage[variant=british]{english}
\setotherlanguage{hebrew}
\setotherlanguage{greek}
\newfontfamily\hebrewfont{SBL Hebrew}
\newfontfamily\greekfont{SBL Greek}
\begin{document}

\section{First}
A greek word \textgreek{αταραξία} and a hebrew word \texthebrew{קֹהֶלֶת}

\end{document}

But then when I switch over to Beamer. It seems to begin to ignore the fonts (and we end up with blank characters instead of the greek or hebrew:

\documentclass{beamer}
\usepackage{polyglossia}
\setmainlanguage[variant=british]{english}
\setotherlanguage{hebrew}
\setotherlanguage{greek}
\newfontfamily\hebrewfont{SBL Hebrew}
\newfontfamily\greekfont{SBL Greek}
\begin{document}

\begin{frame}{First}
A greek word \textgreek{αταραξία} and a hebrew word \texthebrew{קֹהֶלֶת}
\end{frame}

\end{document}

Output: enter image description here

Note that we can add \setsansfont{Arial} to the beamer sample, and it seems to globally tell beamer to use the Arial font, instead of the Hebrew/Greek fonts that have been specified:

enter image description here

  • 2
    Your MWE has no \textgreek around the greek text. Your screenshot has. Which version do you use? – TeXnician Apr 17 '17 at 11:01
  • 1
    I was trying several different things. Whatever makes it work. I have amended the MWE to be consistent. – Jacob Apr 17 '17 at 11:03
  • 1
    I cannot test as I don't have the fonts you use, but can you try \usefonttheme{professionalfonts? – user36296 Apr 17 '17 at 12:03
  • 1
    Using \usefonttheme{professionalfonts} with \setsansfont{Arial} does nothing. Using \usefonttheme{professionalfonts} without \setsansfont{Arial}, gets us back to \texthebrew{} and \textgreek{} showing blank text (It seems the default fonts for beamer don't contain characters for other languages) – Jacob Apr 17 '17 at 12:29
3
\documentclass{beamer}
\usepackage{polyglossia}

\setmainlanguage[variant=british]{english}
\setotherlanguage{hebrew}
\setotherlanguage{greek}

\newfontfamily{\hebrewfontsf}{SBL Hebrew}
\newfontfamily{\greekfontsf}{SBL Greek}
\begin{document}

\begin{frame}{First}

A greek word \textgreek{αταραξία} and a hebrew word \texthebrew{קֹהֶלֶת}

\end{frame}

\end{document}

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.