From: Willi Egger <w.egger@boede.nl>
To: NTG-Context ConTeXt users <ntg-context@ntg.nl>
Subject: Troubles with backgrounds in bTABLE
Date: Wed, 4 Aug 2010 08:57:54 +0200 [thread overview]
Message-ID: <58990112-F231-4B66-86EF-DD44C4D8ED98@boede.nl> (raw)
[-- Attachment #1: Type: text/plain, Size: 816 bytes --]
Hi all,
I need to use the background mechanism to draw a thicker line in a bTABLE...eTABLE setup together with MKII.
It looks like that there is a bug somewhere in this. I am unable to draw the line at the top of the cell. However it is possible to draw a diagonal through the cel. I think that the problem is related to the background mechanism in general, because the problem is also present when using the background mechanism in framed. The behavior is identical in MKII en MKIV.
I updated this morning to the latest version of Context, the bug is there as it was in a version ca 1 month old.
Please refer to the attached test file.
Using:
This is pdfTeX, Version 3.1415926-1.40.11 (TeX Live 2010)
ConTeXt ver: 2010.08.04 00:37 MKII fmt: 2010.8.4 int: english/english
Kind regards
Willi
[-- Attachment #2: test-background.tex --]
[-- Type: application/octet-stream, Size: 824 bytes --]
\startuniqueMPgraphic{Topline}
path p,q;
p := unitsquare xscaled \overlaywidth yscaled \overlayheight;
draw urcorner p -- ulcorner p withpen pencircle scaled 2pt;
\stopuniqueMPgraphic
\startuniqueMPgraphic{Diagonal}
path p,q;
p := unitsquare xscaled \overlaywidth yscaled \overlayheight;
draw llcorner p -- urcorner p withpen pencircle scaled 2pt;
\stopuniqueMPgraphic
\defineoverlay[Topline][\useMPgraphic{Topline}]
\defineoverlay[Diagonal][\useMPgraphic{Diagonal}]
\starttext
\bTABLE
\setupTABLE[r][1][background=Topline]
\bTR
\bTD Test\ \eTD
\eTR
\bTR
\bTD Test\ \eTD
\eTR
\eTABLE
\blank
\framed[background=Topline]{test}
\blank
\bTABLE
\setupTABLE[r][1][background=Diagonal]
\bTR
\bTD Test\ \eTD
\eTR
\bTR
\bTD Test\ \eTD
\eTR
\eTABLE
\blank
\framed[background=Diagonal]{test}
\stoptext
[-- Attachment #3: Type: text/plain, Size: 486 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
next reply other threads:[~2010-08-04 6:57 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-04 6:57 Willi Egger [this message]
2010-08-04 7:32 ` Peter Münster
2010-08-04 7:38 ` Willi Egger
2010-08-04 7:45 ` Peter Rolf
2010-08-04 8:27 ` Willi Egger
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=58990112-F231-4B66-86EF-DD44C4D8ED98@boede.nl \
--to=w.egger@boede.nl \
--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).