TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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}


share|improve this question
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
up vote 3 down vote accepted

You can use \textendash, such as

4\textendash 6
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.