<div dir="ltr"><div>I use babel and xelatex to typeset a document with several languages in it.<br><br></div><div>If I use the lmodern package, I can use --- for \textemdash{} but then the Greek does not show in my document.<br>
<br></div><div>If I disable lmodern I just get '---' but the Greek works OK.<br><br></div><div>This happens with both Linux Libertine O and Times New Roman.<br></div><div><br></div><div>I use this:<br><br><br>\usepackage{fontspec} % Gebruik met xelatex<br>
\usepackage{xltxtra,graphicx} % Gebruik met xelatex<br>\usepackage[hyperindex=true,colorlinks=true,bookmarks]{hyperref}<br>\usepackage{version}<br>\usepackage{amsmath}<br>\usepackage{paralist}<br>\setromanfont{TeX Gyre Pagella}<br>
\setmainfont{Linux Libertine O}<br> usepackage{lmodern}<br><br>\usepackage[afrikaans,polutonikogreek,german,dutch,english]{babel}<br><br clear="all"></div><div>So how do I get both emdash/endash to work with other languages like Greek and Hebrew?<br>
<br></div><div>Regards<br>Johann<br></div><div>-- <br>Because experiencing your loyal love is better than life itself, <br>my lips will praise you.  (Psalm 63:3)<br></div>
</div>