* [NTG-context] read out of \tx-value possible?
@ 2025-04-11 8:03 Thomas Meyer
2025-04-11 10:19 ` [NTG-context] " Henning Hraban Ramm
0 siblings, 1 reply; 5+ messages in thread
From: Thomas Meyer @ 2025-04-11 8:03 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 788 bytes --]
Hi folks,
is it possible to read out the value of \tx (or \txx ... ) for
calculations if bodyfont and fontsize is given? \the\tx doesn't work.
\setuplayout[grid=yes]
\setupbodyfont[libertinus,12pt]
\setupinterlinespace[1.25\bodyfontsize]
\starttext
\samplefile{tufte}\par
\startlinecorrection
\setuplocalinterlinespace[12.5pt]
\placefigure [middle,nonumber]{\tx\midaligned{bla blablabla
blabla\\ blubdibla blabla bla}}
{\externalfigure[][height=40mm, width=60mm]}
\stoplinecorrection
\samplefile{tufte}\par
\stoptext
I would like to calculate the setuplocalinterlinespace similar to the
setupinterlinespace.
Thanks in advance
Thomas
[-- Attachment #1.2: Type: text/html, Size: 1298 bytes --]
[-- Attachment #2: Type: text/plain, Size: 511 bytes --]
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* [NTG-context] Re: read out of \tx-value possible?
2025-04-11 8:03 [NTG-context] read out of \tx-value possible? Thomas Meyer
@ 2025-04-11 10:19 ` Henning Hraban Ramm
2025-04-12 9:14 ` Thomas Meyer
0 siblings, 1 reply; 5+ messages in thread
From: Henning Hraban Ramm @ 2025-04-11 10:19 UTC (permalink / raw)
To: ntg-context
Am 11.04.25 um 10:03 schrieb Thomas Meyer:
> is it possible to read out the value of \tx (or \txx ... ) for
> calculations if bodyfont and fontsize is given? \the\tx doesn't work.
Does \showbodyfontenvironment help?
Hraban
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* [NTG-context] Re: read out of \tx-value possible?
2025-04-11 10:19 ` [NTG-context] " Henning Hraban Ramm
@ 2025-04-12 9:14 ` Thomas Meyer
2025-04-12 23:22 ` Bruce Horrocks
0 siblings, 1 reply; 5+ messages in thread
From: Thomas Meyer @ 2025-04-12 9:14 UTC (permalink / raw)
To: ntg-context
Am 11.04.25 um 12:19 schrieb Henning Hraban Ramm:
> Am 11.04.25 um 10:03 schrieb Thomas Meyer:
>> is it possible to read out the value of \tx (or \txx ... ) for
>> calculations if bodyfont and fontsize is given? \the\tx doesn't work.
>
> Does \showbodyfontenvironment help?
>
> Hraban
>
Thank you, Hraban,
I know this table. But I think it's too complicated for me to extract
from the source what I want.
If you had written, use this or that command, I could have done
something with it.
Now I try it this way:
\setuplayout[grid=yes]
\setupbodyfont[libertinus,12pt]
\setupinterlinespace[1.25\bodyfontsize]
\starttext
\samplefile{tufte}%\par
\startlinecorrection
\switchtobodyfont[10pt]
\setuplocalinterlinespace[1.25\bodyfontsize]
\placefigure [middle,nonumber]{\midaligned{bla blablabla blabla\\
blubdibla blabla bla}}
{\externalfigure[][height=40mm, width=60mm]}
\stoplinecorrection
\samplefile{tufte}\par
\stoptext
Greetings and a nice weekend
Thomas
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* [NTG-context] Re: read out of \tx-value possible?
2025-04-12 9:14 ` Thomas Meyer
@ 2025-04-12 23:22 ` Bruce Horrocks
2025-04-22 9:04 ` Thomas Meyer
0 siblings, 1 reply; 5+ messages in thread
From: Bruce Horrocks @ 2025-04-12 23:22 UTC (permalink / raw)
To: ntg-context mailing list; +Cc: thomasgmeyer
[-- Attachment #1.1: Type: text/plain, Size: 811 bytes --]
> On 12 Apr 2025, at 10:14, Thomas Meyer <thomasgmeyer@t-online.de> wrote:
>
>
>
> Am 11.04.25 um 12:19 schrieb Henning Hraban Ramm:
>> Am 11.04.25 um 10:03 schrieb Thomas Meyer:
>>> is it possible to read out the value of \tx (or \txx ... ) for calculations if bodyfont and fontsize is given? \the\tx doesn't work.
>>
>> Does \showbodyfontenvironment help?
>>
>> Hraban
>>
>
> Thank you, Hraban,
>
> I know this table. But I think it's too complicated for me to extract from the source what I want.
No need to extract the sizes of /tx and /txx at compile time - just use the values that are specified on this page:
<https://wiki.contextgarden.net/Characters_words_and_fonts/Define_the_set_of_font_sizes_and_the_line_spacing>
Regards,
—
Bruce Horrocks
Hampshire, UK
[-- Attachment #1.2: Type: text/html, Size: 5483 bytes --]
[-- Attachment #2: Type: text/plain, Size: 511 bytes --]
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* [NTG-context] Re: read out of \tx-value possible?
2025-04-12 23:22 ` Bruce Horrocks
@ 2025-04-22 9:04 ` Thomas Meyer
0 siblings, 0 replies; 5+ messages in thread
From: Thomas Meyer @ 2025-04-22 9:04 UTC (permalink / raw)
To: Bruce Horrocks, ntg-context mailing list
[-- Attachment #1.1: Type: text/plain, Size: 1015 bytes --]
Thank you, Bruce, for yor hint, and sorry for my late response because
of Easter Holidays.
Greeetings
Thomas
Am 13.04.25 um 01:22 schrieb Bruce Horrocks:
>
>
>> On 12 Apr 2025, at 10:14, Thomas Meyer <thomasgmeyer@t-online.de> wrote:
>>
>>
>>
>> Am 11.04.25 um 12:19 schrieb Henning Hraban Ramm:
>>> Am 11.04.25 um 10:03 schrieb Thomas Meyer:
>>>> is it possible to read out the value of \tx (or \txx ... ) for
>>>> calculations if bodyfont and fontsize is given? \the\tx doesn't work.
>>>
>>> Does \showbodyfontenvironment help?
>>>
>>> Hraban
>>>
>>
>> Thank you, Hraban,
>>
>> I know this table. But I think it's too complicated for me to extract
>> from the source what I want.
>
> No need to extract the sizes of /tx and /txx at compile time - just
> use the values that are specified on this page:
> <https://wiki.contextgarden.net/Characters_words_and_fonts/Define_the_set_of_font_sizes_and_the_line_spacing>
>
> Regards,
> —
> Bruce Horrocks
> Hampshire, UK
>
[-- Attachment #1.2: Type: text/html, Size: 6559 bytes --]
[-- Attachment #2: Type: text/plain, Size: 511 bytes --]
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2025-04-22 9:08 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-04-11 8:03 [NTG-context] read out of \tx-value possible? Thomas Meyer
2025-04-11 10:19 ` [NTG-context] " Henning Hraban Ramm
2025-04-12 9:14 ` Thomas Meyer
2025-04-12 23:22 ` Bruce Horrocks
2025-04-22 9:04 ` Thomas Meyer
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).