[dev-context] Stretch charatcers

Wolfgang Schuster wolfgang.schuster at gmail.com
Sun Dec 2 16:31:19 CET 2012


Hi,

how can I write the following two lines with Lua, I saw in supp-box.lua a few example how to loop through the characters but I don’t know how I can add glue between them. 

\starttext

\ruledhbox to 6cm{\processtokens{\hfil }{\hfil\hfil}{\hfil }{}{WORD}}

\ruledhbox to 6cm{\processtokens{\relax}{\hfil\hfil}{\relax}{}{WORD}}

\def\HFILLED#1{\hfil#1\hfil}

\ruledhbox to 6cm{\applytocharacters\HFILLED{WORD}}
\ruledhbox to 6cm{\hfilneg\applytocharacters\HFILLED{WORD}\hfilneg}

\stoptext

Wolfgang


More information about the dev-context mailing list