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