ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Framed text splitting over pages
@ 2005-02-16 11:05 Slawek Zak
  2005-02-16 11:26 ` Hans Hagen
  0 siblings, 1 reply; 7+ messages in thread
From: Slawek Zak @ 2005-02-16 11:05 UTC (permalink / raw)


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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Framed text splitting over pages
  2005-02-16 11:05 Framed text splitting over pages Slawek Zak
@ 2005-02-16 11:26 ` Hans Hagen
  2005-02-16 12:41   ` Slawek Zak
  2005-02-16 12:51   ` Slawek Zak
  0 siblings, 2 replies; 7+ messages in thread
From: Hans Hagen @ 2005-02-16 11:26 UTC (permalink / raw)


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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Framed text splitting over pages
  2005-02-16 11:26 ` Hans Hagen
@ 2005-02-16 12:41   ` Slawek Zak
  2005-02-16 12:51   ` Slawek Zak
  1 sibling, 0 replies; 7+ messages in thread
From: Slawek Zak @ 2005-02-16 12:41 UTC (permalink / raw)


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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Framed text splitting over pages
  2005-02-16 11:26 ` Hans Hagen
  2005-02-16 12:41   ` Slawek Zak
@ 2005-02-16 12:51   ` Slawek Zak
  2005-02-16 13:28     ` Hans Hagen
  2005-02-16 14:56     ` Footnote alignment and number style Jack M. Lyon
  1 sibling, 2 replies; 7+ messages in thread
From: Slawek Zak @ 2005-02-16 12:51 UTC (permalink / raw)


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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Framed text splitting over pages
  2005-02-16 12:51   ` Slawek Zak
@ 2005-02-16 13:28     ` Hans Hagen
  2005-02-17  8:51       ` Slawek Zak
  2005-02-16 14:56     ` Footnote alignment and number style Jack M. Lyon
  1 sibling, 1 reply; 7+ messages in thread
From: Hans Hagen @ 2005-02-16 13:28 UTC (permalink / raw)


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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Footnote alignment and number style
  2005-02-16 12:51   ` Slawek Zak
  2005-02-16 13:28     ` Hans Hagen
@ 2005-02-16 14:56     ` Jack M. Lyon
  1 sibling, 0 replies; 7+ messages in thread
From: Jack M. Lyon @ 2005-02-16 14:56 UTC (permalink / raw)


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
___________________________________________________

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Framed text splitting over pages
  2005-02-16 13:28     ` Hans Hagen
@ 2005-02-17  8:51       ` Slawek Zak
  0 siblings, 0 replies; 7+ messages in thread
From: Slawek Zak @ 2005-02-17  8:51 UTC (permalink / raw)


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

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2005-02-17  8:51 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-02-16 11:05 Framed text splitting over pages Slawek Zak
2005-02-16 11:26 ` Hans Hagen
2005-02-16 12:41   ` Slawek Zak
2005-02-16 12:51   ` Slawek Zak
2005-02-16 13:28     ` Hans Hagen
2005-02-17  8:51       ` Slawek Zak
2005-02-16 14:56     ` Footnote alignment and number style Jack M. Lyon

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).