From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/10835 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: tables for invoice-style Date: Fri, 07 Feb 2003 10:48:12 +0100 Sender: ntg-context-admin@ntg.nl Message-ID: <5.1.0.14.1.20030207104037.03d81b58@server-1> References: <5.2.0.9.2.20030207080144.00c40fc0@mail.xs4all.nl> Reply-To: ntg-context@ntg.nl NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Trace: main.gmane.org 1044614520 26403 80.91.224.249 (7 Feb 2003 10:42:00 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 7 Feb 2003 10:42:00 +0000 (UTC) Return-path: Original-Received: from ref.vet.uu.nl ([131.211.172.13] helo=ref.ntg.nl) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18h5xE-0006rb-00 for ; Fri, 07 Feb 2003 11:41:56 +0100 Original-Received: from ref.ntg.nl (localhost.localdomain [127.0.0.1]) by ref.ntg.nl (Postfix) with ESMTP id 6372110AE9; Fri, 7 Feb 2003 11:43:57 +0100 (MET) Original-Received: from mail.solcon.nl (mail.solcon.nl [212.45.33.11]) by ref.ntg.nl (Postfix) with ESMTP id D120510AE9 for ; Fri, 7 Feb 2003 11:42:46 +0100 (MET) Original-Received: from server-1.pragma-ade.nl (wc-58016.solcon.nl [212.45.58.16]) by mail.solcon.nl (8.12.5/pre1.0-MySQL/8.12.5) with ESMTP id h17AgfKV004469 for ; Fri, 7 Feb 2003 11:42:42 +0100 Original-Received: from LAPTOP-3.wxs.nl (laptop-3 [10.100.1.191]) by server-1.pragma-ade.nl (8.12.2/8.12.2) with ESMTP id h17Agigk018743 for ; Fri, 7 Feb 2003 11:42:44 +0100 X-Sender: hagen-mail@server-1 X-Mailer: QUALCOMM Windows Eudora Version 5.1 Original-To: ntg-context@ntg.nl In-Reply-To: <5.2.0.9.2.20030207080144.00c40fc0@mail.xs4all.nl> X-RAVMilter-Version: 8.4.1(snapshot 20020919) (mail.solcon.nl) 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:10835 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:10835 At 08:02 AM 2/7/2003 +0100, you wrote: >Goodevening all, > >The examples in the 'natural tables' manual are nice [although I keep >wondering why you would {\em ever} need some specimina], but what I'm >looking I'm not able to fabricate. > >What I want is one line with words like invoice: date: etcetera, >and the following line will contain the proper data [like in Victor >Eijkhouts ntg-letter]. > >I'm not sure tables (maybe columns?) are the solution, but this is what >I've got [a portion of it] sofar. It won't work, that is: somehow I'm >not able to adjust the width of the columns? Can anybody see what's >wrong here? > > >\starttekst >\hbox \bgroup \ignorespaces >\bTABLE >\setupTABLE[column][1][width=1cm] >\setupTABLE[column][2][width=2cm] >\setupTABLE[column][3][width=3cm] >\setupTABLE[column][4][width=4cm] >\setupTABLE[column][5][width=10cm] >\bTR >\bTD {\ss\bf factuur:} \eTD >\bTD {\ss\bf debiteur:} \eTD >\bTD {\ss\bf betreft:} \eTD >\bTD {\ss\bf de dato:} \eTD >\bTD {\ss\bf uw kenmerk:} \eTD >\eTR >\bTR >\bTD \getvariable{factuur}{factuurnummer} \eTD >\bTD \getvariable{factuur}{debiteurnummer} \eTD >\bTD \getvariable{factuur}{betreft}\eTD >\bTD \getvariable{factuur}{werkdatum}\eTD >\bTD \getvariable{factuur}{uwkenmerk}\eTD >\eTR >\eTABLE >\unskip \egroup >\stoptekst hm, here it works although your first column is quite narrow you use english keywords in a dutch context, so change column into kolom and width into breedte how about: \setupTABLE[row] [1] [style=\ss\bf] % letter= which makes the first row cleaner: \bTR \bTD factuur: \eTD \bTD debiteur: \eTD \bTD betreft: \eTD \bTD de dato: \eTD \bTD uw kenmerk: \eTD \eTR no grouping needed, sinze the cell is basically a \framed nevertheless, i would opt for: \starttabulate[||i1|i1|i1|i1|] % \starttabulatie \NC \ss \bf factuur: \NC \ss \bf debiteur: \NC \ss \bf betreft: \NC \ss \bf de dato: \NC \ss \bf kenmerk: \NC\NR \NC test \NC another test \NC and another one \NC and one more \NC done \NC \NR \stoptabulate % \stoptabulatie (btw, some next release will have an example interface to letters and an associated database) 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 -------------------------------------------------------------------------