Re: [NTG-context] textbackground and margin

2006-05-19 Thread Aditya Mahajan
On Fri, 19 May 2006, Hans Hagen wrote:

> Aditya Mahajan wrote:
>> Hi Hans,
>>
>>   textbackground does not honour topoffset/bottomoffset at pagebreak.
>> Is this by design?
>>
> ss everywhere in tex, skipe at the bottom and top of a page disappear at a 
> pagebreak, and inserting it is tricky

Any appararent drawback of using the following approach...

\definetextbackground
   [test]
   [ location=paragraph,
 leftoffset=1em,
 before={\blank[1cm]},
 after={\blank[1cm]}]

\startuseMPgraphic{mpos:par:columnset}
   path p;
   for i = 1 upto nofmultipars  :
 p := multipars[1]  topenlarged 1cm bottomenlarged 1cm;
 fill p withcolor 0.9white ;
 draw p withcolor \MPvar{linecolor}
 withpen pencircle scaled \MPvar{linewidth};
   endfor;
\stopuseMPgraphic

\starttext

\input knuth \endgraf
\hairline \par
\starttextbackground[test]
\dorecurse{13}{\input knuth \endgraf}
\stoptextbackground
\hairline \par
\input knuth \endgraf

\stoptext

Aditya

-- 
Aditya Mahajan, EECS Systems, University of Michigan
http://www.eecs.umich.edu/~adityam || Ph: 7342624008
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] textbackground and margin

2006-05-19 Thread Hans Hagen
Aditya Mahajan wrote:
> Hi Hans,
>
>   textbackground does not honour topoffset/bottomoffset at pagebreak. 
> Is this by design?
>   
ss everywhere in tex, skipe at the bottom and top of a page disappear at a 
pagebreak, and inserting it is tricky 

Hans 

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] textbackground and margin

2006-05-19 Thread Aditya Mahajan
Hi Hans,

  textbackground does not honour topoffset/bottomoffset at pagebreak. 
Is this by design?

\definetextbackground
   [test]
   [  location=paragraph,
 rulethickness=1pt,
leftoffset=1em,
 topoffset=5cm,
  bottomoffset=5cm] % For test purposes
\starttext

\starttextbackground[test]
\dorecurse{15}{\input knuth \endgraf}
\stoptextbackground

\stoptext

Is there some parameter to adjust the offset before and after a 
pagebreak. (I want them to be same as bottomoffset and topoffset.)
Or should I take care of this in mpos:par:columnset with something 
like (pseudo code)

if nofmultipars > 1
  draw multipars[1] enlarge bottom by bottomoffset;
  for i = 2 upto nofmultipars:
   draw multipars[i]
 enlarge top by topoffset enlarge bottom by bottomoffset;
  endfor;
endif;


Or is there some easier way to just I influence boxfilloffset for 
do_draw_par in core-mp.tex?


Thanks,
Aditya

-- 
Aditya Mahajan, EECS Systems, University of Michigan
http://www.eecs.umich.edu/~adityam || Ph: 7342624008
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context