[Tex/LaTex] Using a dash (–) in LaTeX Beamer class


I want to use a dash in my beamer presentation, however 4--6 looks just like that in the output (i.e. the -- is not converted to a dash as it usually is).

Does anyone know a way around that?

Here's the requested example (could be it's xelatex…)


\setmainfont[Mapping=tex-text,Numbers=OldStyle]{Linux Libertine O}
\setsansfont{Linux Biolinum O}



Best Answer

You can use \textendash, such as

4\textendash 6