ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Rule in column sets
@ 2008-03-05 19:43 Bart Wise
  2008-03-05 20:39 ` Wolfgang Schuster
  0 siblings, 1 reply; 3+ messages in thread
From: Bart Wise @ 2008-03-05 19:43 UTC (permalink / raw)
  To: ConTeXt ML

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
___________________________________________________________________________________


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

* Re: Rule in column sets
  2008-03-05 19:43 Rule in column sets Bart Wise
@ 2008-03-05 20:39 ` Wolfgang Schuster
  2008-03-05 21:50   ` Bart Wise
  0 siblings, 1 reply; 3+ messages in thread
From: Wolfgang Schuster @ 2008-03-05 20:39 UTC (permalink / raw)
  To: ntg-context

On Wed, 5 Mar 2008 12:43:11 -0700
Bart Wise <bntgcontext@wiseguysweb.com> 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
___________________________________________________________________________________


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

* Re: Rule in column sets
  2008-03-05 20:39 ` Wolfgang Schuster
@ 2008-03-05 21:50   ` Bart Wise
  0 siblings, 0 replies; 3+ messages in thread
From: Bart Wise @ 2008-03-05 21:50 UTC (permalink / raw)
  To: ntg-context

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
___________________________________________________________________________________


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

end of thread, other threads:[~2008-03-05 21:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-03-05 19:43 Rule in column sets Bart Wise
2008-03-05 20:39 ` Wolfgang Schuster
2008-03-05 21:50   ` Bart Wise

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