[NTG-context] Rule in column sets

2008-03-05 Thread Bart Wise
Is there a way to get a rule between the columns of a column set?

Thanks,
Bart
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Rule in column sets

2008-03-05 Thread Wolfgang Schuster
On Wed, 5 Mar 2008 12:43:11 -0700
Bart Wise [EMAIL PROTECTED] wrote:

 Is there a way to get a rule between the columns of a column set?

It looks like there is no build in command to enable arule between the
column but you could use MetaPost to draw a background for every column.

\usemodule[visual]

\definecolumnset[example][n=4,distance=5mm]

\startuseMPgraphic{columnrule}
path p ; p := unitsquare xyscaled (OverlayWidth+5mm,OverlayHeight) ;
draw lrcorner p -- urcorner p ;
setbounds currentpicture to p ;
\stopuseMPgraphic

\defineoverlay[columnrule][\useMPgraphic{columnrule}]

\setupcolumnset[example][1,2,3][background=columnrule]

\starttext

\startcolumnset[example]
\dorecurse{30}{\fakewords{50}{100}}
\stopcolumnset

\stoptext

Greetings
Wolfgang
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Rule in column sets

2008-03-05 Thread Bart Wise
It works! Thanks Wolfgang.

On Wednesday March 5 2008, Wolfgang Schuster wrote:
 \usemodule[visual]

 \definecolumnset[example][n=4,distance=5mm]

 \startuseMPgraphic{columnrule}
 path p ; p := unitsquare xyscaled (OverlayWidth+5mm,OverlayHeight) ;
 draw lrcorner p -- urcorner p ;
 setbounds currentpicture to p ;
 \stopuseMPgraphic

 \defineoverlay[columnrule][\useMPgraphic{columnrule}]

 \setupcolumnset[example][1,2,3][background=columnrule]

 \starttext

 \startcolumnset[example]
 \dorecurse{30}{\fakewords{50}{100}}
 \stopcolumnset

 \stoptext
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___