ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Dashed and dotted lines
@ 2009-10-27 14:45 Steffen Wolfrum
  2009-10-30  9:04 ` Wolfgang Schuster
  0 siblings, 1 reply; 2+ messages in thread
From: Steffen Wolfrum @ 2009-10-27 14:45 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi,

does someone has a solution for setting dashed and dotted lines in  
TABLE?


Steffen (who doesn't do metafun coding)
___________________________________________________________________________________
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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: Dashed and dotted lines
  2009-10-27 14:45 Dashed and dotted lines Steffen Wolfrum
@ 2009-10-30  9:04 ` Wolfgang Schuster
  0 siblings, 0 replies; 2+ messages in thread
From: Wolfgang Schuster @ 2009-10-30  9:04 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 27.10.2009 um 15:45 schrieb Steffen Wolfrum:

> Hi,
>
> does someone has a solution for setting dashed and dotted lines in  
> TABLE?

\startuniqueMPgraphic{dottedline:top}
draw topboundary OverlayBox
   dashed withdots
   withcolor red
   withpen pencircle scaled 2 ;
setbounds currentpicture to OverlayBox ;
\stopuniqueMPgraphic

\startuniqueMPgraphic{dashedline:bottom}
draw bottomboundary OverlayBox
   dashed evenly
   withcolor blue
   withpen pencircle scaled 2 ;
setbounds currentpicture to OverlayBox ;
\stopuniqueMPgraphic

\startuniqueMPgraphic{dashedline:left}
draw leftboundary OverlayBox
   dashed dashpattern(on 3mm off 3mm)
   withcolor green
   withpen pencircle scaled 2 ;
setbounds currentpicture to OverlayBox ;
\stopuniqueMPgraphic

\startuniqueMPgraphic{solidline:bottomright}
draw origin--(OverlayWidth,0)--(OverlayWidth,OverlayHeight)
   withpen pencircle scaled 2 ;
setbounds currentpicture to OverlayBox ;
\stopuniqueMPgraphic

\defineoverlay[dottedline:top]       [\uniqueMPgraphic{dottedline:top}]
\defineoverlay[dashedline:bottom]    [\uniqueMPgraphic 
{dashedline:bottom}]
\defineoverlay[dashedline:left]      [\uniqueMPgraphic{dashedline:left}]
\defineoverlay[solidline:bottomright][\uniqueMPgraphic 
{solidline:bottomright}]

\setupTABLE[frame=off]
\setupTABLE[1][1][background=dottedline:top]
\setupTABLE[2][1][background=dashedline:bottom]
\setupTABLE[1][2][background=dashedline:left]
\setupTABLE[2][2][background=solidline:bottomright]

\starttext

\bTABLE
\bTR\bTD\input knuth \eTD\bTD\input ward \eTD\eTR
\bTR\bTD\input knuth \eTD\bTD\input ward \eTD\eTR
\eTABLE

\stoptext

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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

end of thread, other threads:[~2009-10-30  9:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-10-27 14:45 Dashed and dotted lines Steffen Wolfrum
2009-10-30  9:04 ` Wolfgang Schuster

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