From: Wolfgang Schuster <schuster.wolfgang@googlemail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Dashed and dotted lines
Date: Fri, 30 Oct 2009 10:04:12 +0100 [thread overview]
Message-ID: <58220F8D-BEA9-4BB0-98D2-82FE09404628@googlemail.com> (raw)
In-Reply-To: <B40F33E6-9358-4F3A-8C01-D5C71ED4DA93@st.estfiles.de>
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
___________________________________________________________________________________
prev parent reply other threads:[~2009-10-30 9:04 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-27 14:45 Steffen Wolfrum
2009-10-30 9:04 ` Wolfgang Schuster [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=58220F8D-BEA9-4BB0-98D2-82FE09404628@googlemail.com \
--to=schuster.wolfgang@googlemail.com \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).