From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/109379 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 12:46:36 +0100 Message-ID: References: <3a1a5ee2-6679-d79e-5657-8c9196ecef86@xs4all.nl> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============7384082152634612737==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7027"; 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 12:47:10 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 1kbjA5-0001hk-RQ for gctc-ntg-context-518@m.gmane-mx.org; Sun, 08 Nov 2020 12:47:09 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 0BDC51AA36F; Sun, 8 Nov 2020 12:46:52 +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 ryA5zlOpdeRj; Sun, 8 Nov 2020 12:46:51 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 28FDF1AA379; Sun, 8 Nov 2020 12:46:51 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id C3FCD1AA374 for ; Sun, 8 Nov 2020 12:46:49 +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 5mpds6vvMpqJ for ; Sun, 8 Nov 2020 12:46:48 +0100 (CET) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.166.179; helo=mail-il1-f179.google.com; envelope-from=champignoom@gmail.com; receiver= Original-Received: from mail-il1-f179.google.com (mail-il1-f179.google.com [209.85.166.179]) (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 B8A1C1AA36F for ; Sun, 8 Nov 2020 12:46:48 +0100 (CET) Original-Received: by mail-il1-f179.google.com with SMTP id l12so3025400ilo.1 for ; Sun, 08 Nov 2020 03:46:48 -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=M8UpsbHQ1PzARuW9YLWbfJn5J1E02TxcX45P9R2gQp8=; b=chQAZycQlIJXT+tr4lSi6iWrNdzY9zPTg38HDq/ez6T+IZjGq349ZX1IhPC47DWvCH 7DZ/VBjzNTfg2n63pZWyJSuukfxk+G3Nqx/JYUryh5eGKfmXa0aDhQSgJUNgRtATz+Is hNkKceOG6rujduApu/LXVXq2FyLkZGzPZUfe9UIilaj0FEY46kGsU4+Bjn3v2CkwFozC VmifZlftN1F/A9N8Zca2VHrZrFDkPqYL3IF1miAaZ1NasXFhKWPe/YjVpMgCYHLz1TMd EymX9FZ8znw3MVe+j86X80DUwGXhmOSIAbgT6jt8NX9sl+boADnVSmx+q/7ew6zPChCR Vl0w== 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=M8UpsbHQ1PzARuW9YLWbfJn5J1E02TxcX45P9R2gQp8=; b=nU/PtJuMQPnGE6mn7DNX/HXAxDXRe5Ao0zE/IIv15NQx06HjTpIWzehYtUp/YCjCHX I7GZv3icFx1T/lCl73EBn728HzwYBjdeypNKjJLSvdYAxueHGpLSHYA25kqcBLhbvEDW SrTPKhNenRTSaOf//6L7TQoevmaTS4QP8PYWsRbqxTkFHPV0EQ6y+sH2BdlKCFg2TDTw XNCS/KCIMxJmF02K1L4PMbNgg4q6+ZEJwFzfN56dOiVJqL3gB4ty3lqNzc01vWynNy1e frKfDG7J83CbSsUsKOhfT/lMz+tl/PZwibNMmuIOL274dBjZJjSIuYufLi/lAJyqGDFS 0mUQ== X-Gm-Message-State: AOAM533Bt08B9ve5li0Bwi3XAYdbrrs7PunCnhKzMB0MHGKAAWp8RL6b hjqVsIyXfibRisoAPycr9dnbSKFWENLhllrFYSM= X-Google-Smtp-Source: ABdhPJzZTbNalWm79DTvQIfUZ07A4zACR4Mj2WYJw0hiB/EROECo4h5dGMhccCv9dW1IbpOIl3Coxa7gpJc0u5bcUdo= X-Received: by 2002:a05:6e02:105:: with SMTP id t5mr6126298ilm.174.1604836007499; Sun, 08 Nov 2020 03:46:47 -0800 (PST) In-Reply-To: <3a1a5ee2-6679-d79e-5657-8c9196ecef86@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:109379 Archived-At: --===============7384082152634612737== Content-Type: multipart/alternative; boundary="000000000000265d3005b3970053" --000000000000265d3005b3970053 Content-Type: text/plain; charset="UTF-8" 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 , 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 Thanks! Sylvain --000000000000265d3005b3970053 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
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
=C2=A0 =C2=A0....
\stoptext

Thank you for the information= , Hans!

Could you please also shed some light on t= he 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, tha= t they are mostly the same, except that \switchtobodyfont is restricted to = the content area, and \usebodyfont is a helper to call \setupbodyfont in th= e beginning?

If this is the case, is it recommende= d to always put a \setupbodyfont[...] in the beginning, even if it's ju= st a \setupbodyfont[modern]?
One reason might be that the followi= ng example somehow enlarges the page number in the header, intuitively cont= radicting what is claimed by the wiki:

=C2=A0 =C2=A0 \switchtobodyfont[dejavu]
=C2=A0 =C2= =A0 \starttext \switchtobodyfont[dejavu, 24pt]a\stoptext

Thanks!

Sylvain
--000000000000265d3005b3970053-- --===============7384082152634612737== 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== --===============7384082152634612737==--