ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Max Chernoff via ntg-context <ntg-context@ntg.nl>
To: ntg-context@ntg.nl
Cc: Max Chernoff <mseven@telus.net>
Subject: Re: Can't manipulate glue added by tex.preparelinebreak
Date: Thu, 28 Jul 2022 01:03:09 -0600	[thread overview]
Message-ID: <681da02aeb69df87cc90b769e850006523c7e43d.camel@telus.net> (raw)
In-Reply-To: <7f0ae52b-a89b-4f6d-9357-8a59009237fa@freedom.nl>

> looks like i don't update something, i'll fix it (probably bin later
> today)

> new upload (see earlier mail for rest)

Works great! Thanks!

> btw, you can do this:
> 
>          local h, t, pil, pir, pfl, pfr = tex.preparelinebreak(new_head)
>          inspect(pfr)
>          pfr.stretchorder = 0
>          pfr.stretch = 0
> 

Ah, that's quite convenient. I'm still supporting LuaTeX, so
unfortunately I'm somewhat limited with which helpers I can take
advantage of.

> as well as use
> 
> 	tex.show(broken)
> 
> to see the result

That will be really nice for debugging. I've either been storing boxes
and typesetting them later (like shown earlier) or using node.traverse +
inspect. This will be much nicer to use.

Thanks,
-- Max
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : https://contextgarden.net
___________________________________________________________________________________

  reply	other threads:[~2022-07-28  7:03 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-07-26  6:18 Max Chernoff via ntg-context
2022-07-26  8:06 ` Hans Hagen via ntg-context
2022-07-28  7:03   ` Max Chernoff via ntg-context [this message]
2022-07-28  7:58     ` Hans Hagen via ntg-context
2022-07-27 16:02 ` Hans Hagen via ntg-context

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=681da02aeb69df87cc90b769e850006523c7e43d.camel@telus.net \
    --to=ntg-context@ntg.nl \
    --cc=mseven@telus.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).