* How to define the font size of the page header? [not found] <CAGv42-EQ1GDzvxOBh6UD1Ds8b+Sa-OxbWvnPiZwhB_mFQ1R_fg@mail.gmail.com> @ 2019-11-06 2:15 ` Kerry Sainsbury 2019-11-06 7:46 ` Pablo Rodriguez 2019-11-06 10:49 ` Wolfgang Schuster 0 siblings, 2 replies; 5+ messages in thread From: Kerry Sainsbury @ 2019-11-06 2:15 UTC (permalink / raw) To: mailing list for ConTeXt users [-- 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: How to define the font size of the page header? 2019-11-06 2:15 ` How to define the font size of the page header? Kerry Sainsbury @ 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 1 sibling, 2 replies; 5+ messages in thread From: Pablo Rodriguez @ 2019-11-06 7:46 UTC (permalink / raw) To: mailing list for ConTeXt users 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 ___________________________________________________________________________________ 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: How to define the font size of the page header? 2019-11-06 7:46 ` Pablo Rodriguez @ 2019-11-06 10:09 ` Kerry Sainsbury 2019-11-06 21:04 ` Wolfgang Schuster 1 sibling, 0 replies; 5+ messages in thread From: Kerry Sainsbury @ 2019-11-06 10:09 UTC (permalink / raw) To: mailing list for ConTeXt users [-- Attachment #1.1: Type: text/plain, Size: 1994 bytes --] 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 <oinos@gmx.es> wrote: > 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 > > ___________________________________________________________________________________ > 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 > > ___________________________________________________________________________________ > [-- Attachment #1.2: Type: text/html, Size: 3973 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: How to define the font size of the page header? 2019-11-06 7:46 ` Pablo Rodriguez 2019-11-06 10:09 ` Kerry Sainsbury @ 2019-11-06 21:04 ` Wolfgang Schuster 1 sibling, 0 replies; 5+ messages in thread From: Wolfgang Schuster @ 2019-11-06 21:04 UTC (permalink / raw) To: mailing list for ConTeXt users, Pablo Rodriguez 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 ___________________________________________________________________________________ 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: How to define the font size of the page header? 2019-11-06 2:15 ` How to define the font size of the page header? Kerry Sainsbury 2019-11-06 7:46 ` Pablo Rodriguez @ 2019-11-06 10:49 ` Wolfgang Schuster 1 sibling, 0 replies; 5+ messages in thread From: Wolfgang Schuster @ 2019-11-06 10:49 UTC (permalink / raw) To: mailing users, Kerry Sainsbury [-- Attachment #1.1: Type: text/plain, Size: 1134 bytes --] 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 [-- Attachment #1.2: Type: text/html, Size: 6294 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2019-11-06 21:04 UTC | newest] Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- [not found] <CAGv42-EQ1GDzvxOBh6UD1Ds8b+Sa-OxbWvnPiZwhB_mFQ1R_fg@mail.gmail.com> 2019-11-06 2:15 ` How to define the font size of the page header? Kerry Sainsbury 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
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).