[XeTeX] emdash and endash

Herbert Schulz herbs at wideopenwest.com
Sat Feb 18 13:51:02 CET 2017


> On Feb 18, 2017, at 2:53 AM, Johann Spies <johann.spies at alterit.co.za> wrote:
> 
> On Fri, Feb 17, 2017 at 09:41:10PM +0000, David Carlisle wrote:
>> It should work
>> 
>> \documentclass{article}
>> \listfiles
>> \usepackage{fontspec}
>> \begin{document}
>> 
>> 
>> a---b
>> 
>> \end{document}
>> 
>> 
>> makes an emdash for me with current texlive.
>> 
>> If you have an example that fails can you show log from such a test
>> (\listfiles makes a list of package versions at the end of the log)
> 
> Thanks David.
> 
> This shows the problem.  It does not compile correctly and this is the
> list of packages:
> 
> *File List*
> article.cls    2014/09/29 v1.4h Standard LaTeX document class
>  size10.clo    2014/09/29 v1.4h Standard LaTeX file (size option)
> fontspec.sty    2017/01/02 v2.5c Font selection for XeLaTeX and LuaLaTeX
>   expl3.sty    2016/11/21 v6760 L3 programming layer (loader) 
> expl3-code.tex    2016/11/21 v6760 L3 programming layer 
> l3xdvipdfmx.def    
>  xparse.sty    2016/11/21 v6760 L3 Experimental document command parser
> fontspec-xetex.sty    2017/01/02 v2.5c Font selection for XeLaTeX and LuaLaTeX
> fontenc.sty
>   tuenc.def    2016/12/11 v2.0a Standard LaTeX file
> fontspec.cfg
> ***********
> 
> 
> However when I add
> 
> \setmainfont[Ligatures=TeX,Mapping=tex-text]{Linux Libertine O}
> 
> it compiles correctly.
> 
> My first problem was after Beamer gave me a problem.  In Beamer I cannot
> add this - or can I do something similarly?
> 
> Regards
> Johann

Howdy,

Compiles correctly here with a fully updated TeX Live 2016:

 article.cls    2014/09/29 v1.4h Standard LaTeX document class
  size10.clo    2014/09/29 v1.4h Standard LaTeX file (size option)
fontspec.sty    2017/02/12 v2.6 Font selection for XeLaTeX and LuaLaTeX
   expl3.sty    2017/02/10 v6878 L3 programming layer (loader) 
expl3-code.tex    2017/02/10 v6878 L3 programming layer 
l3xdvipdfmx.def    
  xparse.sty    2017/02/10 v6878 L3 Experimental document command parser
fontspec-xetex.sty    2017/02/12 v2.6 Font selection for XeLaTeX and LuaLaTeX
 fontenc.sty
   tuenc.def    2017/01/24 v2.0c Standard LaTeX file
fontspec.cfg

so I've got updated file versions. there were a few problems that cropped up with the 2.5x versions.

Good Luck,

Herb Schulz
(herbs at wideopenwest dot com)




More information about the XeTeX mailing list