From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/95119 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: basic fontsizes question Date: Wed, 08 Jun 2016 11:11:06 +0200 Message-ID: <5757E12A.4020306@gmail.com> References: <64e58e9f-5c44-0a0d-64dd-fd5300768be2@gmx.es> <57553049.7020300@fehige.de> <5755513E.7030604@gmail.com> <5755693B.8010307@fehige.de> <57558320.1000402@fehige.de> <5755E1AC.5040505@gmail.com> <5757D8CA.2070003@fehige.de> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============6322799849618010015==" X-Trace: ger.gmane.org 1465377120 26222 80.91.229.3 (8 Jun 2016 09:12:00 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 8 Jun 2016 09:12:00 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Jun 08 11:11:48 2016 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1bAZWd-00007m-OU for gctc-ntg-context-518@m.gmane.org; Wed, 08 Jun 2016 11:11:47 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id D674AEEC3; Wed, 8 Jun 2016 11:11:22 +0200 (CEST) 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 o9Hei2jka3IW; Wed, 8 Jun 2016 11:11:20 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id D661AEE9A; Wed, 8 Jun 2016 11:11:20 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 055DBEE86 for ; Wed, 8 Jun 2016 11:11:20 +0200 (CEST) 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 z4krUNegv25J for ; Wed, 8 Jun 2016 11:11:19 +0200 (CEST) Original-Received: from mail-wm0-f49.google.com (mail-wm0-f49.google.com [74.125.82.49]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 83DE3EE51 for ; Wed, 8 Jun 2016 11:11:09 +0200 (CEST) Original-Received: by mail-wm0-f49.google.com with SMTP id v199so53969002wmv.0 for ; Wed, 08 Jun 2016 02:11:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to; bh=Uqmj5wrOl9X9zsebSVOYbmw6uj+5Sn+vOhRKDiF31Qg=; b=VBsnF4gMHGUy+P4ZN4QRibzbnc+zvn0EVAXmP3Xbzpl2CFPiLp7bQQoc5bSX+2r8qi UBuSq1goV/dONv1tx1qdGDeFrn1C+zFVX+kWYtZKWuZUL5avAfad2O0nWmjP2M98Beoq ci4MDV+EBQyjmiTmY074tyFbv+j7XJIsrKnS9h+u7olENQl2E0YeelOYbpf4XoezJwpG 0DHWALwKI4iXc3DwsKx50+8tho9d1TaRYT9else59lpiEQMmoRKLegzlYzUwl+rzpLqb BBJ1C2olXaDMiTuTAUiXsVxCkYr6XGiPcd9aerUJ+4xBn8SrK9wnfEidY9uRwr8yEFZN Nt5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to; bh=Uqmj5wrOl9X9zsebSVOYbmw6uj+5Sn+vOhRKDiF31Qg=; b=WZA0m1JWx6nphhkYwSn1SDJw1O55+GEaKHuc2mVPdnGSnowHYlaJz5ji+7Br/NfBBp GWgVmXtEPMWZt305EYjvhUwm5DoAQuVycmYdvFIcFgRqYQGy69cFx2Z3WnkqG+9LT2DC 4tts9XL8PLz65CWbVCGBEwLJ2on6cHqhjk+pEtXiw/YgzyvYVsaf78eQIM1x2qldNXP8 XQt2OBnycCgaTzSKX/qXz5gmCd4YLgA3RRsmuFkrnTvnIUmXELcCMP/XIpkgtADri/Qr K0IJXRUaAKH2CAa0pGapjJEYPW+mi3uwwjttx8ZcgQoXzMBvPjrkpY0lwP05jbLNbgBc Cftw== X-Gm-Message-State: ALyK8tJJxgm+7yi834N19t4dSxcliQZYD5w5h8RHMqKyOd0L840/K9IWA5K20a1em4RxBg== X-Received: by 10.28.147.19 with SMTP id v19mr6788138wmd.13.1465377069090; Wed, 08 Jun 2016 02:11:09 -0700 (PDT) Original-Received: from keima.localdomain (x2f2b396.dyn.telefonica.de. [2.242.179.150]) by smtp.gmail.com with ESMTPSA id y6sm23637611wmy.8.2016.06.08.02.11.08 for (version=TLSv1/SSLv3 cipher=OTHER); Wed, 08 Jun 2016 02:11:08 -0700 (PDT) User-Agent: Postbox 4.0.8 (Macintosh/20151105) In-Reply-To: <5757D8CA.2070003@fehige.de> X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 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.org gmane.comp.tex.context:95119 Archived-At: This is a multi-part message in MIME format. --===============6322799849618010015== Content-Type: multipart/alternative; boundary="------------000204030003090009000200" This is a multi-part message in MIME format. --------------000204030003090009000200 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable > Thomas Fehige > 8. Juni 2016 um 10:35 > Nevertheless, I prefer to keep all the font and fontsize definitions=20 > and tweaks together in the preamble. This poster is not the only work=20 > I'm planning to do in ConTeXt, and I need to learn to swim while=20 > already in the water ;) . For short texts where you want a certain style and size (e.g. a title=20 page or a poster with few words) \definedfont is the recommended method,=20 for larger amounts of the text (e.g. the abstract of a book) you can use=20 \switchtobodyfont to change the size. > Meanwhile I found the command \definebodyfontswitch and defined=20 > switches like \normalsize, \scriptsize, \large, \Large etc. The \definebodyfontswitch creates only a command which uses=20 \switchtobodyfont with a fixed number of arguments. > But this doesn't explain why \definebodyfontenvironment did not do=20 > anything in my MNWE. The fonts book is not very clear on its intended=20 > use. You put spaces before and after =3D which aren=E2=80=99t allowed there. \definebodyfontenvironment [24pt] [ small=3D22pt, big=3D28pt, x=3D22pt, xx=3D16pt, a=3D30pt, b=3D40pt, c=3D50pt, d=3D60pt, interlinespace=3D30pt, em=3Ditalic] \setupbodyfont[palatino,24pt] \starttext \startlines \tf tf {\tfa tfa} {\tfb tfb} {\tfc tfc} {\tfd tfd} {\tfx tfx} {\tfxx tfxx} \stoplines \stoptext Wolfgang --------------000204030003090009000200 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
8.= =20 Juni 2016 um 10:35
Neverth= eless, I prefer to keep all the font and fontsize definitions and=20 tweaks together in the preamble. This poster is not the only work I'm=20 planning to do in ConTeXt, and I need to learn to swim while already in=20 the water ;) .
For short texts where you want a certain style and size (e.g. a title=20 page or a poster with few words) \definedfont is the recommended method, for larger amounts of the text (e.g. the abstract of a book) you can=20 use \switchtobodyfont to change the size.
Meanwhi= le I found the command \definebodyfontswitch and defined switches=20 like \normalsize, \scriptsize, \large, \Large etc.
The \definebodyfontswitch creates only a command which uses=20 \switchtobodyfont with a fixed number of arguments.
But this doesn't explain why= =20 \definebodyfontenvironment did not do=20 anything in my MNWE. The fonts book is not very clear on its intended=20 use.
You put spaces before and after =3D which aren=E2=80=99t allowed there.
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\tfx=C2=A0 tfx}
{\tfxx tfxx}
\stoplines

\stoptext

Wolfgang
--------------000204030003090009000200-- --===============6322799849618010015== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly90ZXguYWFuaGV0Lm5ldAphcmNoaXZlICA6IGh0dHA6Ly9mb3VuZHJ5LnN1cGVsZWMu ZnIvcHJvamVjdHMvY29udGV4dHJldi8Kd2lraSAgICAgOiBodHRwOi8vY29udGV4dGdhcmRlbi5u ZXQKX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX18= --===============6322799849618010015==--