From: Hans Hagen <pragma@wxs.nl>
Subject: Re: MetaPost backgrounds
Date: Mon, 11 Aug 2003 14:30:28 +0200 [thread overview]
Message-ID: <5.2.0.9.1.20030811142835.01941ec0@server-1> (raw)
In-Reply-To: <20030810093048.5d6fc12b.md9per@mdstud.chalmers.se>
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
-------------------------------------------------------------------------
prev parent reply other threads:[~2003-08-11 12:30 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20030810093048.5d6fc12b.md9per@mdstud.chalmers.se>
[not found] ` <20030810205058.278afdf2.morawski@gmx.net>
2003-08-10 21:59 ` Mikael Persson
2003-08-11 12:30 ` Hans Hagen [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=5.2.0.9.1.20030811142835.01941ec0@server-1 \
--to=pragma@wxs.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).