From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/83179 Path: news.gmane.org!not-for-mail From: Pavneet Arora Newsgroups: gmane.comp.tex.context Subject: Re: Using \setupinterlinespace with \setuparranging[XY], and more Date: Tue, 25 Jun 2013 11:10:48 -0400 Message-ID: <20130625151047.GA28561@haridwar> References: Reply-To: Pavneet Arora , mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1372173074 25738 80.91.229.3 (25 Jun 2013 15:11:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 25 Jun 2013 15:11:14 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Tue Jun 25 17:11:16 2013 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UrUtn-0003Et-Ep for gctc-ntg-context-518@m.gmane.org; Tue, 25 Jun 2013 17:11:15 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 98929101E8; Tue, 25 Jun 2013 17:11:14 +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 LqS-xUqwOBMw; Tue, 25 Jun 2013 17:11:14 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id B83D7101EA; Tue, 25 Jun 2013 17:11:08 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 294B1101EA for ; Tue, 25 Jun 2013 17:11:07 +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 upKavOMGQC2X for ; Tue, 25 Jun 2013 17:11:04 +0200 (CEST) Original-Received: from filter2-utr.mf.surf.net (filter2-utr.mf.surf.net [195.169.124.153]) by balder.ntg.nl (Postfix) with ESMTP id 57243101E8 for ; Tue, 25 Jun 2013 17:10:54 +0200 (CEST) Original-Received: from charkha.pavastupa.com (teresa.yourinstantserver.com [173.230.253.20] (may be forged)) by filter2-utr.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r5PFApjF003943 for ; Tue, 25 Jun 2013 17:10:52 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by charkha.pavastupa.com (Postfix) with ESMTP id B173C86C288 for ; Tue, 25 Jun 2013 11:13:56 -0400 (EDT) X-Virus-Scanned: Debian amavisd-new at charkha.pavastupa.com Original-Received: from charkha.pavastupa.com ([127.0.0.1]) by localhost (charkha.pavastupa.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id LMKL4NQ9Sn6y for ; Tue, 25 Jun 2013 11:13:54 -0400 (EDT) Original-Received: from localhost (bas5-toronto47-845522114.dsl.bell.ca [50.101.164.194]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: pavneet_arora@pavastupa.com) by charkha.pavastupa.com (Postfix) with ESMTPSA id 7D43086C257 for ; Tue, 25 Jun 2013 11:13:54 -0400 (EDT) Content-Disposition: inline In-Reply-To: X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=173.230.253.20; country=US; region=MI; city=Dearborn; postalcode=48124; latitude=42.3027; longitude=-83.2456; metrocode=505; areacode=313; http://maps.google.com/maps?q=42.3027,-83.2456&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 04JQDaQJi - c0766fdff47f - 20130625 X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.153 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:83179 Archived-At: By chance I found a possible, but not very satisfying, solution to the \setupinterlinspace issue when trying to print labels using \setuparranging[XY]. That is to explicitly set \setupbodyfont[rm,18pt]\setupinterlinespace once again outside the \framed directive for the specific label as in the following MWE. I haven't seen any answers on my other two questions from the original post (included down below), so if anyone has any ideas, I would be most grateful. MWE: \definepapersize [Label] [width=4in,height=3.33in] \setuppapersize[Label][letter,portrait] \setuppaper [topspace=0.4688in, backspace=0.1875in, dx=0.1875in, dy=0in, nx=2, ny=3] \setuplayout [topspace=0in, backspace=0in, margin=0in, width=4in, height=3.33in, header=0in, footer=0in] \setuparranging[XY] \setupframedtexts [width=\textwidth, height=\textheight, alignment=center, frame=off, location=lohi, alignment=center, offset=0pt] \setuplayout[location=middle] \definelayer [Label] [width=\paperwidth, height=\paperheight] \usemodule[simplefonts] \setmainfont[schola] \setupbodyfont[rm,48pt] \setupinterlinespace[line=2.8ex] \showframe \starttext \the\baselineskip\page \framed[frame=off,width=\textwidth,height=\textheight,aligment=center]{Label 1}\page \the\baselineskip\page \framed[frame=off,width=\textwidth,height=\textheight,aligment=center]{\definedfont[Serif at 18pt]\setupinterlinespace \the\baselineskip\crlf A long description label that needs to be have its interline spacing adjusted.}\page Label 2\page \setupbodyfont[rm,18pt] \setupinterlinespace \framed[frame=off,width=\textwidth,height=\textheight,aligment=center]{ \the\baselineskip\crlf Another long description label that needs to be have its interline spacing adjusted.}\page Label 3\page Label 4\page Label 5\page Label 6\page Label 7\page Label 8\page \stoptext On 22Jun13, ntg-context-request@ntg.nl wrote: > Hello, > > I am using Willi's MAPS 37 and the "Example" section from the \setuppaper command: > > http://wiki.contextgarden.net/Command/setuppaper > > to print a set of labels, 2x6 configuration on U.S. Letter waterproof > label paper. > > For the most part things are working well, but I have a number of questions: > > 1. A difference between MAPS 37 and wiki entry for \setuppaper is the > inclusion of the following line in the later: > > \setuplayout[location=middle] > > which seems to play a significant role. Otherwise, I cannot get the > labels to honour the topspace and backspace specified in the setuppaper > command. My question is why is this significant? What role does it > play? This can be tested by simply deleting the line in the MWE below. > > 2. I would like to have every label "centered", i.e., > \framed[alignment=center] should be set for all labels. However, > including it in the setupframedtexts command doesn't seem to have any > effect as shown in the MWE down below. Is there another way for all > labels to inherit this alignment setting? > > 3. I cannot get interlinespacing to affect the line spacing even though > the baselineskip variable is changed as shown in the MWE. > > advTHANKSance. > > -- ---- Pavneet Arora m: 647.406.6843 Waroc Informatik t: 416.937.9276 ___________________________________________________________________________________ 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 ___________________________________________________________________________________