How to define the font size of the page header?
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
On 11/6/19 3:15 AM, Kerry Sainsbury wrote:
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?
Hi Kerry, use the following: \setupheadertexts[Pagenumber][pagenumber] \setupheader[style=\bfd] I hope it helps, Pablo PS: I don’t know why \setuplayouttext doesn’t work, but you invoke some options that don’t seem to exist (http://www.pragma-ade.com/general/qrcs/setup-en.pdf#search=setuplayouttext). -- http://www.ousia.tk
Hi Pablo,
Thanks for the response. I used \setuplayouttext specifically because it
supports the 'middletext' property (despite the fact that it doesn't seem
to be documented! I found 'middletext' in an August posting from Hans Hagen
( https://www.mail-archive.com/ntg-context@ntg.nl/msg91755.html )
Anyway, thanks to your prodding I have resolved the problem. I hadn't
realised that the calls to \setupheadertexts were cumulative. ie: I can
just do this:
\setupheadertexts[My Page Header]
\setupheadertexts[][pagenumber]
It seems odd that I can't explicitly specify a font size, but that's fine
\tfxx will just have to do.
Thanks again.
Kerry
PS: I promise the dumb questions will stop soon :-)
On Wed, 6 Nov 2019 at 20:46, Pablo Rodriguez
On 11/6/19 3:15 AM, Kerry Sainsbury wrote:
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?
Hi Kerry,
use the following:
\setupheadertexts[Pagenumber][pagenumber] \setupheader[style=\bfd]
I hope it helps,
Pablo
PS: I don’t know why \setuplayouttext doesn’t work, but you invoke some options that don’t seem to exist ( http://www.pragma-ade.com/general/qrcs/setup-en.pdf#search=setuplayouttext ).
--
___________________________________________________________________________________ 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
___________________________________________________________________________________
Pablo Rodriguez schrieb am 06.11.2019 um 08:46:
On 11/6/19 3:15 AM, Kerry Sainsbury wrote:
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? Hi Kerry,
use the following:
\setupheadertexts[Pagenumber][pagenumber] \setupheader[style=\bfd]
I hope it helps,
Pablo
PS: I don’t know why \setuplayouttext doesn’t work, but you invoke some options that don’t seem to exist (http://www.pragma-ade.com/general/qrcs/setup-en.pdf#search=setuplayouttext).
I forgot to add them but they exist since a long time, the only new feature is the possibility to set styles/color values for each entry when you use the keys. Wolfgang
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
participants (3)
-
Kerry Sainsbury
-
Pablo Rodriguez
-
Wolfgang Schuster