
A mudança de babel para plyglossia em meu texto parece estar associada ao fato de os travessões (digitados como três travessões seguidos) agora serem impressos como três travessões.
Presumo que a mudança para poliglossia seja acidental --- o que poderia estar causando isso?
\documentclass[12pt]{article}
\usepackage{polyglossia}
\setmainlanguage{english}
\setotherlanguage{hebrew}
\newfontfamily{\englishfont}{EB Garamond}
\newfontfamily{\hebrewfont}[Script=Hebrew]{Hadasim CLM}
\newfontfamily{\hebrewfontsf}[Script=Hebrew]{Miriam CLM}
\newfontfamily{\hebrewfonttt}[Script=Hebrew]{Miriam Mono CLM}
\title{Using Hebrew Fonts on Overleaf with polyglossia \\\texthebrew{דוגמא לגופני ברירת מחדל}}
\author{Foo}
\begin{document}
\maketitle
I don't know why it is doing this --- but I don't like it.
\end{document}
Responder1
\newfontfamily
não carrega o \defaultfontfeatures
.
Nota: mudei a fonte hebraica para uma que tenho.
\documentclass[12pt]{article}
\usepackage{polyglossia}
\setmainlanguage{english}
\setotherlanguage{hebrew}
\newfontfamily{\englishfont}{EB Garamond}[Ligatures=TeX]
\newfontfamily{\hebrewfont}{Raanana}[Script=Hebrew]
\newfontfamily{\hebrewfontsf}{Raanana}[Script=Hebrew]
\newfontfamily{\hebrewfonttt}{Raanana}[Script=Hebrew]
\title{Using Hebrew Fonts on Overleaf with polyglossia \\\texthebrew{דוגמא לגופני ברירת מחדל}}
\author{Foo}
\begin{document}
\maketitle
I don't know why it is doing this --- but I don't like it.
\end{document}
Mas é muito melhor usar \setmainfont
.
\documentclass[12pt]{article}
\usepackage{polyglossia}
\setmainlanguage{english}
\setotherlanguage{hebrew}
\setmainfont{EB Garamond}
\newfontfamily{\hebrewfont}{Raanana}[Script=Hebrew]
\newfontfamily{\hebrewfontsf}{Raanana}[Script=Hebrew]
\newfontfamily{\hebrewfonttt}{Raanana}[Script=Hebrew]
\title{Using Hebrew Fonts on Overleaf with polyglossia \\\texthebrew{דוגמא לגופני ברירת מחדל}}
\author{Foo}
\begin{document}
\maketitle
I don't know why it is doing this --- but I don't like it.
\end{document}
Responder2
Já que você mencionou babel
, caso decida mantê-lo, veja como fazê-lo:
\documentclass[12pt]{article}
\usepackage[english, bidi=default]{babel}
\babelfont{rm}{EB Garamond}
\babelfont[hebrew]{rm}{Hadasim CLM}
\babelfont[hebrew]{sf}{Miriam CLM}
\babelfont[hebrew]{tt}{Miriam Mono CLM}
\title{Using Hebrew Fonts on Overleaf with Babel\\%
\foreignlanguage{hebrew}{דוגמא לגופני ברירת מחדל}}
\author{Foo}
\begin{document}
\maketitle
I don't know why it is doing this --- but I don't like it.
\end{document}