From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/32415 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: store counter or variable and reread again Date: Mon, 01 Jan 2007 23:14:27 +0100 Message-ID: <459987C3.5030505@wxs.nl> References: <45941026$0$4168$ba624c82@nntp02.dk.telia.net> <459670F8.5020106@elvenkind.com> <45968AED.7040904@gmx.net> <4596E9B0.8070705@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------050207000507060405000608" X-Trace: sea.gmane.org 1167689822 2531 80.91.229.12 (1 Jan 2007 22:17:02 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 1 Jan 2007 22:17:02 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Mon Jan 01 23:17:00 2007 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 lo.gmane.org with esmtp (Exim 4.50) id 1H1VSj-00022D-Dw for gctc-ntg-context-518@m.gmane.org; Mon, 01 Jan 2007 23:16:57 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id B295E20022; Mon, 1 Jan 2007 23:14:27 +0100 (CET) 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 17390-02; Mon, 1 Jan 2007 23:14:27 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id AC2F31FFE3; Mon, 1 Jan 2007 23:12:03 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 8248F2000C for ; Mon, 1 Jan 2007 23:11:57 +0100 (CET) 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 17161-03 for ; Mon, 1 Jan 2007 23:11:52 +0100 (CET) Original-Received: from mail.pragma-ade.net (dsl-083-247-100-017.solcon.nl [83.247.100.17]) by ronja.ntg.nl (Postfix) with SMTP id A0FAE1FFE2 for ; Mon, 1 Jan 2007 23:11:51 +0100 (CET) Original-Received: from [10.100.1.102] (unverified [10.100.1.102]) by controller-1 (SurgeMail 3.7b8) with ESMTP id 113 for ; Mon, 01 Jan 2007 23:14:20 +0100 User-Agent: Thunderbird 1.5.0.9 (Windows/20061207) Original-To: ntg-context@ntg.nl In-Reply-To: X-Server: High Performance Mail Server - http://surgemail.com r=-274017400 X-Authenticated-User: hagen@controller-1 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:32415 Archived-At: This is a multi-part message in MIME format. --------------050207000507060405000608 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit > On Mon, 1 Jan 2007, Aditya Mahajan wrote: > > >>> is it also possible to specify the maximum number of runs in the TeX-file, >>> for example "\maxruns{11}" ? >>> >> AFAIU, no. I have not checked if runs=11 on top of the file is read. >> > > No, runs=11 is not read. But anyway, I would need something like > "\maxruns{11}", because I would like to put it in a module, that needs a > lot of runs to converge (vertical spacing adjustment to get a letter where > the last page is filled at least to 30%). > Cheers, Peter > > hm, long long ago i played with strategies for this ... the attached file shows some of this ... food for thought Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl ----------------------------------------------------------------- --------------050207000507060405000608 Content-Type: application/x-tex; name="opti-pag.tex" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="opti-pag.tex" % interface=en output=pdftex % % If needed, say --runs=10 (since the number of runs is limited) % % texexec --optimize --mode=optimize-balance optimize % texexec --optimize --mode=optimize-gutter optimize % texexec --optimize --mode=optimize-height optimize % texexec --optimize --mode=optimize-font optimize % % texexec >= 2.0 (--optimize) % context >= 2000.03.01 (initializations) % % For the moment I stick to simple mode-wise optimizations, % since base/pos/snap based stuff is not yet stable and public. % \enablemode[optimize-balance] % \enablemode[optimize-gutter] % \enablemode[optimize-height] % \enablemode[optimize-font] \setupbodyfont[10pt] \setuptolerance[verytolerant,stretch] \dontcomplain \starttext \startmode[optimize-balance] \setupcolumns[ntop=4] \stopmode \def\MinimalNOfLines {8} \def\GutterStep {.25\bodyfontsize} \def\HeightStep {\openlineheight} \def\FontStep {1pt} \startmode[optimize-height] \doifstrategyvariable{prevdim} {\setuplayout[footerdistance=\strategyvariable{prevdim}]} \stopmode \startmode[optimize-gutter] \doifstrategyvariable{prevdim} {\scratchdimen=1.5\bodyfontsize \advance\scratchdimen by \strategyvariable{prevdim} \expanded{\setupcolumns[distance=\the\scratchdimen]}} \stopmode \startmode[optimize-font] \doifstrategyvariable{prevdim} {\scratchdimen=\bodyfontsize \advance\scratchdimen by \strategyvariable{prevdim} \ifdim\scratchdimen<13pt \expandafter\normalizebodyfontsize\the\scratchdimen\to\tempbodyfontsize \expanded{\switchtobodyfont[\tempbodyfontsize]} \else \abortstrategy \fi} \stopmode \startcolumns[n=3] \input tufte \par \input tufte \par \input tufte \par \input tufte \par \input tufte \par \input tufte \par \input tufte \par \stopcolumns \startmode[optimize-height,optimize-gutter,optimize-font] \ifnum\lastpage>1 \ifnum\finalcolumnlines<\MinimalNOfLines\relax \doifmode{optimize-height}{\scratchdimen=\HeightStep} \doifmode{optimize-gutter}{\scratchdimen=\GutterStep} \doifmode{optimize-font} {\scratchdimen=\FontStep } \doifstrategyvariable{prevdim} {\advance\scratchdimen by \strategyvariable{prevdim}} \setstrategyvariable{prevdim}{\the\scratchdimen} \else \retainstrategyvariable{prevdim} \fi \else \abortstrategy \fi \stopmode \stoptext --------------050207000507060405000608 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context --------------050207000507060405000608--