From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/76622 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 15:58:57 +0200 Message-ID: References: <20120602181346.GC22936@phlegethon> <20120603100120.GD22936@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 1338731948 16851 80.91.229.3 (3 Jun 2012 13:59:08 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 3 Jun 2012 13:59:08 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Jun 03 15:59:08 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 1SbBKk-0005Ql-UT for gctc-ntg-context-518@m.gmane.org; Sun, 03 Jun 2012 15:59:07 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id B01E6101E4; Sun, 3 Jun 2012 15:59:06 +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 MHxaMILpRzXK; Sun, 3 Jun 2012 15:59:05 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 20232101DF; Sun, 3 Jun 2012 15:59:05 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D564E101DF for ; Sun, 3 Jun 2012 15:59:03 +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 ou0v1q6509yW for ; Sun, 3 Jun 2012 15:59:02 +0200 (CEST) Original-Received: from filter3-ams.mf.surf.net (filter3-ams.mf.surf.net [192.87.102.71]) by balder.ntg.nl (Postfix) with ESMTP id BBB0D101DD for ; Sun, 3 Jun 2012 15:59:02 +0200 (CEST) Original-Received: from mail-wi0-f169.google.com (mail-wi0-f169.google.com [209.85.212.169]) by filter3-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id q53Dx1Xf024234 for ; Sun, 3 Jun 2012 15:59:01 +0200 Original-Received: by wibhn14 with SMTP id hn14so1860702wib.2 for ; Sun, 03 Jun 2012 06:59:01 -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=TsdBl8mjyiEXSVxtt3cbUiRTqnCNTKd7DvNSuHjkP8U=; b=mTE2YBsCM3AhtkgF1ysJbWe7bMx0ENGH6wJDqDkWS5bpXWczrLf5aicBWGWqE5VfBZ 9IcKoJhicIfwVNrfQgI+DgqYtkwCIpXVKQwoSHl6aXTPmtaUn7U89I1sy/HiCeBRsaWl GmFSfw1QkO6+TwArhbGnFif8tCiVXudL3zt0INJ6AVn/ToK2PsI0TjrQ0viydaGw1NRo 8ityoE+L/JNh7t2VRm0EKjYZES0Uh2eY8gkhuOCaSpw6NT09LGWPUgHsyGFBEC1iq2vj uLf4xcW7lOItTqHnw/Tr51zPp6Myn4fTRyeypjZOGbv9PpQbzB2gNLUPAIUD8gCLh+1M 3q8g== Original-Received: by 10.216.135.204 with SMTP id u54mr7719807wei.40.1338731941433; Sun, 03 Jun 2012 06:59:01 -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 gv4sm20640828wib.8.2012.06.03.06.58.59 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 03 Jun 2012 06:59:00 -0700 (PDT) In-Reply-To: <20120603100120.GD22936@phlegethon> X-Mailer: Apple Mail (2.1278) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.212.169; 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: 03HhNX1zO - b28819b96e1f - 20120603 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.71 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:76622 Archived-At: Am 03.06.2012 um 12:01 schrieb Philipp Gesang: > Hi Wolfgang! > = > =B7=B7=B7=B7=B7=B7=B7= =B7=B7 > = >> Am 02.06.2012 um 20:13 schrieb Philipp Gesang: >> = >>> Dear listmates, >>> = >>> with \switchtobodyfont I get the interface message =93fonts:14=94 >>> from mult-mes.lua (=93bodyfont %s is defined (can better be done >>> global)=94) which is kinda hard to grep for :( Example: >>> = >>> \definebodyfont[42pt][rm][default] >>> \starttext >>> \switchtobodyfont [42pt] >>> \setupbodyfont [42pt] >>> \stoptext >>> = >>> Which results in: >>> = >>> =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 42pt is defined (can better be done global) >>> fonts > bodyfont 50.4pt is defined (can better be done global) >>> fonts > bodyfont 40.32pt is defined (can better be done globa= l) >>> <... /> >>> =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 >>> = >>> (\setupbodyfont doesn=92t cause it.) It seems harmless but (a) I >>> have a conditional font change that may repeat hundreds of times >>> over the course of a document and it clutters my terminal, and >>> (b) it=92s a warning after all, so everything is not as it is >>> supposed to be. What=92s it telling me, and why? >> = >> = >> Add \definebodyfontenvironment: >> = >> \definebodyfontenvironment[42pt] >> \starttext >> \setupbodyfont[42pt] >> \stoptext > = > This is getting interesting now. I already do as you say, but a > bit differently: I=92m defining font sizes on the fly, however they > are created from dimensions, so my macros actually expand to > something like: > = > =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. ??? > Hadn=92t thought about \switchtobodyfont expecting integers. Don=92t know what=92s the problem but the message doesn=92t appear when you use for example 42.1pt. 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 ___________________________________________________________________________= ________