On 11/19/2015 8:26 PM, josephcanedo@gmail.com wrote:
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.
the string is not interpreted why not put the content it in a box ? \setbox0\hbox{....} you can then use the list at he lua end with tex.box[0]
Thanks a lot again for your help,
Best regards,
Joseph
*From:* Hans Hagen mailto:pragma@wxs.nl *Sent:* Thursday, November 19, 2015 8:11 PM *To:* ntg-context@ntg.nl mailto:ntg-context@ntg.nl
On 11/19/2015 5:16 PM, josephcanedo@gmail.com wrote:
Attached simple MWE. The second line has no ligatures/ no glyph substitution/ kern
use this ...
\startluacode 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 end end
function userdata.typeset(text) node.write((nodes.typesetters.tohbox(text))) end
\stopluacode
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@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 ___________________________________________________________________________________
___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@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 ___________________________________________________________________________________
-- ----------------------------------------------------------------- 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 -----------------------------------------------------------------