From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/105437 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: How to define the font size of the page header? Date: Wed, 6 Nov 2019 11:49:17 +0100 Message-ID: References: Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2638885078460567313==" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="239124"; mail-complaints-to="usenet@blaine.gmane.org" To: mailing users , Kerry Sainsbury Original-X-From: ntg-context-bounces@ntg.nl Wed Nov 06 11:50:18 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 1iSItD-001038-2N for gctc-ntg-context-518@m.gmane.org; Wed, 06 Nov 2019 11:50:15 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id DFDDD162AC7; Wed, 6 Nov 2019 11:49: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 UjZZAZuBc4EC; Wed, 6 Nov 2019 11:49:40 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 6C1E2162AD1; Wed, 6 Nov 2019 11:49:40 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 96A83162AC7 for ; Wed, 6 Nov 2019 11:49:38 +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 zrcq5SEECHbT for ; Wed, 6 Nov 2019 11:49:37 +0100 (CET) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.167.41; helo=mail-lf1-f41.google.com; envelope-from=wolfgang.schuster.lists@gmail.com; receiver= Original-Received: from mail-lf1-f41.google.com (mail-lf1-f41.google.com [209.85.167.41]) (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 290D1162884 for ; Wed, 6 Nov 2019 11:49:37 +0100 (CET) Original-Received: by mail-lf1-f41.google.com with SMTP id q28so17702740lfa.5 for ; Wed, 06 Nov 2019 02:49:37 -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=ht3Oas7ySoOSaWSrpURWzmnzw+kTKEB7vS1lW2znAqU=; b=Aoo7aGlQqUKpZDSmklW/ThI29sOSWIJWYRjkLjpfsotoHTtY+VWyZYexngZl/LVqUJ jB+BTZXoWHJ0sNG8hqOpYbtdFajPY3EhyUFUZwl97HWugA/Ow/WJ3TQTydWoT2mASbhm MTANKeFHNd53DWsFY136+9Inz1bryIOS8N5PhtyYi2wYJcxch5bxSZv7zgmMiPD2gQsd nXVEhr8ACOVgQ5u4A56pfCpIjoLx8WAvdsFGiNtUe3ugRNZGhrXtLG+JTHoyBPM6hnQb nXNPWLFNQaocDPDfu650QxXUGNxVxVgbpPY5BjUiaJqioqg7RzE0CBGJBxXHj1VMyr9S 1cKQ== 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=ht3Oas7ySoOSaWSrpURWzmnzw+kTKEB7vS1lW2znAqU=; b=Uo5xeRCsIQWkkFbyyD8EPhaqPJ0zukizZ6jYkyMLqNfwZ+bJYLeScRNQ38Wbjy15U1 GlZfhtX9U91it6fEijWCTF2qjPuNsEYeBc0Pm44OdlrptMxDNkkfGt9kwk2y9bTADQl7 gJARC/whsljDKB+jYWsHs1kQ2c+GIET9qXuUIT46WWdGi1fFVLPFFWvzvg+nPP6WIbSg UnHpMZD3eSDKqbdtUCFpLjnD7ymcxQXlA5k7sEcB4Vl0p1/UAx27kcA7lqlFJS43oEPc Z311dJkWeQdryVhsIQ0VBiNhnOr0SVUgnVfy0WMFURnylALjZrJ8uydzRxQyx9HGvxJ3 49FA== X-Gm-Message-State: APjAAAVCnSNdtdwFnULZUNQoPCXucP1ZqcxyDqEdEjLBV6gfV/CSEMQ9 d5g+wxYg5Y3Vgt0kCkwePBV64XKsZlJ880XCNW1awA== X-Google-Smtp-Source: APXvYqz1Y3owBgo7M5Iohmw0V3oSJJyXl7MLNXgRes7d0P3I/SOr1DxMHpF6qiILMbJaTcGUkxJZ9gvI2f2XGp+MinE= X-Received: by 2002:a19:911c:: with SMTP id t28mr23234841lfd.84.1573037376065; Wed, 06 Nov 2019 02:49:36 -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:105437 Archived-At: --===============2638885078460567313== Content-Type: multipart/alternative; boundary="00000000000004d7890596ab4ef2" --00000000000004d7890596ab4ef2 Content-Type: text/plain; charset="UTF-8" Kerry Sainsbury schrieb am 06.11.2019 um 03:15: 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 \setupheader[style={\switchtobodyfont[8pt]}] Wolfgang --00000000000004d7890596ab4ef2 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Kerry Sainsbury schrieb am 06= .11.2019=20 um 03:15:
=20
Hi Folk= s,

Sorry for the constant interruptions, but I can't find an answer in any of= =20 the many PDFs or webpages I can find.

How do I=20 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 fon= t.=20 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 exp= ected the 'style' property to be involved in this, but I can't = get that to do anything either :-(

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


\setupheader[style=3D{\switchtobodyfont[8pt]}]

Wolfgang
--00000000000004d7890596ab4ef2-- --===============2638885078460567313== 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== --===============2638885078460567313==--