I noticed that libertine, at least as I load it, does not convert --- to –

Consider this MWE

\definefontfamily[libertine][rm][Linux Libertine O]
\input ward
\input ward

mwe after compilation What should I do to have --- typeset as — ?

PS: this MWE loads libertine as I expect it to do in my system, but doesn't with conTeXt live.

  • Cannot reproduce (screenshot). Are you using the latest beta? – Henri Menke Feb 28 '19 at 20:33
  • Try maybe \definefontfamily[libertine][rm][Linux Libertine O][features=default] – Henri Menke Feb 28 '19 at 20:33
  • BTW, there is already a libertine typescript bundled with ConTeXt, so this code just works. – Henri Menke Feb 28 '19 at 20:36
  • @Henri Menke. Your code solves the problem. Can you turn it into an answer? Could you btw point me where I can find bundled typescripts name? Some are listed here, wiki.contextgarden.net/Fonts_in_LuaTeX but libertine isn't. – sztruks Feb 28 '19 at 21:43
  • 1
    You can find all typescript definitions in the type-imp- files in $TEXMFCONTEXT/tex/context/fonts/mkiv – Henri Menke Feb 28 '19 at 21:50

For some reason in your installation the default font features don't seem to be passed. This can be easily solved by passing it explicitly in the fourth argument:

\definefontfamily[libertine][rm][Linux Libertine O][features=default]

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.