Re: [NTG-context] Getting width of text to be typeset

2020-05-23 Thread Rik Kabel
On 5/22/2020 19:49, Rik Kabel wrote: If the OP simply wants the width of a string, one can use \setwidthof#1\to#2. \define\String{pqrs} \setwidthof{\String}\to\Wdth \String\ is \Wdth\ wide. \setwidthof{{\tfb\em\String}}\to\Wdth {\tfb\em\String} is \Wdth\ wide. I do not

Re: [NTG-context] Getting width of text to be typeset

2020-05-23 Thread Gerben Wierda
> On 23 May 2020, at 01:49, Rik Kabel wrote: > > If the OP simply wants the width of a string, one can use \setwidthof#1\to#2. > > \define\String{pqrs} > \setwidthof{\String}\to\Wdth > \String\ is \Wdth\ wide. > > \setwidthof{{\tfb\em\String}}\to\Wdth > {\tfb\em\String} is \Wdth\ wide. > >

Re: [NTG-context] Getting width of text to be typeset

2020-05-22 Thread Rik Kabel
On 5/22/2020 18:18, Hans Hagen wrote: On 5/23/2020 12:03 AM, Hans Hagen wrote: On 5/22/2020 11:22 AM, cont...@vivaldi.net wrote: 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   

Re: [NTG-context] Getting width of text to be typeset

2020-05-22 Thread Hans Hagen
On 5/23/2020 12:03 AM, Hans Hagen wrote: On 5/22/2020 11:22 AM, cont...@vivaldi.net wrote: 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

Re: [NTG-context] Getting width of text to be typeset

2020-05-22 Thread Hans Hagen
On 5/22/2020 11:22 AM, cont...@vivaldi.net wrote: 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

[NTG-context] Getting width of text to be typeset

2020-05-22 Thread 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