From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/19886 Path: news.gmane.org!not-for-mail From: "luigi.scarso" Newsgroups: gmane.comp.tex.context Subject: Re: AutoScale and AutoSize Date: Fri, 15 Apr 2005 11:43:30 +0200 Message-ID: <425F8CC2.6050100@logosrl.it> References: <425F7275.6070505@logosrl.it> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1113558311 5036 80.91.229.2 (15 Apr 2005 09:45:11 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 15 Apr 2005 09:45:11 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Fri Apr 15 11:45:09 2005 Return-path: 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 1DMNNC-0005gi-TT for gctc-ntg-context-518@m.gmane.org; Fri, 15 Apr 2005 11:44:26 +0200 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id D573212944; Fri, 15 Apr 2005 11:47:57 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 21754-01; Fri, 15 Apr 2005 11:47:57 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id A326612942; Fri, 15 Apr 2005 11:43:37 +0200 (CEST) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 3331212942 for ; Fri, 15 Apr 2005 11:43:36 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 21442-03 for ; Fri, 15 Apr 2005 11:43:35 +0200 (CEST) Original-Received: from ServerNotes.logosrl.it (unknown [81.208.99.91]) by ronja.ntg.nl (Postfix) with ESMTP id 6F7EC12935 for ; Fri, 15 Apr 2005 11:43:35 +0200 (CEST) Original-Received: from [192.168.2.85] ([192.168.2.85]) by ServerNotes.logosrl.it (Lotus Domino Release 6.5.1) with ESMTP id 2005041511400309-696 ; Fri, 15 Apr 2005 11:40:03 +0200 User-Agent: Mozilla Thunderbird 1.0 (X11/20041206) X-Accept-Language: en-us, en Original-To: mailing list for ConTeXt users In-Reply-To: <425F7275.6070505@logosrl.it> X-MIMETrack: Itemize by SMTP Server on ServerNotes/Logo(Release 6.5.1|January 21, 2004) at 15/04/2005 11.40.03, Serialize by Router on ServerNotes/Logo(Release 6.5.1|January 21, 2004) at 15/04/2005 11.40.03, Serialize complete at 15/04/2005 11.40.03 X-Virus-Scanned: by amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.5 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: by amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:19886 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:19886 % AutoSize seem better, but % I must setup ss and tfb inside body % (I need these) so it's no a general macros % Same problems of previous version. % \def\AutoSize#1#2#3{% #1=string #2=horiz.limit #3=startfont \newdimen\Limit \Limit=#2 % \newdimen\FontSize \FontSize=#3 % \doloop{% \setbox800=\hbox{\switchtobodyfont[ss,\the\FontSize]\tfb #1}% \ifdim\wd800 <\Limit\exitloop% \else% \ifdim\FontSize <1bp\exitloop% \else % \advance\FontSize by -0.5bp% \fi% \fi}% \box800\relax% }