From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/19519 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: Re: good-looking tables in context Date: Fri, 01 Apr 2005 10:29:43 +0200 Message-ID: <424D0677.8090906@wxs.nl> References: <20050328142220.GC20329@cebitec.uni-bielefeld.de> <20050331141350.GC27010@cebitec.uni-bielefeld.de> <424C1DFA.6010708@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1112344345 10161 80.91.229.2 (1 Apr 2005 08:32:25 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 1 Apr 2005 08:32:25 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Fri Apr 01 10:32:23 2005 Return-path: Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by ciao.gmane.org with esmtp (Exim 4.43) id 1DHHZK-0004jY-Bq for gctc-ntg-context-518@m.gmane.org; Fri, 01 Apr 2005 10:31:54 +0200 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 40FFB127F9; Fri, 1 Apr 2005 10:33:13 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 13131-01; Fri, 1 Apr 2005 10:33:12 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 6E7BD127D4; Fri, 1 Apr 2005 10:29:46 +0200 (CEST) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id C3E27127D4 for ; Fri, 1 Apr 2005 10:29:44 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 12862-05 for ; Fri, 1 Apr 2005 10:29:43 +0200 (CEST) Original-Received: from mailrelay02.solcon.nl (maillb.solcon.nl [212.45.32.200]) by ronja.ntg.nl (Postfix) with ESMTP id DB943127CC for ; Fri, 1 Apr 2005 10:29:43 +0200 (CEST) Original-Received: from server-1.pragma-net.nl (dsl-212-84-128-085.solcon.nl [212.84.128.85]) by mailrelay02.solcon.nl (8.12.11/SQL-8.12.11-5/8.12.11) with ESMTP id j318TgUZ007785 for ; Fri, 1 Apr 2005 10:29:42 +0200 Original-Received: by server-1.pragma-net.nl (Postfix, from userid 65534) id B64DC18596; Fri, 1 Apr 2005 10:10:59 +0200 (CEST) Original-Received: from [10.100.1.54] (unknown [10.100.1.54]) by server-1.pragma-net.nl (Postfix) with ESMTP id 2E0DD17D59 for ; Fri, 1 Apr 2005 08:10:58 +0000 (UTC) User-Agent: Mozilla Thunderbird 0.8 (Windows/20040913) X-Accept-Language: en-us, en Original-To: mailing list for ConTeXt users In-Reply-To: X-Virus-Scanned: ClamAV 0.80/705/Fri Feb 11 17:51:32 2005 clamav-milter version 0.80j on mailrelay02 X-Virus-Status: Clean X-Virus-Scanned: by amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.5 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: by amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:19519 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:19519 Patrick Gundlach wrote: > There are commands like \toprule, \midrule, \bottomrule that insert > horizontal rules with different thickness (default values, optional > ones can be added with [..] right after the command). Eckhart has sent > an example in his first post. \starttable[|||] \HL[2] \NC test \NC test \NC \FR \HL[5] \NC test \NC test \NC \MR \HL[8] \NC test \NC test \NC \LR \HL[2] \stoptable > To get a horizontal rule from column a to column b you can (in LaTeX) > use: >=20 > \cmidrule[](){a=E2=80=93b} >=20 > where wd is the rulethickness, trim is where to cut off a bit, and a, > b the columns. This is a very nice command that I often use. \starttable[||||] \HL[2] \NC test \NC test \NC test \NC \FR \DC \DL[2] \DR \NC test \NC test \NC test \NC \MR \HL[8] \NC test \NC test \NC test \NC \LR \HL[2] \stoptable > \addlinespace addes a little space between rows.=20 we have \SR for that > Table preambles can be complicated... but the next one is pretty > simple: >=20 > \begin{tabular}{@{}rll*{22}cv{40em}@{}} >=20 > means: to the left of the table, there should be no whitespace (i.e. > the leftmost glyph of the table should be tight to the preceding > glyph) now, there is a right aligned column, two left aligned, 22 > centered columns and one type "v" and to the right there should be no > whitespace either. The column type v is defined like this \framed[offset=3Doverlay]{% \starttable[s0|s1r|l|l|*{2}{c}|] \NC right \NC left \NC left \NC one \NC two \AR \NC r \NC l \NC l \NC 1 \NC 2 \AR \stoptable } something is wrong with the format key defining mechanism and hooks; i ne= ed to=20 check this [actually, i need to merge the original table code and my patches into on= e file=20 so that i can make things more robust] > \newcolumntype{v}[1]{>{\raggedright\hspace{0pt}}p{#1}} >=20 > Ragged right but so that the first word can be hyphenated. >=20 > Or another columntype could be: >=20 > \newcolumntype{R}[1]{% > >{\begin{turn}{90}\begin{minipage}[t][0pt]{#1}\smalltabsize\raggedrig= ht\hspace{0pt}}l% > <{\end{minipage}\end{turn}}% > } >=20 > that would lead to rotated raggedright text in a smaller font. keys ... but i need to fix something > I know that ConTeXt tables have a lot of features that LaTeX tables > don't have. hidden features -) Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------