* textbackground and margin
@ 2006-05-19 18:09 Aditya Mahajan
2006-05-19 18:35 ` Hans Hagen
0 siblings, 1 reply; 3+ messages in thread
From: Aditya Mahajan @ 2006-05-19 18:09 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: textbackground and margin
2006-05-19 18:09 textbackground and margin Aditya Mahajan
@ 2006-05-19 18:35 ` Hans Hagen
2006-05-19 21:43 ` Aditya Mahajan
0 siblings, 1 reply; 3+ messages in thread
From: Hans Hagen @ 2006-05-19 18:35 UTC (permalink / raw)
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
-----------------------------------------------------------------
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: textbackground and margin
2006-05-19 18:35 ` Hans Hagen
@ 2006-05-19 21:43 ` Aditya Mahajan
0 siblings, 0 replies; 3+ messages in thread
From: Aditya Mahajan @ 2006-05-19 21:43 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2006-05-19 21:43 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-05-19 18:09 textbackground and margin Aditya Mahajan
2006-05-19 18:35 ` Hans Hagen
2006-05-19 21:43 ` Aditya Mahajan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).