From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/49397 Path: news.gmane.org!not-for-mail From: Design Department Newsgroups: gmane.comp.tex.context Subject: Table placement with forced width Date: Mon, 13 Apr 2009 13:31:09 -0600 Message-ID: <6e2989c20904131231m28c66111j89e3d5dbf3a20d38@mail.gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1239651226 2090 80.91.229.12 (13 Apr 2009 19:33:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 13 Apr 2009 19:33:46 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Mon Apr 13 21:35:05 2009 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1LtRvk-0007jk-2S for gctc-ntg-context-518@m.gmane.org; Mon, 13 Apr 2009 21:34:56 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 223021FB38; Mon, 13 Apr 2009 21:33:26 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 11342-05-4; Mon, 13 Apr 2009 21:33:25 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 443341FA4C; Mon, 13 Apr 2009 21:32:12 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 582F81FA4C for ; Mon, 13 Apr 2009 21:32:10 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 29287-06 for ; Mon, 13 Apr 2009 21:31:15 +0200 (CEST) Original-Received: from filter3-nij.mf.surf.net (filter3-nij.mf.surf.net [195.169.124.154]) by ronja.ntg.nl (Postfix) with ESMTP id 116581FA2B for ; Mon, 13 Apr 2009 21:31:15 +0200 (CEST) Original-Received: from mail-ew0-f173.google.com (mail-ew0-f173.google.com [209.85.219.173]) by filter3-nij.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n3DJV9oC015348 for ; Mon, 13 Apr 2009 21:31:10 +0200 Original-Received: by ewy21 with SMTP id 21so2321354ewy.2 for ; Mon, 13 Apr 2009 12:31:09 -0700 (PDT) Original-Received: by 10.216.72.207 with SMTP id t57mr1578748wed.158.1239651069078; Mon, 13 Apr 2009 12:31:09 -0700 (PDT) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.219.173; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 207803058 - 958226be46fc - 20090413 X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.154 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.11 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: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:49397 Archived-At: Hi all, I need a table that is 2/3 \pagewidth and placed against the right page margin. \SetTableToWidth{6in} \setuptables[split=repeat] \starttablehead \NC Description \NC Quantity \NC Units \NC Rate \NC Amount \NC \NR \HL \stoptablehead \starttabletail \NC \SL This ticket is not an invoice. Pay on receipt of invoice. \NC\FOUR \NC\NR \stoptabletail \placetable[right,5*line,split=repeat][tab:costs]{} \starttables[|l|c|c|c|r|] \NC 1 man unit \NC 4 \NC hr \NC 125.00 \NC 500.00 \NC \NR \NC Kilometre charges \NC 100 \NC km \NC .85 \NC 85.00 \NC \NR \NC Field Kit \NC 1 \NC day \NC 50.0 \NC 50.00 \NC \NR \HL \NC \bold{Total:} (all work performed on this ticket, before taxes) \NC\THREE \NC \$ 635.00 \NC \NR \stoptables The table flows into, and off the right margin area. What am I doing wrong? Also, \SetTableToWidth{.67\pagewidth} produces an error. Is there a way to specify a fraction of \pagewidth? Even though this example is short, the table may run to multiple pages and I need both headers and footers to repeat. I also need to eventually shade alternate row backgrounds. Is there a better table macro choice? -- david ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________