TransWikia.com

ConTeXt: Increase word spacing in titles

TeX - LaTeX Asked by Juraj Fiala on June 7, 2021

How can I increase word spacing? Preferably, I’d like them to be of a constant size, as I need it to improve legibility in uppercase titles (when increasing the kerning, the words are too close together).

The only way I managed to do it [2] [3] was with spaceskip, but that doesn’t work with nonbreaking spaces.

setuppapersize [S6]

starttext

  setupalign[flushleft, nothyphenated, verytolerant]  
  tfdsetupinterlinespace

  setcharactercasing[WORD]
  setcharacterkerning[extrakerning]
  spaceskip .5em

  This is an~example.

stoptext

rendered output

One Answer

ConTeXt, unlike LaTeX and plain TeX, defines ~ as a Unicode non-breaking space (U+00A0) with catcode 12 ("other"), so you shouldn't be surprised it's not being treated as a space in the TeX sense. Instead you need nonbreakablespace and, if this last command is to uncomfortable to write you may even do the following (better with grouping not to mess up things elsewhere):

%begingroup
%...
let~nonbreakablespace
%...
%endgroup

Correct answer by Jairo A. del Rio on June 7, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP