![](https://secure.gravatar.com/avatar/d74a005d15346337e8ae1ea21e6a26df.jpg?s=120&d=mm&r=g)
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
![](https://secure.gravatar.com/avatar/49e63acb01f2ca80efce7eed08310ce8.jpg?s=120&d=mm&r=g)
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 -----------------------------------------------------------------
![](https://secure.gravatar.com/avatar/4aaecff175bfc66a1f316363cd9e2ba4.jpg?s=120&d=mm&r=g)
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
![](https://secure.gravatar.com/avatar/d74a005d15346337e8ae1ea21e6a26df.jpg?s=120&d=mm&r=g)
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
![](https://secure.gravatar.com/avatar/49e63acb01f2ca80efce7eed08310ce8.jpg?s=120&d=mm&r=g)
Hi
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?
ok, this is old functionality
{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 :)
\setupcolors[state=start] \definetextbackground[zak][state=start,corner=round,radius=10pt] \starttext \starttextbackground[zak] \dorecurse{10}{\input bryson\endgraf} \stoptextbackground \stoptext ps. these are the mappings to mp: 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}}}% ----------------------------------------------------------------- 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 -----------------------------------------------------------------
![](https://secure.gravatar.com/avatar/d74a005d15346337e8ae1ea21e6a26df.jpg?s=120&d=mm&r=g)
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
![](https://secure.gravatar.com/avatar/84e59c1fe71241ca8c9ec09ac6da28f8.jpg?s=120&d=mm&r=g)
Esteemed ConTeXters: One more question: ConTeXt displays footnotes like this (I'm using carets to indicate superscript): ---------------------------------------------------------------------- This is body text. And here is some more body text. ^1^ This is the text of a footnote. This is more text in the footnote. And here is more. ---------------------------------------------------------------------- What I would like to have is this: ---------------------------------------------------------------------- This is body text. And here is some more body text. 1. This is the text of a footnote. This is more text in the footnote. And here is more. ---------------------------------------------------------------------- That is: 1. A footnote number the same size as the footnote text. 2. The footnote number *not* raised. 3. The footnote number followed by a period and a space. 4. The footnote number indented. Is there a way to do this? I can't figure it out. Thanks so much for your help. Once I get everything worked out on all this, I'll post it to the wiki. Best wishes, Jack M. Lyon ___________________________________________________ The EDITORIUM Microsoft Word Add-Ins for Publishing Professionals http://www.editorium.com ___________________________________________________
participants (4)
-
Hans Hagen
-
Jack M. Lyon
-
Slawek Zak
-
Slawek Zak