From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/46983 Path: news.gmane.org!not-for-mail From: Willi Egger Newsgroups: gmane.comp.tex.context Subject: Re: Questions about tables Date: Thu, 22 Jan 2009 20:33:22 +0100 Message-ID: <3EB8E1DB-F34F-42D1-B63D-3AF666F7579B@boede.nl> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v753.1) Content-Type: multipart/mixed; boundary=Apple-Mail-3-942532000 X-Trace: ger.gmane.org 1232652931 28460 80.91.229.12 (22 Jan 2009 19:35:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 22 Jan 2009 19:35:31 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Jan 22 20:36:44 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 1LQ5Lp-00070Q-B1 for gctc-ntg-context-518@m.gmane.org; Thu, 22 Jan 2009 20:36:29 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 111231FE7F; Thu, 22 Jan 2009 20:35:10 +0100 (CET) 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 16829-05-6; Thu, 22 Jan 2009 20:34:07 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 9A5FB1FDCD; Thu, 22 Jan 2009 20:34:07 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 9CAB41FDCD for ; Thu, 22 Jan 2009 20:34:05 +0100 (CET) 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 16829-05-5 for ; Thu, 22 Jan 2009 20:33:25 +0100 (CET) Original-Received: from filter4-nij.mf.surf.net (filter4-nij.mf.surf.net [195.169.124.155]) by ronja.ntg.nl (Postfix) with ESMTP id 9B7D61FCC6 for ; Thu, 22 Jan 2009 20:33:25 +0100 (CET) Original-Received: from mail.7values.nl (pluto.digitpaint.nl [83.98.197.3]) by filter4-nij.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n0MJXOvT027129 for ; Thu, 22 Jan 2009 20:33:25 +0100 Original-Received: from localhost (dp5.intern.digitpaint.nl [192.168.0.7]) by mail.7values.nl (Postfix) with ESMTP id 93E007DF4 for ; Thu, 22 Jan 2009 20:33:25 +0100 (CET) Original-Received: from mail.7values.nl ([192.168.0.1]) by localhost (dp5.digitpaint.nl [192.168.0.7]) (amavisd-new, port 10024) with LMTP id Y1ELSQykY3+4 for ; Thu, 22 Jan 2009 20:33:23 +0100 (CET) Original-Received: from [192.168.0.17] (a80-126-172-1.adsl.xs4all.nl [80.126.172.1]) by mail.7values.nl (Postfix) with ESMTP id 59B267DF1 for ; Thu, 22 Jan 2009 20:33:25 +0100 (CET) In-Reply-To: X-Mailer: Apple Mail (2.753.1) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=83.98.197.3; country=NL; region=07; city=Hilversum; latitude=52.2333; longitude=5.1833; http://maps.google.com/maps?q=52.2333,5.1833&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 169337942 - 7025e3ee35e2 X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.155 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:46983 Archived-At: --Apple-Mail-3-942532000 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Hi Cecil, You could use \showframe before starttext, then you will see the relations of the areas. Here I do not see that the placement of the table is incorrect. I tried to use \doerecurse with the table-environment and I also did not get a result. A possibility is to use another table environment: \bTABLE \bTR \bTD ... \eTD \eTR \eTABLE This environment has more possibilities than \starttable. Herein \dorecurse does work. Moreover support for colouring is more advanced. Look for details in the enattab.pdf I suggest you to use buffers for the content that the loops typeset. A sample is in your fuel.tex Willi --Apple-Mail-3-942532000 Content-Transfer-Encoding: 7bit Content-Type: application/octet-stream; x-unix-mode=0644; name=fuel.tex Content-Disposition: attachment; filename=fuel.tex \setuppapersize[A5][A4] \setuparranging[2UP,rotated,doublesided] \setuplayout [backspace=20mm,footer=5mm,header=5mm,height=middle,margin=1cm,topspace=0mm,width=middle,location=middle] \setupindenting[yes,none] \enableregime[utf-8] \setupcolors[state=start] \mainlanguage[nl] \setupbodyfont[roman,7pt] \setuppagenumbering[location=] \setupoutput[pdf] % \gdef\@colorHeader{darkyellow} % \gdef\@colorHighlightRow{lightgray} % \startbuffer[Table] % \starttable[|Bcp(.10\textwidth)|Bcp(.10\textwidth)|Bcp(.15\textwidth)|Bcp(.15\textwidth)|Bcp(.10\textwidth)|Bcp(.10\textwidth)|Bcp(.10\textwidth)|] % \HL % \CL\yellow\SR % \VL Verwerkt \VL Datum \VL Km-stand \VL Kilometers \VL c/l \VL Liter \VL Prijs \VL \AR % \HL % \VL \VL \VL \VL \VL \VL \VL \VL \AR % \HL % \VL \VL \VL \VL \VL \VL \VL \VL \AR % \HL % \VL \VL \VL \VL \VL \VL \VL \VL \AR % \HL % \VL \VL \VL \VL \VL \VL \VL \VL \AR % \HL % \CL\screen\LR % \stoptable % \stopbuffer % \startbuffer[Rows] % \VL \VL \VL \VL \VL \VL \VL \VL \AR % \HL % \VL \VL \VL \VL \VL \VL \VL \VL \AR % \HL % \VL \VL \VL \VL \VL \VL \VL \VL \AR % \HL % \VL \VL \VL \VL \VL \VL \VL \VL \AR % \HL % \CL\screen \AR % \stopbuffer \startbuffer[Rows] \bTR \bTD \strut \eTD \bTD \strut \eTD \bTD \strut \eTD \bTD \strut \eTD \bTD \strut \eTD \bTD \strut \eTD \bTD \strut \eTD \eTR \stopbuffer \showframe \starttext % \dorecurse{4}{ % \starttable[|Bcp(.10\textwidth)|Bcp(.10\textwidth)|Bcp(.15\textwidth)|Bcp(.15\textwidth)|Bcp(.10\textwidth)|Bcp(.10\textwidth)|Bcp(.10\textwidth)|] % \HL % \VL Verwerkt \VL Datum \VL Km-stand \VL Kilometers \VL c/l \VL Liter \VL Prijs \VL \FR % \HL % \VL \VL \VL \VL \VL \VL \VL \VL \AR % \HL % \VL \VL \VL \VL \VL \VL \VL \VL \AR % \HL % \VL \VL \VL \VL \VL \VL \VL \VL \AR % \HL % \VL \VL \VL \VL \VL \VL \VL \VL \AR % \HL % % \dorecurse{4}{\getbuffer[Rows]} % \stoptable % \page} \setupTABLE[r][each][width=.14\textwidth,align=middle] \dorecurse{4} {\bTABLE \bTR \bTD Verwerkt \eTD \bTD Datum \eTD \bTD Km-stand \eTD \bTD Kilometers \eTD \bTD c/l \eTD \bTD Liter \eTD \bTD Prijs \eTD \eTR \dorecurse{4}{\getbuffer[Rows]} \eTABLE \page} \stoptext --Apple-Mail-3-942532000 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed On Jan 22, 2009, at 10:43 AM, Cecil Westerhof wrote: > 2009/1/22 Cecil Westerhof : >> There are two problems with it: >> - The horizontal line at the top disappears because of the color. Is >> there a way to get it back? > > That is only on screen. When printed, it is there. > > >> - The table is on the right side of the paper. How can I get it >> centered on the page? > > With a lot of experimenting, I am a lot further further. See the > atached file. > > >> Also is it possible to let the rows fill the complete page? I >> mean: if >> there is room for 40 rows, that there are automatically 40 rows. > > There is even room for 43 rows. I do need to place them all by hand? I > tried \dorecurse, but that did not work. > Especially when the highlight is changed (now every five rows) this > would be a lot of work. > > It is a little strange. The second page is reasonably placed. But the > first page not. Why is the layout of the first page different? > > Tips to get the tables better in the middle and use more of the > available space are welcome. > > I have a strange problem. When printing the first page, or the second > page, there is no problem. Put when I try to print the complete > document. The printer is busy a long time. At a certain point the > printer is 'ready', but does not have printed the document. Anybody > knows what could be happening? > I am working with openSUSE and a HP Color LaserJet 1600. > > I also tried to make the document singlesided. But when I then placed > two tables, they got on different pages instead of beside eachother. > How would I place two tables beside eachother on singlesided paper? > > -- > Cecil > Westerhof___________________________________________________ > ________________________________ > 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 > ______________________________________________________________________ > _____________ --Apple-Mail-3-942532000 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --Apple-Mail-3-942532000--