From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/60026 Path: news.gmane.org!not-for-mail From: Jaroslav Hajtmar Newsgroups: gmane.comp.tex.context Subject: Setuparranging[XY] and arrangement of labels Date: Sun, 04 Jul 2010 05:17:44 +0200 Message-ID: <4C2FFD58.90909@gyza.cz> Reply-To: hajtmar@gyza.cz, mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1278213478 4256 80.91.229.12 (4 Jul 2010 03:17:58 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 4 Jul 2010 03:17:58 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Jul 04 05:17:57 2010 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OVFiN-0000T4-D5 for gctc-ntg-context-518@m.gmane.org; Sun, 04 Jul 2010 05:17:55 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id A214FC9B0D; Sun, 4 Jul 2010 05:17:54 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id dfXgwyzS4k2N; Sun, 4 Jul 2010 05:17:50 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id A3F4AC9AAF; Sun, 4 Jul 2010 05:17:50 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id B9538C9AAF for ; Sun, 4 Jul 2010 05:17:48 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id ncjhbBbIrD0U for ; Sun, 4 Jul 2010 05:17:46 +0200 (CEST) Original-Received: from psi3.forpsi.com (smtpa.forpsi.com [81.2.195.204]) by balder.ntg.nl (Postfix) with SMTP id 4CD99C9AAA for ; Sun, 4 Jul 2010 05:17:46 +0200 (CEST) Original-Received: (qmail 7250 invoked by uid 89); 4 Jul 2010 03:17:44 -0000 Original-Received: from unknown (HELO ?192.168.1.2?) (hajtmar@gyza.cz@88.103.230.14) by psi03 with ESMTPA; 4 Jul 2010 03:17:44 -0000 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; cs; rv:1.9.1.8) Gecko/20100216 Thunderbird/3.0.2 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 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 Xref: news.gmane.org gmane.comp.tex.context:60026 Archived-At: Hello all, I have a reason to print labels to page in "vertical mode". This means, that labels are place to page underneath first and then abreast (ie top to bottom first and then subsequently left to rigth). According to the example of the way they are now labels numbered : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 but I want to be numbered: 1 6 11 2 7 12 3 8 13 4 9 14 5 10 15 Exist any simple way in \setuparranging [XY] mode (not in columns mode) for this? If it will not somehow just does not matter. Otherwise I'll do sort of data that I print to the labels (but otherwise I find it quite helpful as I could keep my original gear mechanism). Thanx Jaroslav Here is my minimal example: \newdimen\labelwidth\labelwidth=30mm \newdimen\labelheight\labelheight=20mm \newdimen\disthor\disthor=1mm \newdimen\distvert\distvert=1mm \newcount\counthor\counthor=5 \newcount\countvert\countvert=10 \definepapersize[label][width=\labelwidth,height=\labelheight] \setuppapersize [label][A4] \definemeasure[topspace] [\dimexpr(\printpaperheight-(\labelheight + \distvert)*\countvert+\distvert)/2\relax] \definemeasure[backspace] [\dimexpr(\printpaperwidth-(\labelwidth + \disthor)*\counthor+\disthor)/2\relax] \setuppaper [topspace=\measure{topspace},backspace=\measure{backspace},dx=\disthor,dy=\distvert,nx=\counthor,ny=\countvert] \setuplayout [page] [topspace=\measure{topspace},backspace=\measure{backspace}] \setuplayout [page] \setuplayout [location=middle] \setuparranging [XY] \showframe[edge] \starttext \dorecurse{50}{{\recurselevel\page}} \stoptext ___________________________________________________________________________________ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________