[NTG-context] "Trial typesetting" in ConTeXt / lua ?

josephcanedo at gmail.com josephcanedo at gmail.com
Thu Nov 19 20:26:23 CET 2015

I’ll try this in a minute. Thanks a million. 

Another bit of complexity, if I have some words in different font (only a few of them), should I call tohbox for these separately and “chain” the different hboxes together ? For example the idea is to “emulate” for instance: 

The second line has a word typeset in {\tfx smaller } size.

Thanks a lot again for your help,

Best regards,


From: Hans Hagen
Sent: ‎Thursday‎, ‎November‎ ‎19‎, ‎2015 ‎8‎:‎11‎ ‎PM
To: ntg-context at ntg.nl

On 11/19/2015 5:16 PM, josephcanedo at gmail.com wrote:
> Attached simple MWE. The second line has no ligatures/ no glyph
> substitution/ kern

use this ...

     userdata = userdata or { }

     if not nodes.typesetters.tohbox then
         function nodes.typesetters.tohbox(...)
             local list = nodes.typesetters.tonodes(...)
             local head = nodes.processors.hpack_filter(list)
             local hbox = node.hpack(head)
             return hbox

     function userdata.typeset(text)


i'll add tohbox to the core

                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context at ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.ntg.nl/pipermail/ntg-context/attachments/20151119/d207ad16/attachment.html>

More information about the ntg-context mailing list