ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Getting width of text to be typeset
@ 2020-05-22  9:22 context
  2020-05-22 22:03 ` Hans Hagen
  0 siblings, 1 reply; 6+ messages in thread
From: context @ 2020-05-22  9:22 UTC (permalink / raw)
  To: ConTeXt

Hello,

is it possible to get somehow the width of the "material" (box?) of the 
current line which is "ready" to be typeset?

See the case:

----
\starttext

   some text

   pqrs % Here I need to get width (or content) of the text from the 
begin of the current line,
        % i.e. width of the text "pqrs".
        % (Depending of the width I will decide what to do later.)

\stoptext
----

I am too laical to know how to "inject" TeX workflow or whether to 
access LuaTeX internals (nodes?) to get the desired information.

- Is it possible somehow?

Best regards,

Lukas
___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2020-05-23 13:52 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-22  9:22 Getting width of text to be typeset context
2020-05-22 22:03 ` Hans Hagen
2020-05-22 22:18   ` Hans Hagen
2020-05-22 23:49     ` Rik Kabel
2020-05-23 11:04       ` Gerben Wierda
2020-05-23 13:52       ` Rik Kabel

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).