From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/82654 Path: news.gmane.org!not-for-mail From: =?ISO-8859-15?Q?=22H=2E_=D6zoguz=22?= Newsgroups: gmane.comp.tex.context Subject: Adjust font size to cell height in natural table Date: Mon, 27 May 2013 13:54:58 +0200 Message-ID: <51A34992.4090306@mmnetz.de> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1369655721 9608 80.91.229.3 (27 May 2013 11:55:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 27 May 2013 11:55:21 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Mon May 27 13:55:22 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 1Ugw1J-0003xs-Pe for gctc-ntg-context-518@m.gmane.org; Mon, 27 May 2013 13:55:21 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 3988C101EA; Mon, 27 May 2013 13:55:21 +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 8pPUBQJj7HEq; Mon, 27 May 2013 13:55:14 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 746B2101E5; Mon, 27 May 2013 13:55:14 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 39172101E5 for ; Mon, 27 May 2013 13:55:12 +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 G4J8-Xth32mm for ; Mon, 27 May 2013 13:55:11 +0200 (CEST) Original-Received: from filter2-ams.mf.surf.net (filter2-ams.mf.surf.net [192.87.102.70]) by balder.ntg.nl (Postfix) with ESMTP id 318B1101E0 for ; Mon, 27 May 2013 13:55:01 +0200 (CEST) Original-Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.171]) by filter2-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r4RBt0I1005997 for ; Mon, 27 May 2013 13:55:00 +0200 Original-Received: from [192.168.0.101] (dyndsl-095-033-118-046.ewe-ip-backbone.de [95.33.118.46]) by mrelayeu.kundenserver.de (node=mrbap0) with ESMTP (Nemesis) id 0LobEI-1UDvz73uJu-00gUEI; Mon, 27 May 2013 13:55:00 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130509 Thunderbird/17.0.6 X-Provags-ID: V02:K0:cefTxbQgebrPUCcWDNZXnrPhyVUPwvouemAKIKvmSD2 +yBTSWMtGrb0B/ErfbqYlM0VFD4lGmkZ8MB0d3O1+88g9GA4Z0 gXq53hTu1odWBcs8plPlRs5xjW2hLzDZMjUOJW7zEyBqEvYlFd XTP34zn1KGA0g5bjIUEOcOs/h9EGj2P+5igtRd1Wa3gtvLcdO/ vbX+fDCJcSRVBOT52LkLvPYoxH4KOiapAASO4G8hCy2BLCxRU2 NamGEkGQ/gqZOHBho1zoW7vKxk2qjGJWt/LZXhQ419VVQlTlHl T19rPGgWM0vRddhXTJw/xfRvcrhx78mAg7iAyAQ40cbsXlk5xl 2EL4TMAGZjwEAZoC5r9A= X-Bayes-Prob: 0.9999 (Score 4.7, tokens from: @@RPTN) X-CanIt-Geo: ip=212.227.126.171; country=DE; latitude=51.0000; longitude=9.0000; http://maps.google.com/maps?q=51.0000,9.0000&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0QJEXT0Ga - 16dec9a3e1a1 - 20130527 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.70 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:82654 Archived-At: Hello together, I use this as a natural table \def\esl[#1][#2][#3][#4][#5][#6][#7]{% \page \startframed[frame=off,width=fit,offset=overlay,align=middle,background=eslami]% \bTABLE[width=4.55cm,align={middle,lohi}] \bTR\bTD[height=2cm] ~\blank[-3.4mm]#1 \eTD\eTR \bTR\bTD[height=3cm] #2\\#3\\#4\\#5\\#6 \eTD\eTR \bTR\bTD[height=2.4cm] #7 \eTD\eTR \eTABLE \stopframed} Now it can happen, that the text of #7 is too long for the third cell, which is 4.55cm x 2.4cm. Is it possible to automatically adjust the fonz size (of this text in this sepcific cell only), s.t. it fits in the cell? For testing: %*********************************************************** \defineoverlay[eslami][{\externalfigure[eslamivorlage.pdf]}] \def\esl[#1][#2][#3][#4][#5][#6][#7]{% \page \startframed[frame=off,width=fit,offset=overlay,align=middle]% \bTABLE[width=4.55cm,align={middle,lohi}] \bTR\bTD[height=2cm] ~\blank[-3.4mm]#1 \eTD\eTR \bTR\bTD[height=3cm] #2\\#3\\#4\\#5\\#6 \eTD\eTR \bTR\bTD[height=2.4cm] #7 \eTD\eTR \eTABLE \stopframed} \setuppagenumbering[location=] \definepapersize[sheet][width=45.5mm,height=74mm] \definepapersize[bigsheet][width=\dimexpr\paperwidth+2mm\relax,height=\dimexpr\paperheight+2mm\relax] \setuplayout [location=middle, topspace=0mm, header=0mm, footer=0mm, bottomspace=0mm, width=middle, cutspace=0mm, backspace=0mm, %BCOR 5mm inkl. height=fit, grid=no] \setuppapersize[sheet][bigsheet] \setupbackgrounds[page][frame=off,frameoffset=0mm] \starttext \esl[Begriff][VB 1][VB 2][VB 3][VB 4][VB 5][Too small, too small, too small, too small, too small, too small, too small, too small. What to do?] \stoptext %*********************************************************** Thanks! Huseyin ___________________________________________________________________________________ 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 ___________________________________________________________________________________