XeTeX ⇒ Long dash with other fonts in XeLatex
-
- Posts: 105
- Joined: Fri Nov 30, 2007 11:32 pm
Long dash with other fonts in XeLatex
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.
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
Long dash with other fonts in XeLatex
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