From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/47007 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Something usefull? Date: Sun, 25 Jan 2009 10:04:48 +0100 Message-ID: References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v930.3) Content-Type: multipart/mixed; boundary=Apple-Mail-4--983465247 X-Trace: ger.gmane.org 1232874456 25255 80.91.229.12 (25 Jan 2009 09:07:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 25 Jan 2009 09:07:36 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Jan 25 10:08:48 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 1LR0z1-00021g-0p for gctc-ntg-context-518@m.gmane.org; Sun, 25 Jan 2009 10:08:47 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 46B8B1FD54; Sun, 25 Jan 2009 10:07:24 +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 19784-05; Sun, 25 Jan 2009 10:06:15 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id B49DC1FC91; Sun, 25 Jan 2009 10:06:15 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 4370D1FC91 for ; Sun, 25 Jan 2009 10:06:12 +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 23130-03 for ; Sun, 25 Jan 2009 10:05:34 +0100 (CET) Original-Received: from filter3-til.mf.surf.net (filter3-til.mf.surf.net [194.171.167.219]) by ronja.ntg.nl (Postfix) with ESMTP id 004141FC7A for ; Sun, 25 Jan 2009 10:05:33 +0100 (CET) Original-Received: from mail-ew0-f13.google.com (mail-ew0-f13.google.com [209.85.219.13]) by filter3-til.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n0P95X03021951 for ; Sun, 25 Jan 2009 10:05:33 +0100 Original-Received: by ewy6 with SMTP id 6so5930751ewy.2 for ; Sun, 25 Jan 2009 01:05:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:message-id:from:to :in-reply-to:content-type:mime-version:subject:date:references :x-mailer; bh=zoIFvXvCRal05pCPhiku9g5vUsPJ0ZW0fcW69dQ1rvw=; b=OAve/o7DKTK0i4lUIkPLYKTI09JdxvFzE+WZc7R/Rc00GcJYak7J+mdtVelmZkF1pB Ttd5fIC4xRmgVdFF8ZJc/y/5T/cWVkZjcNI8Rsd8qzfhZgv+3mlWqemQS3SdwaLc0W2W dSJx/RpnvTIGmuoWr4t6MLDUX5Z4XPg8v4Trs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=message-id:from:to:in-reply-to:content-type:mime-version:subject :date:references:x-mailer; b=laPK/tJ4ROs6i+uc/4frTwHTBOF+tlzX4wth93OnTwH1Fo9SsrOnEZrcygYEj7ldVp Fusc9QfI6KJWCqFvLelxxGozp/XOrmA6aHj/bTxWY6DPrc3E3ScwTatMEvdOSKQ7axCU 9UB17BrvOeUN1wFfaPcPG+bBVVc2Fc67+urEc= Original-Received: by 10.210.92.8 with SMTP id p8mr2348759ebb.143.1232874332853; Sun, 25 Jan 2009 01:05:32 -0800 (PST) Original-Received: from ?192.168.2.23? (p5B295E9D.dip.t-dialin.net [91.41.94.157]) by mx.google.com with ESMTPS id 24sm5982314eyx.55.2009.01.25.01.05.31 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 25 Jan 2009 01:05:32 -0800 (PST) In-Reply-To: X-Mailer: Apple Mail (2.930.3) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.219.13; 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: 170118847 - 4d92f7b82de0 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.219 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:47007 Archived-At: --Apple-Mail-4--983465247 Content-Disposition: attachment; filename=tableHoursToDo.tex Content-Type: application/octet-stream; x-unix-mode=0644; name="tableHoursToDo.tex" Content-Transfer-Encoding: 7bit \usemodule[defaults] \setuppagenumbering[location={footer,right}] \setupbodyfont[roman, 12pt] \setuppapersize[A7][A4] \setuplayout[ backspace=5mm, footer=1.5\bodyfontsize, header=5mm, height=96.5mm, margin=5mm, width=63.5mm, topspace=4mm, ] \setuparranging[2*8,rotated] \def\getTableHours#1% {\dorecurse{#1} {\setupTABLE[c][each][align=middle,height=\lineheight] \setupTABLE[r][1][background=color,backgroundcolor=darkyellow] \setupTABLE[c][each][width=0.20\textwidth] \setupTABLE[c][2,4][width=0.30\textwidth] \dontleavehmode\vskip-\dimexpr\lineheight+\topskip\relax\par \startalignment[middle] \bTABLE \bTR \dorecurse{2}{\bTH Type \eTH \bTH Tijd \eTH} \eTR \getnoflines{\dimexpr\pagegoal-\pagetotal-3\lineheight\relax} \dorecurse{\noflines}{\bTR\dorecurse{4}{\bTD \eTD}\eTR} \eTABLE \stopalignment \page}} % \def\getTableToDo % {\dorecurse{\number\numexpr16-\realpageno+1\relax} % {\dontleavehmode\vskip-\dimexpr\lineheight+\topskip\relax\par % \vbox to \vsize{\leaders\vbox{\thinrule}\vfill}\page}} \def\getTableToDo {\dorecurse{\number\numexpr16-\realpageno+1\relax} {\dontleavehmode\vskip-\dimexpr\lineheight+\topskip\relax\par \getroundednoflines\textheight \thinrules[n=\noflines]\page}} \starttext \getTableHours{8} \setuppagenumber[number=1] \getTableToDo \stoptext --Apple-Mail-4--983465247 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Am 24.01.2009 um 13:46 schrieb Cecil Westerhof: > I made something usefull and share it with you. Maybe it is usefull > for other people also. [...] > I also have some questions. ;-} > At the moment there are the same number of the timesheet and the lined > paper printed. That is not always what you want I think. The one time > you need more timesheets, the other time you need more lined paper. Is > there a way to ask for the number of timesheets, print those, and let > the rest be printed as lined? (I can offcourse also switch to two > different documents.) > At the moment the lined paper starts counting from 9. Is there a way > to reset it to 1? Take a look at the attached file. Wolfgang --Apple-Mail-4--983465247 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-4--983465247--