Hi all, I've played with text backgrounds. Please have a look at the following example.
\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 There is a nasty little space between the two backgrounds. How can I avoid it? Further the left borders of the frame are not aligned. I appreciate your help. Andreas ___________________________________________________________________________________ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________