From: Hans Hagen <pragma@wxs.nl>
Cc: ConTeXt mailing list <ntg-context@ntg.nl>
Subject: Re: choice for table material
Date: Wed, 04 Jul 2001 23:04:01 +0200 [thread overview]
Message-ID: <3.0.6.32.20010704230401.01022ac0@server-1> (raw)
In-Reply-To: <5.1.0.14.0.20010704215254.00aa2cd8@public.uni-hamburg.de>
At 10:21 PM 7/4/01 +0200, Eckhart Guthöhrlein wrote:
>At 18:23 04.07.2001 +0200, I wrote:
>>I am a bit confused about the different possibilities to typeset tables,
>>so let me first outline how I have understood things. If a table may be
>>split across pages, tabulate is the one to choose. If not, there are two
>>possibilities: table and TABLE. TABLE is the most recent development. Is
>>it principally more advanced and preferrable to table, which would mean
>>that table is there for backward compatibility reasons only, or are there
>>effects which can be achieved with table, but not with TABLE?
>
>Well, I have learned in the meantime, sorry if my posting was a bit
>premature. tabulate can very well be used for tables in floating objects,
>and it's interface is flexible and well documented, so it will probably
>become my preferred choice for now. TABLE is beta, and since the
>documentation is beta, too, it's perhaps a good idea to wait some time,
>especially if one is in a hurry to get things finished - like I am at
>present. But I must say that it looks like a very promising concept for the
>future.
Wanna see some wild things? Overlapping table cells with shaded backgrounds:
% output=pdftex
\starttext
will go into mp-core, was somehow lost
\startMPinclusions
def initialize_area (expr fn,fx,fy,fw,fh,fd,
tn,tx,ty,tw,th,td) =
numeric fpos ; fpos := 1 ; initialize_box_pos(fpos,fn,fx,fy,fw,fh,fd) ;
numeric tpos ; tpos := 2 ; initialize_box_pos(tpos,tn,tx,ty,tw,th,td) ;
do_initialize_area (fpos, tpos) ;
enddef ;
\stopMPinclusions
\setupbodyfont[pos,10pt]
\setupcolors[state=start]
\def\cw#1{\color[white]{#1}}
% this one uses metapost,
\def\TableShade#1#2%
{\startMPpositiongraphic{shade}
initialize_area(\MPpos{b:#1},\MPpos{e:#1}) ;
linear_shade(pxy,0,.4#2,.9#2) ;
anchor_area(\MPanchor{b:#1}) ;
\stopMPpositiongraphic
\MPpositiongraphic{shade}}
\dosetpositionaction{b:x}{\TableShade{x}{red}}
\dosetpositionaction{b:y}{\TableShade{y}{green}}
\dosetpositionaction{b:z}{\TableShade{z}{blue}}
% and this one doen't
%\definepositionframed[x][background=color,backgroundcolor=red]
%\definepositionframed[y][background=color,backgroundcolor=green]
%\definepositionframed[z][background=color,backgroundcolor=blue]
\starttabel[|c|c|c|]
\GFC[b:y] \cw{this is a small} \NC \cw{table} \NC in
which we \NC \FR
\NC \cw{will demonstrate} \GFC[c:z] \cw{that this} \GTC[c]
\cw{positioning} \NC \MR
\GSC[a:x] \cw{mechanism also} \GTC[b] \cw{works quite well} \NC in
tables \NC \LR
\stoptabel
\stoptext
PS. The mp stuff can move to any layer you want
-------------------------------------------------------------------------
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
-------------------------------------------------------------------------
next prev parent reply other threads:[~2001-07-04 21:04 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-07-04 16:23 Eckhart Guthöhrlein
2001-07-04 20:08 ` Hans Hagen
2001-07-04 20:32 ` Eckhart Guthöhrlein
2001-07-04 20:21 ` Eckhart Guthöhrlein
2001-07-04 21:04 ` Hans Hagen [this message]
2001-07-05 9:50 ` Numbered definitions Tarik Kara
2001-07-05 10:40 ` Eckhart Guthöhrlein
2001-07-05 12:13 ` Tarik Kara
2001-07-05 21:43 ` Hans Hagen
2001-07-05 11:24 ` Hans Hagen
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=3.0.6.32.20010704230401.01022ac0@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).