On 22-7-2010 3:50, Andreas Harder wrote:
\definetextbackground [test] [location=paragraph, % frame=off, % -> no round corners anymore corner=round, % -> corner=1|2|3… would be nice leftoffset=.5\bodyfontsize, rightoffset=.5\bodyfontsize, topoffset=.5\bodyfontsize, bottomoffset=.5\bodyfontsize]
\setuphead [subject] [after=, command=\MyHead]
\def\MyHead#1#2% {\framed [background=color, backgroundcolor=gray, frame=off, offset=.5\bodyfontsize, corner=3]{#1#2}}
\starttext \subject{Test} \starttest \input tufte \stoptest \stoptext
\setuphead [subject] [after=\nointerlineskip, command=\MyHead] -- ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------