* \switchtobodyfont behaves differenctly with splitted parameters
@ 2020-11-08 1:35 Sylvain Hubert
2020-11-08 9:38 ` Pablo Rodriguez
0 siblings, 1 reply; 11+ messages in thread
From: Sylvain Hubert @ 2020-11-08 1:35 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 405 bytes --]
Dear List,
after hours of debugging, I finally found out that \switchtobodyfont[face,
20pt] does NOT behave the same with
\switchtobodyfont[face]\switchtobodyfont[20pt]. In my case the latter is
the correct one, while the former does nothing but falling back to
latinmodern.
Does anyone know when or why \switchtobodyfont behaves differently with
splitted and joined parameters?
Thanks.
Best,
Sylvain
[-- Attachment #1.2: Type: text/html, Size: 548 bytes --]
[-- Attachment #2: Type: text/plain, Size: 493 bytes --]
___________________________________________________________________________________
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] 11+ messages in thread
* Re: \switchtobodyfont behaves differenctly with splitted parameters
2020-11-08 1:35 \switchtobodyfont behaves differenctly with splitted parameters Sylvain Hubert
@ 2020-11-08 9:38 ` Pablo Rodriguez
2020-11-08 10:18 ` Sylvain Hubert
0 siblings, 1 reply; 11+ messages in thread
From: Pablo Rodriguez @ 2020-11-08 9:38 UTC (permalink / raw)
To: ntg-context
On 11/8/20 2:35 AM, Sylvain Hubert wrote:
> Dear List,
>
> after hours of debugging, I finally found out that
> \switchtobodyfont[face, 20pt] does NOT behave the same with
> \switchtobodyfont[face]\switchtobodyfont[20pt]. In my case the latter is
> the correct one, while the former does nothing but falling back to
> latinmodern.
>
> Does anyone know when or why \switchtobodyfont behaves differently with
> splitted and joined parameters?
Hi Sylvain,
as a general rule, it helps when there is a minimal sample that provides
the problematic behavior.
I don’t get diffferent results:
\definefontfamily[mainface][rm][TeX Gyre Pagella]
\definefontfamily[face][rm][TeX Gyre Heros]
\setupbodyfont[mainface]
\startbuffer
In my case, the latter is the correct one, while the former does
nothing but falling back to latinmodern.\par
\stopbuffer
\starttext
\getbuffer
\switchtobodyfont[face]\switchtobodyfont[20pt]
\getbuffer
\switchtobodyfont[face, 20pt]
\getbuffer
\stoptext
Correct the sample to show what I got wrong from your message.
Pablo
--
http://www.ousia.tk
___________________________________________________________________________________
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] 11+ messages in thread
* Re: \switchtobodyfont behaves differenctly with splitted parameters
2020-11-08 9:38 ` Pablo Rodriguez
@ 2020-11-08 10:18 ` Sylvain Hubert
2020-11-08 10:28 ` Sylvain Hubert
2020-11-08 10:34 ` Pablo Rodriguez
0 siblings, 2 replies; 11+ messages in thread
From: Sylvain Hubert @ 2020-11-08 10:18 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 2331 bytes --]
Hi Pablo,
thanks for the suggestion. Here's the minimal example which shows the
difference:
\definefontfamily[face][rm][dejavuserif]
\starttext\switchtobodyfont[face, 24pt]ɑ\stoptext
this should warn:
fonts > checking > char ɑ (U+00251) in font
'LatinModernMath-Regular-4' with id 10: missing
while
\definefontfamily[face][rm][dejavuserif]
\starttext\switchtobodyfont[face, 24pt]ɑ\stoptext
produces the expected result despite a harmless warning.
Sylvain
On Sun, 8 Nov 2020 at 10:41, Pablo Rodriguez <oinos@gmx.es> wrote:
> On 11/8/20 2:35 AM, Sylvain Hubert wrote:
> > Dear List,
> >
> > after hours of debugging, I finally found out that
> > \switchtobodyfont[face, 20pt] does NOT behave the same with
> > \switchtobodyfont[face]\switchtobodyfont[20pt]. In my case the latter is
> > the correct one, while the former does nothing but falling back to
> > latinmodern.
> >
> > Does anyone know when or why \switchtobodyfont behaves differently with
> > splitted and joined parameters?
>
> Hi Sylvain,
>
> as a general rule, it helps when there is a minimal sample that provides
> the problematic behavior.
>
> I don’t get diffferent results:
>
> \definefontfamily[mainface][rm][TeX Gyre Pagella]
> \definefontfamily[face][rm][TeX Gyre Heros]
> \setupbodyfont[mainface]
> \startbuffer
> In my case, the latter is the correct one, while the former does
> nothing but falling back to latinmodern.\par
> \stopbuffer
>
> \starttext
> \getbuffer
> \switchtobodyfont[face]\switchtobodyfont[20pt]
> \getbuffer
> \switchtobodyfont[face, 20pt]
> \getbuffer
> \stoptext
>
> Correct the sample to show what I got wrong from your message.
>
> Pablo
> --
> http://www.ousia.tk
>
> ___________________________________________________________________________________
> 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
>
> ___________________________________________________________________________________
>
[-- Attachment #1.2: Type: text/html, Size: 3506 bytes --]
[-- Attachment #2: Type: text/plain, Size: 493 bytes --]
___________________________________________________________________________________
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] 11+ messages in thread
* Re: \switchtobodyfont behaves differenctly with splitted parameters
2020-11-08 10:18 ` Sylvain Hubert
@ 2020-11-08 10:28 ` Sylvain Hubert
2020-11-08 10:34 ` Pablo Rodriguez
1 sibling, 0 replies; 11+ messages in thread
From: Sylvain Hubert @ 2020-11-08 10:28 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 789 bytes --]
On Sun, 8 Nov 2020 at 11:18, Sylvain Hubert <champignoom@gmail.com> wrote:
> Hi Pablo,
>
> thanks for the suggestion. Here's the minimal example which shows the
> difference:
>
> \definefontfamily[face][rm][dejavuserif]
> \starttext\switchtobodyfont[face, 24pt]ɑ\stoptext
>
> this should warn:
>
> fonts > checking > char ɑ (U+00251) in font
> 'LatinModernMath-Regular-4' with id 10: missing
>
> while
>
> \definefontfamily[face][rm][dejavuserif]
> \starttext\switchtobodyfont[face, 24pt]ɑ\stoptext
>
sorry, this should read
\definefontfamily[face][rm][dejavuserif]
\starttext\switchtobodyfont[face]\switchtobodyfont[24pt]ɑ\stoptext
> produces the expected result despite a harmless warning.
>
> Sylvain
>
>
[-- Attachment #1.2: Type: text/html, Size: 1539 bytes --]
[-- Attachment #2: Type: text/plain, Size: 493 bytes --]
___________________________________________________________________________________
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] 11+ messages in thread
* Re: \switchtobodyfont behaves differenctly with splitted parameters
2020-11-08 10:18 ` Sylvain Hubert
2020-11-08 10:28 ` Sylvain Hubert
@ 2020-11-08 10:34 ` Pablo Rodriguez
2020-11-08 11:02 ` Sylvain Hubert
1 sibling, 1 reply; 11+ messages in thread
From: Pablo Rodriguez @ 2020-11-08 10:34 UTC (permalink / raw)
To: ntg-context
On 11/8/20 11:18 AM, Sylvain Hubert wrote:
> Hi Pablo,
>
> thanks for the suggestion. Here's the minimal example which shows the
> difference:
>
> \definefontfamily[face][rm][dejavuserif]
> \starttext\switchtobodyfont[face, 24pt]ɑ\stoptext
>
> this should warn:
>
> fonts > checking > char ɑ (U+00251) in font
> 'LatinModernMath-Regular-4' with id 10: missing
Well, you are switching before setting up a body font.
I don’t know whether this might be a bug in ConTeXt (see previous
report), but I would set up the body font always first:
\definefontfamily[face][rm][dejavuserif]
\definefontfamily[deface][rm][dejavusans]
\setupbodyfont[deface]
\starttext a\switchtobodyfont[face, 24pt]ɑ\stoptext
> while
>
> \definefontfamily[face][rm][dejavuserif]
> \starttext\switchtobodyfont[face, 24pt]ɑ\stoptext
>
> produces the expected result despite a harmless warning.
I guess the command reads:
\switchtobodyfont[face]ɑ
This might also be related to the issue just reported.
Pablo
--
http://www.ousia.tk
___________________________________________________________________________________
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] 11+ messages in thread
* Re: \switchtobodyfont behaves differenctly with splitted parameters
2020-11-08 10:34 ` Pablo Rodriguez
@ 2020-11-08 11:02 ` Sylvain Hubert
2020-11-08 11:06 ` Wolfgang Schuster
2020-11-08 11:14 ` Hans Hagen
0 siblings, 2 replies; 11+ messages in thread
From: Sylvain Hubert @ 2020-11-08 11:02 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 1225 bytes --]
On Sun, 8 Nov 2020 at 11:37, Pablo Rodriguez <oinos@gmx.es> wrote:
> On 11/8/20 11:18 AM, Sylvain Hubert wrote:
> > Hi Pablo,
> >
> > thanks for the suggestion. Here's the minimal example which shows the
> > difference:
> >
> > \definefontfamily[face][rm][dejavuserif]
> > \starttext\switchtobodyfont[face, 24pt]ɑ\stoptext
> >
> > this should warn:
> >
> > fonts > checking > char ɑ (U+00251) in font
> > 'LatinModernMath-Regular-4' with id 10: missing
>
> Well, you are switching before setting up a body font.
>
> I don’t know whether this might be a bug in ConTeXt (see previous
> report), but I would set up the body font always first:
>
> \definefontfamily[face][rm][dejavuserif]
> \definefontfamily[deface][rm][dejavusans]
> \setupbodyfont[deface]
> \starttext a\switchtobodyfont[face, 24pt]ɑ\stoptext
>
Thanks, it works!
And I agree that it probably indicates the existence of a bug, since by
changing "\setupbodyfont[deface]" to "\setupbodyfont[dejavu]" in your
example, the problem reappears:
\definefontfamily[face][rm][dejavuserif]
\setupbodyfont[dejavu]
\starttext a\switchtobodyfont[face, 24pt]ɑ\stoptext
Sylvain
[-- Attachment #1.2: Type: text/html, Size: 1780 bytes --]
[-- Attachment #2: Type: text/plain, Size: 493 bytes --]
___________________________________________________________________________________
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] 11+ messages in thread
* Re: \switchtobodyfont behaves differenctly with splitted parameters
2020-11-08 11:02 ` Sylvain Hubert
@ 2020-11-08 11:06 ` Wolfgang Schuster
2020-11-08 11:14 ` Hans Hagen
1 sibling, 0 replies; 11+ messages in thread
From: Wolfgang Schuster @ 2020-11-08 11:06 UTC (permalink / raw)
To: mailing list for ConTeXt users
Sylvain Hubert schrieb am 08.11.2020 um 12:02:
> On Sun, 8 Nov 2020 at 11:37, Pablo Rodriguez <oinos@gmx.es
> <mailto:oinos@gmx.es>> wrote:
>
> On 11/8/20 11:18 AM, Sylvain Hubert wrote:
> > Hi Pablo,
> >
> > thanks for the suggestion. Here's the minimal example which shows the
> > difference:
> >
> > \definefontfamily[face][rm][dejavuserif]
> > \starttext\switchtobodyfont[face, 24pt]ɑ\stoptext
> >
> > this should warn:
> >
> > fonts > checking > char ɑ (U+00251) in font
> > 'LatinModernMath-Regular-4' with id 10: missing
>
> Well, you are switching before setting up a body font.
>
> I don’t know whether this might be a bug in ConTeXt (see previous
> report), but I would set up the body font always first:
>
> \definefontfamily[face][rm][dejavuserif]
> \definefontfamily[deface][rm][dejavusans]
> \setupbodyfont[deface]
> \starttext a\switchtobodyfont[face, 24pt]ɑ\stoptext
>
>
> Thanks, it works!
>
> And I agree that it probably indicates the existence of a bug, since by
> changing "\setupbodyfont[deface]" to "\setupbodyfont[dejavu]" in your
> example, the problem reappears:
>
> \definefontfamily[face][rm][dejavuserif]
Add here: \definebodyfont[24pt]
Wolfgang
___________________________________________________________________________________
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] 11+ messages in thread
* Re: \switchtobodyfont behaves differenctly with splitted parameters
2020-11-08 11:02 ` Sylvain Hubert
2020-11-08 11:06 ` Wolfgang Schuster
@ 2020-11-08 11:14 ` Hans Hagen
2020-11-08 11:46 ` Sylvain Hubert
1 sibling, 1 reply; 11+ messages in thread
From: Hans Hagen @ 2020-11-08 11:14 UTC (permalink / raw)
To: mailing list for ConTeXt users, Sylvain Hubert
On 11/8/2020 12:02 PM, Sylvain Hubert wrote:
> On Sun, 8 Nov 2020 at 11:37, Pablo Rodriguez <oinos@gmx.es
> <mailto:oinos@gmx.es>> wrote:
>
> On 11/8/20 11:18 AM, Sylvain Hubert wrote:
> > Hi Pablo,
> >
> > thanks for the suggestion. Here's the minimal example which shows the
> > difference:
> >
> > \definefontfamily[face][rm][dejavuserif]
> > \starttext\switchtobodyfont[face, 24pt]ɑ\stoptext
> >
> > this should warn:
> >
> > fonts > checking > char ɑ (U+00251) in font
> > 'LatinModernMath-Regular-4' with id 10: missing
>
> Well, you are switching before setting up a body font.
>
> I don’t know whether this might be a bug in ConTeXt (see previous
> report), but I would set up the body font always first:
>
> \definefontfamily[face][rm][dejavuserif]
> \definefontfamily[deface][rm][dejavusans]
> \setupbodyfont[deface]
> \starttext a\switchtobodyfont[face, 24pt]ɑ\stoptext
>
>
> Thanks, it works!
>
> And I agree that it probably indicates the existence of a bug, since by
> changing "\setupbodyfont[deface]" to "\setupbodyfont[dejavu]" in your
> example, the problem reappears:
>
> \definefontfamily[face][rm][dejavuserif]
> \setupbodyfont[dejavu]
> \starttext a\switchtobodyfont[face, 24pt]ɑ\stoptext
when yyou use several bodyfonts you can do this before \starttext:
\usebodyfont[face,24pt]
\usebodyfont[deface]
\starttext
....
\stoptext
-----------------------------------------------------------------
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 / 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] 11+ messages in thread
* Re: \switchtobodyfont behaves differenctly with splitted parameters
2020-11-08 11:14 ` Hans Hagen
@ 2020-11-08 11:46 ` Sylvain Hubert
2020-11-08 11:52 ` Hans Hagen
0 siblings, 1 reply; 11+ messages in thread
From: Sylvain Hubert @ 2020-11-08 11:46 UTC (permalink / raw)
To: Hans Hagen, mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 1224 bytes --]
On Sun, 8 Nov 2020 at 12:14, Hans Hagen <j.hagen@xs4all.nl> wrote:
> when yyou use several bodyfonts you can do this before \starttext:
>
> \usebodyfont[face,24pt]
> \usebodyfont[deface]
>
> \starttext
> ....
> \stoptext
>
Thank you for the information, Hans!
Could you please also shed some light on the relation/difference among
\{setup,switchto,use}bodyfont?
There seems to be not much documentation on this. Can one conclude, from the
wiki <https://wiki.contextgarden.net/Command/switchtobodyfont> and the source
code
<https://source.contextgarden.net/tex/context/base/mkiv/font-ini.mklx#l2287>,
that they are mostly the same, except that \switchtobodyfont is restricted
to the content area, and \usebodyfont is a helper to call \setupbodyfont in
the beginning?
If this is the case, is it recommended to always put a \setupbodyfont[...]
in the beginning, even if it's just a \setupbodyfont[modern]?
One reason might be that the following example somehow enlarges the page
number in the header, intuitively contradicting what is claimed by the wiki
<https://wiki.contextgarden.net/Command/switchtobodyfont>:
\switchtobodyfont[dejavu]
\starttext \switchtobodyfont[dejavu, 24pt]a\stoptext
Thanks!
Sylvain
[-- Attachment #1.2: Type: text/html, Size: 1893 bytes --]
[-- Attachment #2: Type: text/plain, Size: 493 bytes --]
___________________________________________________________________________________
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] 11+ messages in thread
* Re: \switchtobodyfont behaves differenctly with splitted parameters
2020-11-08 11:46 ` Sylvain Hubert
@ 2020-11-08 11:52 ` Hans Hagen
2020-11-08 12:08 ` Sylvain Hubert
0 siblings, 1 reply; 11+ messages in thread
From: Hans Hagen @ 2020-11-08 11:52 UTC (permalink / raw)
To: Sylvain Hubert, mailing list for ConTeXt users
On 11/8/2020 12:46 PM, Sylvain Hubert wrote:
> On Sun, 8 Nov 2020 at 12:14, Hans Hagen <j.hagen@xs4all.nl
> <mailto:j.hagen@xs4all.nl>> wrote:
>
> when yyou use several bodyfonts you can do this before \starttext:
>
> \usebodyfont[face,24pt]
> \usebodyfont[deface]
>
> \starttext
> ....
> \stoptext
>
>
> Thank you for the information, Hans!
>
> Could you please also shed some light on the relation/difference among
> \{setup,switchto,use}bodyfont?
> There seems to be not much documentation on this. Can one conclude, from
> the wiki <https://wiki.contextgarden.net/Command/switchtobodyfont> and
> the source code
> <https://source.contextgarden.net/tex/context/base/mkiv/font-ini.mklx#l2287>,
> that they are mostly the same, except that \switchtobodyfont is
> restricted to the content area, and \usebodyfont is a helper to call
> \setupbodyfont in the beginning?
>
> If this is the case, is it recommended to always put a
> \setupbodyfont[...] in the beginning, even if it's just a
> \setupbodyfont[modern]?
> One reason might be that the following example somehow enlarges the page
> number in the header, intuitively contradicting what is claimed by the
> wiki <https://wiki.contextgarden.net/Command/switchtobodyfont>:
>
> \switchtobodyfont[dejavu]
> \starttext \switchtobodyfont[dejavu, 24pt]a\stoptext
\setup is document wide
\switch is for local usage
(has to do with picking up font/space related issues after page breaks
and when typesetting page ornaments like headers and footers)
-----------------------------------------------------------------
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 / 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] 11+ messages in thread
* Re: \switchtobodyfont behaves differenctly with splitted parameters
2020-11-08 11:52 ` Hans Hagen
@ 2020-11-08 12:08 ` Sylvain Hubert
0 siblings, 0 replies; 11+ messages in thread
From: Sylvain Hubert @ 2020-11-08 12:08 UTC (permalink / raw)
To: Hans Hagen, mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 2152 bytes --]
On Sun, 8 Nov 2020 at 12:52, Hans Hagen <j.hagen@xs4all.nl> wrote:
> On 11/8/2020 12:46 PM, Sylvain Hubert wrote:
> > On Sun, 8 Nov 2020 at 12:14, Hans Hagen <j.hagen@xs4all.nl
> > <mailto:j.hagen@xs4all.nl>> wrote:
> >
> > when yyou use several bodyfonts you can do this before \starttext:
> >
> > \usebodyfont[face,24pt]
> > \usebodyfont[deface]
> >
> > \starttext
> > ....
> > \stoptext
> >
> >
> > Thank you for the information, Hans!
> >
> > Could you please also shed some light on the relation/difference among
> > \{setup,switchto,use}bodyfont?
> > There seems to be not much documentation on this. Can one conclude, from
> > the wiki <https://wiki.contextgarden.net/Command/switchtobodyfont> and
> > the source code
> > <
> https://source.contextgarden.net/tex/context/base/mkiv/font-ini.mklx#l2287>,
>
> > that they are mostly the same, except that \switchtobodyfont is
> > restricted to the content area, and \usebodyfont is a helper to call
> > \setupbodyfont in the beginning?
> >
> > If this is the case, is it recommended to always put a
> > \setupbodyfont[...] in the beginning, even if it's just a
> > \setupbodyfont[modern]?
> > One reason might be that the following example somehow enlarges the page
> > number in the header, intuitively contradicting what is claimed by the
> > wiki <https://wiki.contextgarden.net/Command/switchtobodyfont>:
> >
> > \switchtobodyfont[dejavu]
> > \starttext \switchtobodyfont[dejavu, 24pt]a\stoptext
>
> \setup is document wide
> \switch is for local usage
>
So \switchtobodyfont before \starttext is semantically an error then.
Thanks for the confirmation!
> (has to do with picking up font/space related issues after page breaks
> and when typesetting page ornaments like headers and footers)
>
>
>
> -----------------------------------------------------------------
> Hans Hagen | PRAGMA ADE
> Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
> tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
> -----------------------------------------------------------------
>
Sylvain
[-- Attachment #1.2: Type: text/html, Size: 3605 bytes --]
[-- Attachment #2: Type: text/plain, Size: 493 bytes --]
___________________________________________________________________________________
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] 11+ messages in thread
end of thread, other threads:[~2020-11-08 12:08 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-08 1:35 \switchtobodyfont behaves differenctly with splitted parameters Sylvain Hubert
2020-11-08 9:38 ` Pablo Rodriguez
2020-11-08 10:18 ` Sylvain Hubert
2020-11-08 10:28 ` Sylvain Hubert
2020-11-08 10:34 ` Pablo Rodriguez
2020-11-08 11:02 ` Sylvain Hubert
2020-11-08 11:06 ` Wolfgang Schuster
2020-11-08 11:14 ` Hans Hagen
2020-11-08 11:46 ` Sylvain Hubert
2020-11-08 11:52 ` Hans Hagen
2020-11-08 12:08 ` Sylvain Hubert
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).