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] Strange interaction of \chapter and \AutoDroppedCaps

2005-02-21 Thread Slawek Zak
On Sat, Feb 19, 2005 at 04:06:56PM +0100, Hans Hagen wrote:
 Slawek Zak wrote:
 Hi,
 
 In this document:
 
 \setupindenting[medium]
 \setupwhitespace[medium]
 \setupbodyfont[16pt]
 
 \starttext
 \chapter{This is a test}
 
 \AutoDroppedCaps \input tufte
 
 \input tufte
 \stoptext
 
 I get output attached in gif file. It works fine without \chapter before. 
 Any
 thoughts?
 
 can you try
 
 \unprotect
 
 \ifx\keeplinestogether\undefined
   \let\keeplinestogether\gobbleoneargument
 \fi

[...]

 btw, high level interface:
 
 \setupindenting[medium] \setupwhitespace[medium]
 
 \setupinitial[state=start,n=3]
 \definefontsynonym[Initial][SerifBold]
 
 \placeinitial \dorecurse{3}{\input tufte \endgraf}

Tried that. Same problem. Should I patch the original ConTeXt file? I just put
your code in the document. Sorry for a lame question.

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


[NTG-context] Strange interaction of \chapter and \AutoDroppedCaps

2005-02-18 Thread Slawek Zak
Hi,

In this document:

\setupindenting[medium]
\setupwhitespace[medium]
\setupbodyfont[16pt]

\starttext
\chapter{This is a test}

\AutoDroppedCaps \input tufte

\input tufte
\stoptext

I get output attached in gif file. It works fine without \chapter before. Any
thoughts?

Regards, /S
attachment: autodropped.gif___
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 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