[XeTeX] emdash and endash

Johann Spies johann.spies at alterit.co.za
Sat Feb 18 09:53:29 CET 2017


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
-- 
J.H. Spies - Tel. 021-982 2694 / 082 782 0336 / 021-808 4699(w)  
             Posbus 4668, Tygervallei 7536

     "Surely he hath borne our griefs, and carried our sorrows:
      yet we did esteem him stricken, smitten of God, and
      afflicted. But he was wounded for our transgressions,
      he was bruised for our iniquities: the chastisement of
      our peace was upon him; and with his stripes we are
      healed."        Isaiah 53:4,5 


More information about the XeTeX mailing list