[NTG-context] Temporary spacing between letters

Procházka Lukáš Ing. - Pontex s. r. o. LPr at pontex.cz
Sat Jul 18 09:45:53 CEST 2015


Hello,

is it possible to affect the space between letters temporarily?

The following code provides it, but I guess there is a better ConTeX way:

----
\starttext
   \startluacode
     t = function(str, filler)
       return str:gsub("(.)", "%1" .. (filler or "~"), #str - 1)
     end
   \stopluacode

   Doslov\par
   \cldcontext{t("Doslov", "\\,")}\par
   \cldcontext{t("Doslov", "\\;")}\par
   \cldcontext{t("Doslov")}\par
   \cldcontext{t("Doslov", "~~")}\par
   \cldcontext{t("Doslov", "\\quad ")}\par
   \cldcontext{t("Doslov", "\\qquad ")}\par
\stoptext
----

Best regards,

Lukas


-- 
Ing. Lukáš Procházka | mailto:LPr at pontex.cz
Pontex s. r. o.      | mailto:pontex at pontex.cz | http://www.pontex.cz
Bezová 1658
147 14 Praha 4

Tel: +420 241 096 751
Fax: +420 244 461 038
-------------- next part --------------
A non-text attachment was scrubbed...
Name: LetSpac.mkiv
Type: application/octet-stream
Size: 412 bytes
Desc: not available
URL: <http://www.ntg.nl/pipermail/ntg-context/attachments/20150718/fb020db2/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: LetSpac.pdf
Type: application/pdf
Size: 5104 bytes
Desc: not available
URL: <http://www.ntg.nl/pipermail/ntg-context/attachments/20150718/fb020db2/attachment.pdf>


More information about the ntg-context mailing list