Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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}
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
3  
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
add comment

1 Answer

up vote 3 down vote accepted

You can use \textendash, such as

4\textendash 6
share|improve this answer
add comment

Your Answer

 
discard

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.