From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/28773 Path: news.gmane.org!not-for-mail From: "Nicolas Grilly" Newsgroups: gmane.comp.tex.context Subject: Re: How to increase left and right padding of cells in a natural table? Date: Thu, 22 Jun 2006 23:22:45 +0200 Organization: Garden Message-ID: References: <449AE98B.4070904@seznam.cz> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1151011396 22436 80.91.229.2 (22 Jun 2006 21:23:16 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 22 Jun 2006 21:23:16 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Thu Jun 22 23:23:13 2006 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 ciao.gmane.org with esmtp (Exim 4.43) id 1FtWds-0005ce-Oc for gctc-ntg-context-518@m.gmane.org; Thu, 22 Jun 2006 23:23:12 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id DFDFE12827; Thu, 22 Jun 2006 23:23:12 +0200 (CEST) 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 06004-04; Thu, 22 Jun 2006 23:23:06 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 395CD12805; Thu, 22 Jun 2006 23:23:06 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 4920B12805 for ; Thu, 22 Jun 2006 23:23:04 +0200 (CEST) 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 05343-03 for ; Thu, 22 Jun 2006 23:23:02 +0200 (CEST) Original-Received: from main.onlymyemail.com (main.onlymyemail.com [69.16.145.34]) by ronja.ntg.nl (Postfix) with SMTP id 3517D127FB for ; Thu, 22 Jun 2006 23:23:01 +0200 (CEST) Original-Received: from root by main.onlymyemail.com with local (Exim 4.60) (envelope-from ) id 1FtWde-0002sz-6F for ntg-context@ntg.nl; Thu, 22 Jun 2006 14:22:58 -0700 x-OnlyMyEmail-Tracking: DOM: DNF: : Original-Received: from [84.96.83.220] (helo=ngrilly) by main.onlymyemail.com with esmtpa (Exim 4.60) (envelope-from ) id 1FtWdX-0002qq-3y for ntg-context@ntg.nl; Thu, 22 Jun 2006 14:22:51 -0700 Original-To: "'mailing list for ConTeXt users'" X-Mailer: Microsoft Office Outlook, Build 11.0.6353 In-Reply-To: <449AE98B.4070904@seznam.cz> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869 Thread-Index: AcaWLw6l1NpwSc1BRFmip0EzoaMsLQAEfXlg X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.7 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:28773 Archived-At: Vit, Thanks for your quick answer. I tried your "quick" solution (\bTD \hskip1cm Second movie \hskip2cm\null\eTD) but it doesn't work when cell contains a multiline text: the left space is only present on the first line and the right space is only present on the last line. Andmy natural table have some cells containing two or three lines of text. Do you have any idea? Thanks, Nicolas PS: If someone is able to develop an extension to natural tables in order to have parameters like leftoffset, rightoffset, topoffset and bottomoffset in bTABLE and setupTABLE, my company is interested to pay some hours/days of development and release the result to ConTeXt project. Vit wrote: > >> Vit, > >> > >> I just tried your solution, but it doesn't work: it adds > space to the > >> four side of table cells. But I want to add space ONLY TO LEFT AND > >> RIGHT, not to top and bottom, like in the following illustration: > >> > >> --------------------------------- > >> | My text | > >> --------------------------------- > >> > > inside the cell > > > > \leftskip1em \rightskip\leftskip > > Not to four sides but between columns. Rows distance is not affected. > But you are right it does not increase distance between text > and cell frame. Since natural tables uses \framed construct > in each cell and \framed has no > 'before'/'after'/'hoffset'/'leftoffset'/'rightoffset' it can > not be simply set for whole natural table. > > Solution? > > a) quick: > \bTD \hskip1cm Second movie \hskip2cm\null\eTD > or with macro: > \newdimen\lOffset \lOffset=1cm > \newdimen\rOffset \rOffset=2cm > \def\myNatTabCell#1{\bTD\hskip\lOffset#1\hskip\rOffset\null\eTD} > ... > \myNatTabCell{Second movie} > ... > > b) systematic > create alternative \extframed with 'before', 'after', > 'hoffset', 'leftoffset', 'rightoffset', 'voffset', > 'topoffset', 'bottomoffset' > and add switches: > \bTABLE[alternative=extframed,leftoffset=1cm,rightoffset=2cm] > > Vit > > Minimal example: > --------------------------------------- > \starttext > \bTABLE[frame=on] > \bTR > \bTH My Title \eTH > \bTH Your title \eTH > \eTR > \bTR > \bTD First try \eTD > \bTD Second try \eTD > \eTR > \bTR > \bTD First movie \eTD > \bTD \hskip1cm Second movie \hskip2cm\null\eTD \eTR > \eTABLE \stoptext