Hello,
I am using Garamond font through XeLatex. How can one get em-dash or en-dash in this case. The usual technique of typing "--" for en-dash and "---" for em-dash does not work. I read on the Xetex page that this is because some fonts other than Computer Modern do not have the ligatures to make this conversion. What is the solution?
Thanks.
XeTeX ⇒ Long dash with other fonts in XeLatex
Long dash with other fonts in XeLatex
Did you try with Mapping option:
Mapping=tex-text should make all tex commands regarding double quotes, dashes etc. available. You can declare it the way I mentioned for applicability through whole document (recommended) or use it as an option of a particular font (e.g. \setmainfont[Mapping=tex-text]{Adobe Garamond Pro})
Code: Select all
\usepackage{fontspec}
\usepackage{xltxtra}
\usepackage{xunicode}
\defaultfontfeatures{Scale=MatchLowercase,Mapping=tex-text}
-
- Posts: 105
- Joined: Fri Nov 30, 2007 11:32 pm
Re: Long dash with other fonts in XeLatex
Thanks meho_r. I have not tried that. I will try that.