Re: [NTG-context] Framed text splitting over pages

2005-02-21 Thread Slawek Zak
On Wed, Feb 16, 2005 at 12:26:03PM +0100, Hans Hagen wrote:
 Slawek Zak wrote:
 
 I'd like to split some source code over a couple of pages. I'd like it
 to have distinct background and rounded frame around. 
 
 Search on google comes up with an email from Hans answering some
 fellow wanting the same thing, but the technique used was
 textbackgrounds which doesn't give me the frame, just the background.
 
 Is there any way to tickle framed+splitfloat or any other macro to
 achieve what I want?
 
 text background can have frames, and anything drawable by metapost; if you 
 can;t find it in details.pdf let me know; anyhow, the next one gives me a 
 frame and a background

It does in my case too, but \definetextbackground seems to ignore
framecorner=round parameter. I use ConTeXt ver: 2004.6.30  fmt: 2004.7.5. Too
old?

 (see core-pos.tex for the real dirty details and how to hook in your own mp 
 code)
 
 todo, excercise: only topline at first page and bottom line at last page 
 (not that hard -)

Doh. Would be cool to have. Not in this case though, as for rounded frames it
doesn't look right :)

Thanks for swift response Hans, /S
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Framed text splitting over pages

2005-02-17 Thread Slawek Zak
On Wed, Feb 16, 2005 at 02:28:55PM +0100, Hans Hagen wrote:
 It gives me frame too, but definetextbackground doesn't accept 
 framecorner=round
 
 \setupcolors[state=start]
 
 \definetextbackground[zak][state=start,corner=round,radius=10pt]

Argh. You got me here :)

gridtype=\getvalue{\??td#1\c!alternative},
filltype=\getvalue{\??td#1\c!background},
linetype=\getvalue{\??td#1\c!frame},
gridcolor=\getvalue{\??td#1\c!framecolor},
linecolor=\getvalue{\??td#1\c!framecolor},
fillcolor=\getvalue{\??td#1\c!backgroundcolor},
filloffset=\getvalue{\??td#1\c!backgroundoffset},
gridwidth=\getvalue{\??td#1\c!rulethickness},
linewidth=\getvalue{\??td#1\c!rulethickness},
lineradius=\getvalue{\??td#1\c!radius}}}%

Thanks for this. Will come handy.

Best Regards, /S
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Framed text splitting over pages

2005-02-16 Thread Slawek Zak
Hi,

I'd like to split some source code over a couple of pages. I'd like it
to have distinct background and rounded frame around. 

Search on google comes up with an email from Hans answering some
fellow wanting the same thing, but the technique used was
textbackgrounds which doesn't give me the frame, just the background.

Is there any way to tickle framed+splitfloat or any other macro to
achieve what I want?

Thanks in advance!

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


Re: [NTG-context] Framed text splitting over pages

2005-02-16 Thread Hans Hagen
Slawek Zak wrote:
I'd like to split some source code over a couple of pages. I'd like it
to have distinct background and rounded frame around. 

Search on google comes up with an email from Hans answering some
fellow wanting the same thing, but the technique used was
textbackgrounds which doesn't give me the frame, just the background.
Is there any way to tickle framed+splitfloat or any other macro to
achieve what I want?
text background can have frames, and anything drawable by metapost; if you can;t 
find it in details.pdf let me know; anyhow, the next one gives me a frame and a 
background

(see core-pos.tex for the real dirty details and how to hook in your own mp 
code)
todo, excercise: only topline at first page and bottom line at last page (not 
that hard -)

\setupcolors[state=start]
\definetextbackground[zak][state=start]
\starttext
\starttextbackground[zak]
\dorecurse{10}{\input bryson\endgraf}
\stoptextbackground
\stoptext
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


Re: [NTG-context] Framed text splitting over pages

2005-02-16 Thread Slawek Zak
On Wed, Feb 16, 2005 at 12:26:03PM +0100, Hans Hagen wrote:
 Slawek Zak wrote:
 
 I'd like to split some source code over a couple of pages. I'd like it
 to have distinct background and rounded frame around. 
 
 Search on google comes up with an email from Hans answering some
 fellow wanting the same thing, but the technique used was
 textbackgrounds which doesn't give me the frame, just the background.
 
 Is there any way to tickle framed+splitfloat or any other macro to
 achieve what I want?
 
 text background can have frames, and anything drawable by metapost; if you 
 can;t find it in details.pdf let me know; anyhow, the next one gives me a 
 frame and a background

It gives me frame too, but definetextbackground doesn't accept framecorner=round
parameter. I use ConTeXt ver: 2004.6.30  fmt: 2004.7.5. Is it too old?

{code snippet}
\definetextbackground[zak][state=start,framecolor=blue,framecorner=round]

 (see core-pos.tex for the real dirty details and how to hook in your own mp 
 code)
 
 todo, excercise: only topline at first page and bottom line at last page 
 (not that hard -)

Would work nicely. Not in this case though, as rounded frames would look rather
silly this way :)

Thanks for swift response Hans, /S
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context