From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/105434 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Kerry Sainsbury Newsgroups: gmane.comp.tex.context Subject: How to define the font size of the page header? Date: Wed, 6 Nov 2019 15:15:26 +1300 Message-ID: References: Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============3247698773862787362==" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="25921"; mail-complaints-to="usenet@blaine.gmane.org" To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Nov 06 03:16:06 2019 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 blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iSAre-0006ao-0G for gctc-ntg-context-518@m.gmane.org; Wed, 06 Nov 2019 03:16:06 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id B52C1162A84; Wed, 6 Nov 2019 03:15:43 +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 GZUy5RwFd_ov; Wed, 6 Nov 2019 03:15:42 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id B7D5B162AA3; Wed, 6 Nov 2019 03:15:42 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id ED877162AA1 for ; Wed, 6 Nov 2019 03:15:41 +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 bbmpDo7qOzA5 for ; Wed, 6 Nov 2019 03:15:41 +0100 (CET) Received-SPF: None (mailfrom) identity=mailfrom; client-ip=209.85.167.46; helo=mail-lf1-f46.google.com; envelope-from=kerry@fidelma.com; receiver= Original-Received: from mail-lf1-f46.google.com (mail-lf1-f46.google.com [209.85.167.46]) (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 2A0B7162A84 for ; Wed, 6 Nov 2019 03:15:41 +0100 (CET) Original-Received: by mail-lf1-f46.google.com with SMTP id v8so16677486lfa.12 for ; Tue, 05 Nov 2019 18:15:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fidelma-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=VQNr5LoVXWoaO5ExFu+LXeUyarPcnx1gpGbIeyDOPss=; b=uzDHEra1iQWTevO/TDCOFcW7fTH3f56UZmDofycccsPCNQ61Wh6vrKKbkd/FFFpf0r 0P3m83TNZqSgQd1+MEc4VOJTr1AUcnnF1HPeDRGLKvJnfwk5ZKZwnM6oSUlPIpqM1JvH yO3DfJ2UrUgGXCCkl+m/ahpoA//V/9sfX5BhjawclhvBRZ++RsCo6zgkargHgXuHbUNF Z95lH7f0/YRa5tBYnZ3MwuMAQH10jSLC8l8uaiaJgvatcfNMNIrSFfQyvLejYH2of2Yi /XXBsm1qjo8qNtng5/OupqCaFkaUss60eSytJz4ylkm4yK3ax7PAQ3p1DRu7WCKWN6Cl xq3g== 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=VQNr5LoVXWoaO5ExFu+LXeUyarPcnx1gpGbIeyDOPss=; b=AmwH/ysn35FimqVB/X6yfYf15xeOXEr/jru/Lemtdu/OSh0SIXx5brpGF2pDFdDXPb NUgGACSKVSeqvCh5jfyiSyyf+XrveFay5ssBUil7TqAcPPZOA+FlpvzVik494uFfOuXZ +zC87ps0BDxgMQmFnA3qXtP6bPBCaWoMGaAU3KZU6iT1PocIMTkbWwRXmMsHhBGOD2lz UOctTyRQaKfJPIv1bEZGyuiMEAoURhF8yhLRFCjP+nNoIs8CMgMyVaQsabkseoaiBAe6 gA7N0HByhquytS3cXyX2v6oxNRBnTgmsrR+fIlEN4/9R+FkEQ7i/V0FxM6RexIpvoRXT cK3g== X-Gm-Message-State: APjAAAUBycWmyF0rjfcohpl5/3Tw5t5sza7n34uRPyzcTVrMPrY3lP1g NvWRs5ixskLiJDTQw0IPO0vePSb/8Ti4WeDzvnKQHCsE X-Google-Smtp-Source: APXvYqxb/towkQs1auUE7hpsh9Waf8mOki5vmN+XCGWA6B7+xAyn53nwSuaf/cyAU4YzKfmYtEuvDE182jdRbTcDFRY= X-Received: by 2002:ac2:5930:: with SMTP id v16mr4026416lfi.67.1573006540162; Tue, 05 Nov 2019 18:15:40 -0800 (PST) In-Reply-To: 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.org gmane.comp.tex.context:105434 Archived-At: --===============3247698773862787362== Content-Type: multipart/alternative; boundary="0000000000000e5cdf0596a4208d" --0000000000000e5cdf0596a4208d Content-Type: text/plain; charset="UTF-8" Hi Folks, Sorry for the constant interruptions, but I can't find an answer in any of the many PDFs or webpages I can find. How do I define the font size of the page header? If I'm not using a custom font, I can call \switchbodyfont prior to calling \setuplayouttext, which, if I'm honest, seems weird, but it doesn't work if I use a custom font. eg: \definefontfamily [dejavu] [serif] [DejaVu Serif] \definefontfamily [dejavu] [sans] [DejaVu Sans] % Uncomment this and the page header font size drops dramatically. % \setupbodyfont[dejavu] % This seems to define the size of the page header, if \setpbodyfont is not called. \switchtobodyfont[50pt] \setuplayouttext [header][text] [ style=small, middletext=Page Header, righttext=\pagenumber, rightstyle=bold ] \switchtobodyfont[8pt] \starttext \input ward.tex \stoptext I half expected the 'style' property to be involved in this, but I can't get that to do anything either :-( How do I define the font size in a page header defined using \setuplayouttext ? Thanks! Kerry --0000000000000e5cdf0596a4208d Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi Folks,=

Sorry for the constant interruptions, but I can&#= 39;t find an answer in any of the many PDFs or webpages I can find.

How do I define the font size of the page header? If I= 9;m not using a custom font, I can call \switchbodyfont prior to calling \s= etuplayouttext, which, if I'm honest, seems weird, but it doesn't w= ork if I use a custom font. eg:

\definefontfamily [dejavu] [serif]= [DejaVu Serif]

= \definefontfamily [d= ejavu] [sans] [DejaVu Sans]

=

% Uncomment this and the page = header font size drops dramatically.

= % \setupbodyfont[dej= avu]

=

= % This seems to defi= ne the size of the page header, if \setpbodyfont is not called.

= \switchtobodyfont[50= pt]

=

= \setuplayouttext

= [header][text]

= [

<= font size=3D"2">

= style=3Dsmall,

= middletext=3DPage = Header,

= righttext=3D\pagen= umber,

= rightstyle=3Dbold<= /span>

= ]

=

=

= \switchtobodyfont[8p= t]

=

= \starttext

= \input ward.tex

= \stoptext



I half expected the= 'style' property to be involved in this, but I can't get that = to do anything either :-(


How do I define the font size in a page header defined using=20 \setuplayouttext ?


<= p style=3D"margin:0px;text-indent:0px;white-space:pre-wrap">Thanks!

Kerry

=

--0000000000000e5cdf0596a4208d-- --===============3247698773862787362== 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== --===============3247698773862787362==--