From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/28770 Path: news.gmane.org!not-for-mail From: Vit Zyka 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 21:03:39 +0200 Message-ID: <449AE98B.4070904@seznam.cz> References: <449AA30E.1070206@wxs.nl> 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 1151003116 25629 80.91.229.2 (22 Jun 2006 19:05:16 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 22 Jun 2006 19:05:16 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Thu Jun 22 21:05: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 1FtUSz-0005HW-Ue for gctc-ntg-context-518@m.gmane.org; Thu, 22 Jun 2006 21:03:50 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 85AF012805; Thu, 22 Jun 2006 21:03:49 +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 06640-01; Thu, 22 Jun 2006 21:03:43 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 3AAAD1280A; Thu, 22 Jun 2006 21:03:43 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 1C7E51280A for ; Thu, 22 Jun 2006 21:03:41 +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 31809-04-2 for ; Thu, 22 Jun 2006 21:03:39 +0200 (CEST) Original-Received: from smtp.seznam.cz (smtp.seznam.cz [212.80.76.43]) by ronja.ntg.nl (Postfix) with SMTP id B104412805 for ; Thu, 22 Jun 2006 21:03:39 +0200 (CEST) Original-Received: (qmail 27518 invoked from network); 22 Jun 2006 19:03:38 -0000 Original-Received: from unknown (HELO ?127.0.0.1?) (typokvitek@seznam.cz@62.240.166.134) by tic.go.seznam.cz with ESMTPA; 22 Jun 2006 19:03:38 -0000 X-Seznam-User: typokvitek@seznam.cz User-Agent: Thunderbird 1.5.0.4 (Windows/20060516) Original-To: mailing list for ConTeXt users In-Reply-To: <449AA30E.1070206@wxs.nl> X-Antivirus: avast! (VPS 0624-0, 11.06.2006), Outbound message X-Antivirus-Status: Clean 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:28770 Archived-At: Hans Hagen wrote: > Nicolas Grilly 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