From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/81000 Path: news.gmane.org!not-for-mail From: Devendra Ghate Newsgroups: gmane.comp.tex.context Subject: Re: Arranging framed text without gaps Date: Fri, 01 Mar 2013 09:17:46 +0530 Message-ID: <513024E2.4060502@gmail.com> References: <20130228230031.GD29684@homerow> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1072094077==" X-Trace: ger.gmane.org 1362109681 18156 80.91.229.3 (1 Mar 2013 03:48:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 1 Mar 2013 03:48:01 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Mar 01 04:48:24 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 1UBGxL-0000N9-MQ for gctc-ntg-context-518@m.gmane.org; Fri, 01 Mar 2013 04:48:23 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 1893D101FA; Fri, 1 Mar 2013 04:48:02 +0100 (CET) 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 mHoPdn4YpJJj; Fri, 1 Mar 2013 04:47:59 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id D2002101E3; Fri, 1 Mar 2013 04:47:58 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 6D6CE101E3 for ; Fri, 1 Mar 2013 04:47:56 +0100 (CET) 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 knOHp0uPDGMj for ; Fri, 1 Mar 2013 04:47:54 +0100 (CET) Original-Received: from filter3-ams.mf.surf.net (filter3-ams.mf.surf.net [192.87.102.71]) by balder.ntg.nl (Postfix) with ESMTP id 27448101E2 for ; Fri, 1 Mar 2013 04:47:54 +0100 (CET) Original-Received: from mail-pb0-f50.google.com (mail-pb0-f50.google.com [209.85.160.50]) by filter3-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r213lqCv000442 for ; Fri, 1 Mar 2013 04:47:52 +0100 Original-Received: by mail-pb0-f50.google.com with SMTP id up1so1454596pbc.23 for ; Thu, 28 Feb 2013 19:47:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:message-id:date:from:user-agent:mime-version:to:subject :references:in-reply-to:content-type; bh=46xtnhH5ShgZOEm1zbSCdjV+1DWsIGdWl20eob+ScOw=; b=NLFRfnMjiL7sj+YBBKl9VEUqo4QQPYqGqFa8AKylqLnZcg4LR7chm8bP3N6enTakGA QzV3EE3mzLZZV1+UmsfXiluM62AAakTJZxJRwIigIJXRLZwuG7srvWYxcJphein4/B4w g44nrADUiAZrsVer7TDe1tIXArwReP/BkqAwhMNKqhz3x+t/QIn+DmBN17Vulekhq/ix dJrjdZAlcYPdsK8kdN5xapJPQNdlgoMQxErAOjMLEkISS0GcY+NnjHMVhe9kCtaNflFi mASUxTmQRHUyxCUXvuhleOBdhDcsX9u8T582wRNhgU/vKR2sIcOCkWAaR4Vm9llABhj3 zQcQ== X-Received: by 10.67.5.168 with SMTP id cn8mr16507052pad.12.1362109671583; Thu, 28 Feb 2013 19:47:51 -0800 (PST) Original-Received: from [61.11.102.153] ([61.11.102.153]) by mx.google.com with ESMTPS id o5sm11464805pay.5.2013.02.28.19.47.49 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 28 Feb 2013 19:47:50 -0800 (PST) User-Agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130106 Thunderbird/17.0.2 In-Reply-To: <20130228230031.GD29684@homerow> X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.160.50; 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: 03J63LQTw - feb207cf77de - 20130301 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.71 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:81000 Archived-At: This is a multi-part message in MIME format. --===============1072094077== Content-Type: multipart/alternative; boundary="------------050507040809060209020909" This is a multi-part message in MIME format. --------------050507040809060209020909 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On 03/01/2013 04:30 AM, Marco Patzer wrote: > On 2013--02--28 Matthias Weber wrote: > >> -- without gaps between horizontal rows >> -- with text centered in the frames also in MkIV? > See Adityas answer for how to fix your current code. > >> -- achieve the desired layout (exact dimensions, frames, no gaps) the right way, > There is no "right" way. Here's how I would approach that: > > \usemodule > [database] > > \definefont > [MyBigFont] > [Serif at 24pt] > > \defineseparatedlist > [MyTable] > [before=\bTABLE, after=\eTABLE, > first=\bTR, last=\eTR, > left=\bTD, right=\eTD, > setups=my:table] > > \startsetups [my:table] > \setupTABLE [split=yes, width=5cm, height=4cm, style=MyBigFont] > \setupTABLE [each] [align={middle,lohi}] > \stopsetups > > \starttext > > \startMyTable > Jim , Mary , John > Patsy , Bob , Linda > Mike , Babsy , Bill > Liz , Dave , Jenny > Dick , Sue , Chuck > Maggie , Joe , Dolley > Tom , Lisa , Chris > Nancy , Paul , Betty > \stopMyTable > > \stoptext > > > Marco > This looks really clean. I wish I had known about this neat trick while working on my thesis. I guess this is the difference between a novice user and an expert user of ConTeXt. Thank you Marco, Devendra > > ___________________________________________________________________________________ > 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 > ___________________________________________________________________________________ --------------050507040809060209020909 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit
On 03/01/2013 04:30 AM, Marco Patzer wrote:
On 2013–02–28 Matthias Weber wrote:

-- without gaps between horizontal rows
-- with text centered in the frames also in MkIV?
See Adityas answer for how to fix your current code.

-- achieve the desired layout (exact dimensions, frames, no gaps) the right way, 
There is no “right” way. Here's how I would approach that:

\usemodule
  [database]

\definefont
  [MyBigFont]
  [Serif at 24pt]

\defineseparatedlist
  [MyTable]
  [before=\bTABLE, after=\eTABLE,
   first=\bTR, last=\eTR,
   left=\bTD, right=\eTD,
   setups=my:table]

\startsetups [my:table]
  \setupTABLE [split=yes, width=5cm, height=4cm, style=MyBigFont]
  \setupTABLE [each] [align={middle,lohi}]
\stopsetups

\starttext

\startMyTable
  Jim    , Mary  , John
  Patsy  , Bob   , Linda
  Mike   , Babsy , Bill
  Liz    , Dave  , Jenny
  Dick   , Sue   , Chuck
  Maggie , Joe   , Dolley
  Tom    , Lisa  , Chris
  Nancy  , Paul  , Betty
\stopMyTable

\stoptext


Marco

This looks really clean. I wish I had known about this neat trick while working on my thesis. I guess this is the difference between a novice user and an expert user of ConTeXt.

Thank you Marco,
Devendra





___________________________________________________________________________________
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
___________________________________________________________________________________

--------------050507040809060209020909-- --===============1072094077== 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ --===============1072094077==--