From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/76624 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: =?windows-1252?q?=93bodyfont_=25s_is_defined_=28can?= =?windows-1252?q?_better_be_done_global=29=94?= Date: Sun, 3 Jun 2012 17:12:27 +0200 Message-ID: References: <20120602181346.GC22936@phlegethon> <20120603100120.GD22936@phlegethon> <20120603142723.GE22936@phlegethon> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Apple Message framework v1278) Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1338736367 14829 80.91.229.3 (3 Jun 2012 15:12:47 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 3 Jun 2012 15:12:47 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Jun 03 17:12:47 2012 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 1SbCTw-0002Ka-A3 for gctc-ntg-context-518@m.gmane.org; Sun, 03 Jun 2012 17:12:40 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 0214E101DD; Sun, 3 Jun 2012 17:12:39 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with LMTP id x-DZjgGalePg; Sun, 3 Jun 2012 17:12:37 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 5915B101DF; Sun, 3 Jun 2012 17:12:37 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id A568E101DF for ; Sun, 3 Jun 2012 17:12:35 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with LMTP id c8Xey19OEuj7 for ; Sun, 3 Jun 2012 17:12:34 +0200 (CEST) Original-Received: from filter1-til.mf.surf.net (filter1-til.mf.surf.net [194.171.167.217]) by balder.ntg.nl (Postfix) with ESMTP id 76CF6101DD for ; Sun, 3 Jun 2012 17:12:34 +0200 (CEST) Original-Received: from mail-wg0-f41.google.com (mail-wg0-f41.google.com [74.125.82.41]) by filter1-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id q53FCUeJ011912 for ; Sun, 3 Jun 2012 17:12:32 +0200 Original-Received: by wgbds1 with SMTP id ds1so1892390wgb.2 for ; Sun, 03 Jun 2012 08:12:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; bh=Of5rNWdTBT9qVChwa1fToCvvFejXNqTGSBZP88p1oQk=; b=snOQkbv0edfaha2E5p9f+qU0WZd7lrDo0rGkBTVVk0V7YzFgkHPf2P+15gt2dpxZ1A 6Qaa7LJGHY7Em5kAVH3VvkkUYHktC7dFizQvRZj29lA5is96CbvL+C52HSAml3Engg2m fJBYRtyjvm55NvZPUpkx9f4ZXriez4z3asnus/uXW3PuSr0YUNrBXtV2iNiHPKpeRzaK cgo5C+uRHIuPlOdfQjyfl088o+8rr3a+R22T1PipEezC1+MR5sueqRl3DR0DgT16guNk 80+TEsWsOVHBEO1uqKjAnqKWdKGNQtEQ1li78uTArf9ziGDBVlPIj2Ynyq+prmpqUf7d 5LJw== Original-Received: by 10.216.213.22 with SMTP id z22mr8719797weo.184.1338736350702; Sun, 03 Jun 2012 08:12:30 -0700 (PDT) Original-Received: from [192.168.2.36] (p57AFB9BA.dip.t-dialin.net. [87.175.185.186]) by mx.google.com with ESMTPS id fo7sm13347125wib.9.2012.06.03.08.12.28 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 03 Jun 2012 08:12:29 -0700 (PDT) In-Reply-To: <20120603142723.GE22936@phlegethon> X-Mailer: Apple Mail (2.1278) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=74.125.82.41; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0RHhPcvzi - 722e19ebd0be - 20120603 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.217 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.13 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 Xref: news.gmane.org gmane.comp.tex.context:76624 Archived-At: Am 03.06.2012 um 16:27 schrieb Philipp Gesang: > Hi Wolfgang! > = > =B7=B7=B7=B7=B7=B7=B7= =B7=B7 >>> =B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7= =B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7= =B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7 >>> \definebodyfontenvironment[42.0pt] %% a dozen times >>> \starttext >>> \switchtobodyfont[42.0pt] %% hundreds of times >>> %\switchtobodyfont[42pt] %% <- this works, though >>> foo >>> \stoptext >>> =B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7= =B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7= =B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7 >>> = >>> Which then results in this warning: >>> =B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7= =B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7= =B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7 >>> fonts > bodyfont 42.0pt is defined (can better be done global) >>> =B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7= =B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7= =B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7 >>> = >>> Although the size has been =84defined=93. My problem appears to be >>> that I=92m abusing dimensions as makeshift floats to calculate >>> relative font sizes, interlinespace etc. via \dimexpr. >> = >> ??? > = > It=92s about decrementing font size and interlinespace until the > content fits a predefined box. > https://bitbucket.org/phg/context-stellen/src/3568dc7470fa/tex/context/th= ird/bstellen/t-bibelstellen.mkiv#cl-158 Look at the definition for \FittingText in supp-fun.mkiv: \starttext \ruledvbox{\FittingText{\hsize}{100pt}{Serif}{16pt}{1pt}{1}{\raggedright\in= put knuth\par}} \stoptext Wolfgang ___________________________________________________________________________= ________ If your question is of interest to others as well, please add an entry to t= he Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-cont= ext webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________