On Thu, Jul 22, 2010 at 08:34:19PM +0200, Andreas Harder wrote:
Am 22.07.2010 um 16:37 schrieb Hans Hagen:
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]
Thank you Hans, that killed the space.
Greeting, Andreas
Something is now broken with textbackgrounds : metapost > loading 'metafun': /usr/local/context/beta/tex/texmf-context/metapost/context/base/metafun.mpiv ! terminal: ! Enormous number has been reduced. <*> ...6.0pt ; ; ; prepare_multi_pars(1,4661756 ,37662495,0,683329,265737,... ... 1 >> \definetextbackground 2 [test] 3 [location=paragraph, 4 frame=off, 5 leftoffset=.5\bodyfontsize, 6 rightoffset=.5\bodyfontsize, 7 topoffset=.5\bodyfontsize, 8 bottomoffset=.5\bodyfontsize] 9 10 \starttext 11 <inserted text> ...ainTextArea; ;;;;]===], false)} \processMPgraphic ...e ;\!!es , \MPaskedfigure )}} \egroup \placeMPgraphic \d... \useMPpositiongraphic ...tartMPcode #3\stopMPcode \egroup \doMPpositiongraphic ...riables \getvalue {MPG:#1} } \doMPpositiongraphic ...fined {MPG:#1}\donothing } \removelastspace }\smashbo... \dohandleMPpositiongraphicrange ...raphic {#3}{#4} \fi \fi ... l.17 \stoptext