# 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...)

\documentclass{beamer}

\usepackage{fontspec}
\usepackage{polyglossia}
\setdefaultlanguage[spelling=new,latesthyphen=true,babelshorthands=true]{german}
\setmainfont[Mapping=tex-text,Numbers=OldStyle]{Linux Libertine O}
\setsansfont{Linux Biolinum O}

\usepackage{csquotes}

\begin{document}
\begin{frame}--\end{frame}
\end{document}

-
I think it would help if you provide a working minimal example (MWE) that demonstrates the problem. I’ve tested it with my own MWE an can’t see any problem. Maybe your font doesn't work or you have to use something like \usepackage[T1]{fontenc} –  Tobi May 23 '11 at 13:27
With a simple test document I couldn't reproduce your problem. Please add a minimal working example illustrating this odd behaviour. –  Gonzalo Medina May 23 '11 at 13:27
If you are using xelatex or lualatex: Read the documentation of fontspec (Ligatures=TeX). If not: make a small, complete example. –  Ulrike Fischer May 23 '11 at 13:30
@Ulrike Fischer Thanks! For some reason I forgot to set my mapping in my sansfont ... I'm still only getting used to xelatex.... –  Jonathan May 23 '11 at 13:39

You can use \textendash, such as
4\textendash 6