On 7/14/2013 8:54 PM, Marco Patzer wrote:
Hi,

overlays are not displayed when used as a background for
textbackground. Is this a bug or are overlays not supported?

in principle we can make it pluggable (given that there is some sensible way to pass info and real need for it)

\defineoverlay [myoverlay] [\ssd Foo]

\definetextbackground [mybackgroundColour]  [background=color, 
backgroundcolor=gray]
\definetextbackground [mybackgroundOverlay] [background=myoverlay]

\starttext
   %% overlay works
   \framed [background=myoverlay, align=normal] {\input knuth\par}

   %% background=color works
   \startmybackgroundColour
     \input knuth
   \stopmybackgroundColour

   %% overlay is missing
   \startmybackgroundOverlay
     \input knuth
   \stopmybackgroundOverlay
\stoptext

\definetextbackground [mybackgroundOverlay] [mp=mpos:region:whatever]

\startuseMPgraphic{mpos:region:whatever}
    for i=1 upto nofmultipars :
draw textext("\externalfigure[cow.pdf]") rotated 10 shifted center multipars[i] ;
    endfor ;
\stopuseMPgraphic

\starttext

  \startmybackgroundOverlay
        \dorecurse{10}{\input knuth \par}
  \stopmybackgroundOverlay

\stoptext


-----------------------------------------------------------------
                                          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
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________

Reply via email to