Hello, how to center vertically and horizontally a \framed text at the layer origin?
I'm not able to figure it out...
Here's my code:
----
\setuplayout[page]
\definelayer[mybg]
\setlayer[mybg]
[x=\dimexpr.5\paperwidth\relax,y=\dimexpr.5\paperheight\relax,]
{\framed
[frame=on,offset=5mm,align={middle,lohi},width=fit,rulewidth=2mm,location=lohi,]
{%
\setupbodyfont[10mm,sans]%
\bf Some text%
}
}
\setupbackgrounds[page][background={mybg}]
\starttext
Hello, world!
\stoptext
----
And - where has the text "Hello, world!" disappeared?
Any help would be appreciated...
Best regards,
Lukas
--
Ing. Lukáš Procházka | mailto:[email protected]
Pontex s. r. o. | mailto:[email protected] | http://www.pontex.cz
Bezová 1658
147 14 Praha 4
Tel: +420 241 096 751
Fax: +420 244 461 038
D.mkiv
Description: Binary data
D.pdf
Description: Adobe PDF document
___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : [email protected] / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________
