![Escribir griego en XeLaTeX con la fuente predeterminada](https://rvso.com/image/305777/Escribir%20griego%20en%20XeLaTeX%20con%20la%20fuente%20predeterminada.png)
quiero hacerestecon la fuente crm10. ¿Cómo puedo hacer eso? Probé algunas fuentes pero no me gustan.
\documentclass{scrreprt}
\usepackage{fontspec}
\setmainfont{Times New Roman}
\setsansfont{Arial}
\newfontfamily\greekfont[Script=Greek]{Linux Libertine O}
\newfontfamily\greekfontsf[Script=Greek]{Linux Libertine O}
\usepackage{polyglossia}
\setdefaultlanguage{greek}
\begin{document}
\tableofcontents{}
\section{Αυτό είναι ελληνικά.}
{\bfseries Welcome to Greek:} Αυτό είναι ελληνικά
Or Russian: Привет
Or Hebrew: מה הבעיה?
\end{document}
Respuesta1
Las fuentes CMU se basan en Computer Modern (y las fuentes CB para griego):
\documentclass{scrreprt}
\usepackage{fontspec}
\setmainfont{CMU Serif}
\setsansfont{CMU Sans Serif}
\newfontfamily{\greekfont}{CMU Serif}
\newfontfamily{\greekfontsf}{CMU Sans Serif}
\usepackage{polyglossia}
\setdefaultlanguage{greek}
\begin{document}
\tableofcontents{}
\section{Αυτό είναι ελληνικά.}
{\bfseries Welcome to Greek:} Αυτό είναι ελληνικά
Or Russian: Привет
%Or Hebrew: מה הבעיה?
\end{document}
Sin embargo, no hay soporte para hebreo.
Puedes admitir hebreo con una fuente diferente y usando ucharclasses
:
\documentclass{scrreprt}
\usepackage{fontspec}
\setmainfont{CMU Serif}
\setsansfont{CMU Sans Serif}
\newfontfamily{\greekfont}{CMU Serif}
\newfontfamily{\greekfontsf}{CMU Sans Serif}
\newfontfamily{\hebrewfont}{Linux Libertine O}[Scale=MatchUppercase]
\usepackage{polyglossia}
\setdefaultlanguage{greek}
\usepackage[Latin,Greek,Hebrew,Cyrillic]{ucharclasses}
\setTransitionsFor{Hebrew}{\begingroup\hebrewfont}{\endgroup}
\begin{document}
\tableofcontents{}
\section{Αυτό είναι ελληνικά.}
{\bfseries Welcome to Greek:} Αυτό είναι ελληνικά
Or Russian: Привет
Or Hebrew: מה הבעיה?
\end{document}