From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/12859 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: MetaPost backgrounds Date: Mon, 11 Aug 2003 14:30:28 +0200 Sender: ntg-context-admin@ntg.nl Message-ID: <5.2.0.9.1.20030811142835.01941ec0@server-1> References: <20030810093048.5d6fc12b.md9per@mdstud.chalmers.se> Reply-To: ntg-context@ntg.nl NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Trace: sea.gmane.org 1060606404 9973 80.91.224.253 (11 Aug 2003 12:53:24 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 11 Aug 2003 12:53:24 +0000 (UTC) Original-X-From: ntg-context-admin@ntg.nl Mon Aug 11 14:53:23 2003 Return-path: Original-Received: from ref.vet.uu.nl ([131.211.172.13] helo=ref.ntg.nl) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19mCAt-0001Td-00 for ; Mon, 11 Aug 2003 14:53:23 +0200 Original-Received: from ref.ntg.nl (localhost.localdomain [127.0.0.1]) by ref.ntg.nl (Postfix) with ESMTP id EF86310B39; Mon, 11 Aug 2003 14:53:19 +0200 (MEST) Original-Received: from mail.solcon.net (mail.solcon.net [212.45.33.5]) by ref.ntg.nl (Postfix) with ESMTP id 94BF810AF1 for ; Mon, 11 Aug 2003 14:41:59 +0200 (MEST) Original-Received: from server-1.pragma-net.nl (dsl-212-84-128-085.solcon.nl [212.84.128.85]) by mail.solcon.net (8.11.6/8.9.3) with ESMTP id h7BCfre00486 for ; Mon, 11 Aug 2003 14:41:53 +0200 Original-Received: from laptop-3.wxs.nl (laptop-3.pragma-net [10.100.1.191]) by server-1.pragma-net.nl (Postfix) with ESMTP id 6250517AF8 for ; Mon, 11 Aug 2003 14:41:46 +0200 (CEST) X-Sender: hagen-mail@server-1 X-Mailer: QUALCOMM Windows Eudora Version 5.2.0.9 Original-To: ntg-context@ntg.nl In-Reply-To: <20030810093048.5d6fc12b.md9per@mdstud.chalmers.se> Errors-To: ntg-context-admin@ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.0.13 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.comp.tex.context:12859 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:12859 At 09:30 10/08/2003 +0200, you wrote: >Hi everybody! > >I had some problems with backgrounds in a table. I wanted just a >horizontal line, but in different heights. The problem is that the line >will always be in the middle of the cell if I don't add more graphics. >See the example file below. well, it's just framed what is in charge there, so you can use \setupTABLE[width=2cm,height=2cm] \bTABLE[align={middle,lohi}] \bTR\bTD Some text\hairline And some more text that will apear below the other text\eTD\bTD Some text above\hairline Some text below \eTD\eTR \eTABLE now, since spacing for a multiliner is suboptimal, you may put this in cont-new.tex: \def\vboxedhairline {\bgroup \dimen2=\ifboxhasoffset \localoffset \else \zeropoint \fi \dimen4=\dimen2 \advance\dimen4 \ruledlinewidth \setbox0\vbox {\advance\hsize 2\dimen4 \vskip\dimen2 \hrule \!!height\ruledlinewidth \!!depth\zeropoint \!!width\hsize \vskip\dimen2}% \endgraf\obeydepth\nointerlineskip \moveleft\dimen4\box0 \endgraf\nointerlineskip\localbegstrut \egroup} >\startuniqueMPgraphic{splittop} beware: unique graphics are reused, unless the mechanism is able to determine that something is different, see metafun Hans ------------------------------------------------------------------------- Hans Hagen | PRAGMA ADE | pragma@wxs.nl Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com ------------------------------------------------------------------------- information: http://www.pragma-ade.com/roadmap.pdf documentation: http://www.pragma-ade.com/showcase.pdf -------------------------------------------------------------------------