* Setting the size of \small
@ 2022-10-20 22:59 Leah Neukirchen via ntg-context
2022-10-21 15:59 ` Pablo Rodriguez via ntg-context
2022-10-21 16:23 ` Hans Hagen via ntg-context
0 siblings, 2 replies; 4+ messages in thread
From: Leah Neukirchen via ntg-context @ 2022-10-20 22:59 UTC (permalink / raw)
To: ntg-context; +Cc: Leah Neukirchen
Hi,
playing around with \definebodyfontenvironment with latest LMTX,
I found this possibly buggy behavior:
\definebodyfontenvironment[12pt][small=6pt] % x=6pt works here
\setupbodyfont[12pt]
\starttext
normal {\tx tx} {\small small}
\stoptext
With \definebodyfontenvironment[12pt][x=6pt] I can resize \tx fine,
but for \small it doesn't work.
--
Leah Neukirchen <leah@vuxu.org> https://leahneukirchen.org/
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Setting the size of \small
2022-10-20 22:59 Setting the size of \small Leah Neukirchen via ntg-context
@ 2022-10-21 15:59 ` Pablo Rodriguez via ntg-context
2022-10-21 16:23 ` Hans Hagen via ntg-context
1 sibling, 0 replies; 4+ messages in thread
From: Pablo Rodriguez via ntg-context @ 2022-10-21 15:59 UTC (permalink / raw)
To: Leah Neukirchen via ntg-context; +Cc: Pablo Rodriguez
On 10/21/22 00:59, Leah Neukirchen via ntg-context wrote:
> Hi,
>
> playing around with \definebodyfontenvironment with latest LMTX,
> I found this possibly buggy behavior:
>
> \definebodyfontenvironment[12pt][small=6pt] % x=6pt works here
> \setupbodyfont[12pt]
> \starttext
> normal {\tx tx} {\small small}
> \stoptext
>
> With \definebodyfontenvironment[12pt][x=6pt] I can resize \tx fine,
> but for \small it doesn't work.
Hi Leah,
I don’t know whether it may be a bug, but this works:
\definebodyfont[12pt]
\definebodyfontenvironment[12pt][small=100pt, x=100pt]
\setupbodyfont[12pt]
\starttext
normal {\tx tx} {\small small}
\stoptext
It might be that \small could be hardcoded by default.
Sorry for changing sizes, but I wanted to know for sure it was working.
Just in case it might help,
Pablo
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Setting the size of \small
2022-10-20 22:59 Setting the size of \small Leah Neukirchen via ntg-context
2022-10-21 15:59 ` Pablo Rodriguez via ntg-context
@ 2022-10-21 16:23 ` Hans Hagen via ntg-context
2022-10-21 16:32 ` Leah Neukirchen via ntg-context
1 sibling, 1 reply; 4+ messages in thread
From: Hans Hagen via ntg-context @ 2022-10-21 16:23 UTC (permalink / raw)
To: ntg-context; +Cc: Hans Hagen
On 10/21/2022 12:59 AM, Leah Neukirchen via ntg-context wrote:
> Hi,
>
> playing around with \definebodyfontenvironment with latest LMTX,
> I found this possibly buggy behavior:
>
> \definebodyfontenvironment[12pt][small=6pt] % x=6pt works here
> \setupbodyfont[12pt]
> \starttext
> normal {\tx tx} {\small small}
> \stoptext
>
> With \definebodyfontenvironment[12pt][x=6pt] I can resize \tx fine,
> but for \small it doesn't work.
it has to do with the fact that we have font clases and some parameters
are bound to it.
\setupbodyfontenvironment
[pagella]
[12pt]
[x=4pt,
small=4pt]
\setupbodyfont[pagella,12pt]
\starttext
normal {\tx tx} {\small small}
\stoptext
that will work. You can say \fontclass to see what you got after a
\setupbodyfont.
I'll add
\setupbodyfontenvironment
[all]
[12pt]
[x=4pt,
small=4pt]
as option (assuming we have no performance hit).
x xx : dynamic
small big : more static (trigger some definitions)
when we decide to go 'compact fonts' we can review this. We can then
also decide to get rid of the old design size subsystem (only lm uses it
unless one does 'modern' and there are other ways.)
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | www.pragma-ade.nl | 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 / 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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Setting the size of \small
2022-10-21 16:23 ` Hans Hagen via ntg-context
@ 2022-10-21 16:32 ` Leah Neukirchen via ntg-context
0 siblings, 0 replies; 4+ messages in thread
From: Leah Neukirchen via ntg-context @ 2022-10-21 16:32 UTC (permalink / raw)
To: ntg-context; +Cc: Leah Neukirchen
Hans Hagen via ntg-context <ntg-context@ntg.nl> writes:
> I'll add
>
> \setupbodyfontenvironment
> [all]
> [12pt]
> [x=4pt,
> small=4pt]
>
> as option (assuming we have no performance hit).
It would also be nice to be able to
\setupbodyfontenvironment[all][default][x=0.8]
(I solved my actual problem by adding a new custom fontsize with
\definefontsize, as it's not really \small but something else.)
--
Leah Neukirchen <leah@vuxu.org> https://leahneukirchen.org/
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2022-10-21 16:32 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-20 22:59 Setting the size of \small Leah Neukirchen via ntg-context
2022-10-21 15:59 ` Pablo Rodriguez via ntg-context
2022-10-21 16:23 ` Hans Hagen via ntg-context
2022-10-21 16:32 ` Leah Neukirchen via ntg-context
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).