4 Jun
2012
4 Jun
'12
2:36 p.m.
On 2012-06-04 Marcin Borkowski
I'd like to put a few things, placed absolutely on the page. I thought that layers are a good tool,
They are :)
Assume that I want to have "Some text" near the top of the page and a huge "X" centered.
\setupbodyfont [lmodern] \setuppagenumbering [state=stop] \definefont [bkgfont] [Mono at 240mm] \setupbackgrounds [page] [background=bkg] \definelayer [bkg] \setlayerframed [bkg] [frame=off, height=50mm, width=\paperwidth, foregroundstyle=\ttx] {Some text} \setlayerframed [bkg] [frame=off, width=\paperwidth, foregroundstyle=\bkgfont] {X} \starttext\null \stoptext Since font loading is delayed until \starttext, you need to load a font when you set up your layers. Marco