10

I've spent most of my day trying to migrate a project from pdftex tolualatex. The experience has been mostly positive but there are a few gotchas I can't make heads or tails of.

Most recently I've just noticed that the standard texish ligatures for endash and emdash (i.e -- is typeset as – and --- becomes —) have gone A.W.O.L on me when located in small caps formatted references. This is unfortunate as I use endash in Bible verse references that are typeset in the margins using small-caps.

I have reviewed the info in How to enable ligatures for emdash/endash in LuaTeX ? but this seems to be a different issue.

Here is a MWE showing the issue (compile with lualatex):

\documentclass{scrartcl}
\usepackage{luatextra}
\defaultfontfeatures{Ligatures=TeX}
\setmainfont{Linux Libertine}

\begin{document}
Test -- endash and --- emdash

{\scshape Test -- endash and --- emdash}
\end{document}

Which for me produces:

small cap dash ligatures missing

What is the culprit here and how do I fix it?

  • 1
    I can confirm it; and it doesn't happen with TeX Live 2012, so I think it's a bug in luaotfload – egreg May 10 '14 at 23:08
  • 1
    I do not have Linux Libertine installed. However I tested with Latin Modern and Minion Pro; it compiles and shows no problem. I suppose it's specifically a problem with Linux Libertine. – Bernard May 10 '14 at 23:13
  • 2
    using TL2014 it doesn't find the font under that name ` \setmainfont{LinLibertine_R} works but shows -- as you report. However if you use {\scshape Test – endash and — emdash} with the characters directly then it works. – David Carlisle May 11 '14 at 0:34
  • 1
    Reported. – Philipp Gesang May 11 '14 at 10:24
  • 2
    Hans fixed it. The new code will be part of the next version of Luaotfload. – Philipp Gesang May 12 '14 at 17:28
5

The bug fix has been released to CTAN as of the v2.5-1 release.

\documentclass{scrartcl}
\usepackage{luatextra}
\defaultfontfeatures{Ligatures=TeX}
\setmainfont{Linux Libertine}

\begin{document}
Test -- endash and --- emdash

{\scshape Test -- endash and --- emdash}
\end{document}

with

luaotfload.sty 2014/07/16 v2.5-1 OpenType layout system

gives

enter image description here

  • Any suggestion for a hack to get it done with luatex 0.95.0 (which is currently in debian)? – user855443 Aug 16 '18 at 13:02
  • Sorry, I have no idea, and no way to test anything out on debian right now. :( If you ask about this in chat, someone may have helpful ideas. – Paul Gessler Aug 17 '18 at 13:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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