From: Kerry Sainsbury <kerry@fidelma.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: How to define the font size of the page header?
Date: Wed, 6 Nov 2019 15:15:26 +1300 [thread overview]
Message-ID: <CAGv42-EGKrktY10BmRqv9m1XVHOSQHzkXqVhwbVsbHEyAagQPg@mail.gmail.com> (raw)
In-Reply-To: <CAGv42-EQ1GDzvxOBh6UD1Ds8b+Sa-OxbWvnPiZwhB_mFQ1R_fg@mail.gmail.com>
[-- Attachment #1.1: Type: text/plain, Size: 1055 bytes --]
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
[-- Attachment #1.2: Type: text/html, Size: 6204 bytes --]
[-- Attachment #2: Type: text/plain, Size: 493 bytes --]
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
next parent reply other threads:[~2019-11-06 2:15 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CAGv42-EQ1GDzvxOBh6UD1Ds8b+Sa-OxbWvnPiZwhB_mFQ1R_fg@mail.gmail.com>
2019-11-06 2:15 ` Kerry Sainsbury [this message]
2019-11-06 7:46 ` Pablo Rodriguez
2019-11-06 10:09 ` Kerry Sainsbury
2019-11-06 21:04 ` Wolfgang Schuster
2019-11-06 10:49 ` Wolfgang Schuster
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAGv42-EGKrktY10BmRqv9m1XVHOSQHzkXqVhwbVsbHEyAagQPg@mail.gmail.com \
--to=kerry@fidelma.com \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).