From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/19509 Path: news.gmane.org!not-for-mail From: "Patrick Gundlach" Newsgroups: gmane.comp.tex.context Subject: Re: good-looking tables in context Date: 31 Mar 2005 22:32:40 +0200 Organization: chaos Message-ID: 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 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1112301128 29983 80.91.229.2 (31 Mar 2005 20:32:08 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 31 Mar 2005 20:32:08 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Thu Mar 31 22:32:02 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 1DH6KD-0006Bx-0b for gctc-ntg-context-518@m.gmane.org; Thu, 31 Mar 2005 22:31:33 +0200 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 4C22A1285F; Thu, 31 Mar 2005 22:32:47 +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 05245-01-3; Thu, 31 Mar 2005 22:32:43 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id E1FCA12856; Thu, 31 Mar 2005 22:32:43 +0200 (CEST) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id D28FC12856 for ; Thu, 31 Mar 2005 22:32:42 +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 05245-01-2 for ; Thu, 31 Mar 2005 22:32:42 +0200 (CEST) Original-Received: from lilly.ping.de (lilly.ping.de [83.97.42.2]) by ronja.ntg.nl (Postfix) with SMTP id E9FC0127BC for ; Thu, 31 Mar 2005 22:32:41 +0200 (CEST) Original-Received: (qmail 25781 invoked from network); 31 Mar 2005 20:32:41 -0000 Original-Received: (ofmipd 83.97.40.174); 31 Mar 2005 20:32:19 -0000 Original-To: ntg-context@ntg.nl X-Lieblings-Musik: the_capricorns In-Reply-To: <424C1DFA.6010708@wxs.nl> (Hans Hagen's message of "Thu, 31 Mar 2005 17:57:46 +0200") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (darwin) 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:19509 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:19509 Hello Hans, [LaTeX tables] > what exactly are you missing? There is a good file that pretty much describes what I am missing (perhaps haven't found in a manual - I never looked that close): http://www.ctan.org/tex-archive/macros/latex/contrib/booktabs/booktabs.pdf 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. To get a horizontal rule from column a to column b you can (in LaTeX) use: \cmidrule[](){a=E2=80=93b} 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. \addlinespace addes a little space between rows.=20 Table preambles can be complicated... but the next one is pretty simple: \begin{tabular}{@{}rll*{22}cv{40em}@{}} 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 \newcolumntype{v}[1]{>{\raggedright\hspace{0pt}}p{#1}} Ragged right but so that the first word can be hyphenated. Or another columntype could be: \newcolumntype{R}[1]{% >{\begin{turn}{90}\begin{minipage}[t][0pt]{#1}\smalltabsize\raggedright\h= space{0pt}}l% <{\end{minipage}\end{turn}}% } that would lead to rotated raggedright text in a smaller font. I know that ConTeXt tables have a lot of features that LaTeX tables don't have. Patrick --=20 ConTeXt wiki: http://contextgarden.net