From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/109382 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Sylvain Hubert Newsgroups: gmane.comp.tex.context Subject: Re: \switchtobodyfont behaves differenctly with splitted parameters Date: Sun, 8 Nov 2020 13:08:23 +0100 Message-ID: References: <3a1a5ee2-6679-d79e-5657-8c9196ecef86@xs4all.nl> <5d4c9245-9b84-d42d-fa28-981dc28d210b@xs4all.nl> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============6178519823438100195==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21699"; mail-complaints-to="usenet@ciao.gmane.io" To: Hans Hagen , mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Nov 08 13:10:14 2020 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane-mx.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kbjWQ-0005YK-1B for gctc-ntg-context-518@m.gmane-mx.org; Sun, 08 Nov 2020 13:10:14 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id B73861A9F7A; Sun, 8 Nov 2020 13:08:39 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 2YCpaQotTmTh; Sun, 8 Nov 2020 13:08:37 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 58CF11AA379; Sun, 8 Nov 2020 13:08:37 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id B93291A9F7A for ; Sun, 8 Nov 2020 13:08:36 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id yUKpHFeEQjnD for ; Sun, 8 Nov 2020 13:08:35 +0100 (CET) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.166.50; helo=mail-io1-f50.google.com; envelope-from=champignoom@gmail.com; receiver= Original-Received: from mail-io1-f50.google.com (mail-io1-f50.google.com [209.85.166.50]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id BA9971A9F61 for ; Sun, 8 Nov 2020 13:08:35 +0100 (CET) Original-Received: by mail-io1-f50.google.com with SMTP id t8so2526420iov.8 for ; Sun, 08 Nov 2020 04:08:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=Hk70G0LG+9KuKlMAb5llQZ1ghppHOG1CuBXr/BTjytg=; b=f+qIe1NVRTOkLO003v+sbxPVmodx9VnLQ2GRU96t2RTb9X+MIEpdb0vIQUhpHvVctd qRbQZ3F/uS6DhzLGm3P9NxTwTK45C3vzXkOt26FLAiQWsbPzx6AgaSuNQaqa3r61j2cF 3wVdI0LTQkSPHyikazViURFnZNSlE8zI+AuBxt+xXClhLo2c3MFEOD3WBZfD9oSBUMLM fyKS3OL9JRDC9GPJhQymxQq4kaXDnkwHXWD3tGBpQcf3ZPL3F5HaPLoR8Ee+F11AbuBa dUSHt2HoDTmSKwV/+OxmFzg8HScbLA2VbsaPyg990qu3I7Z4qxWpFsh9/9qmyjfOLZmC N1EA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=Hk70G0LG+9KuKlMAb5llQZ1ghppHOG1CuBXr/BTjytg=; b=fQweRPWSh9rWThdwPlkjQUFJ9kyyrEVcNUAJcWGexm08o+Pn5gIDY4R3943LSq7zpC /T6TzZ3p/JeT89Qcvndj3/MPcRK81dx+5l6OIYYyj0wVxjQk4Y6ENUpkRtsUhdm1jJ9e ezRliCpIlaH6roTysx4EfOKWwbhV9qiHcOiKbdJTbZYvfv3vOiZG1OFfHO5Y2Kg6yWB6 6M27uSCqeUmKbT/evUY9nEPvSuqwRfaj0p5fZLNz920QBWhnnZZptMExaSucHpq5ba10 kaaqf861R83BGUzNe++0EwvcMQCSVTYFp7hHEG7GBKzlYgCIJVophzLLdcrjF18uDEeo u/iw== X-Gm-Message-State: AOAM532NeG097rtIw7WL4UfHpaZvG2Wx/HhdUuftHOqAI0mphOd/UOm4 2HnqD0lZ5QjoSOC+fCMTYEgxRYGtq0Zz9I4Vfok= X-Google-Smtp-Source: ABdhPJxq+NUbWVFbZHqPiqrinFSfr4mHQqiEl7BkFfTamonrJKtAkQnT4hWEs45S5ITATudNtQybK8SI3vilteRHDDM= X-Received: by 2002:a6b:b983:: with SMTP id j125mr6832547iof.201.1604837314678; Sun, 08 Nov 2020 04:08:34 -0800 (PST) In-Reply-To: <5d4c9245-9b84-d42d-fa28-981dc28d210b@xs4all.nl> X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.io gmane.comp.tex.context:109382 Archived-At: --===============6178519823438100195== Content-Type: multipart/alternative; boundary="0000000000001053b505b3974e58" --0000000000001053b505b3974e58 Content-Type: text/plain; charset="UTF-8" On Sun, 8 Nov 2020 at 12:52, Hans Hagen wrote: > On 11/8/2020 12:46 PM, Sylvain Hubert wrote: > > On Sun, 8 Nov 2020 at 12:14, Hans Hagen > > 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 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 : > > > > \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 --0000000000001053b505b3974e58 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Sun, 8 Nov 2020 at 12:52, Hans Hagen <j.hagen@xs4all.nl> wrote:
On 11/8/2020 12:46 PM, Sylv= ain Hubert wrote:
> On Sun, 8 Nov 2020 at 12:14, Hans Hagen <j.hagen@xs4all.nl
> <mailto:j.ha= gen@xs4all.nl>> wrote:
>
>=C2=A0 =C2=A0 =C2=A0when yyou use several bodyfonts you can do this bef= ore \starttext:
>
>=C2=A0 =C2=A0 =C2=A0\usebodyfont[face,24pt]
>=C2=A0 =C2=A0 =C2=A0\usebodyfont[deface]
>
>=C2=A0 =C2=A0 =C2=A0\starttext
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0....
>=C2=A0 =C2=A0 =C2=A0\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, fr= om
> the wiki <https://wiki.contextgarden.= net/Command/switchtobodyfont> and
> the source code
> <https://source.co= ntextgarden.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 <= br> > \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 pa= ge
> number in the header, intuitively contradicting what is claimed by the=
> wiki <https://wiki.contextgarden.net/= Command/switchtobodyfont>:
>
>=C2=A0 =C2=A0 =C2=A0 \switchtobodyfont[dejavu]
>=C2=A0 =C2=A0 =C2=A0 \starttext \switchtobodyfont[dejavu, 24pt]a\stopte= xt

\setup=C2=A0 is document wide
\switch is for local usage

So \switchto= bodyfont before \starttext is semantically an error then.
Th= anks 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)



-----------------------------------------------------------------
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0Hans Hagen | PRAGMA ADE
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Ridderstraat 27 | 80= 61 GH Hasselt | The Netherlands
=C2=A0 =C2=A0 =C2=A0 =C2=A0 tel: 038 477 53 69 | www.pragma-ade.nl | www.= pragma-pod.nl
-----------------------------------------------------------------

Sylvain
--0000000000001053b505b3974e58-- --===============6178519823438100195== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============6178519823438100195==--