From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/82150 Path: news.gmane.org!not-for-mail From: Cecil Westerhof Newsgroups: gmane.comp.tex.context Subject: Re: Defined and not defined and better be done global Date: Sat, 27 Apr 2013 11:44:19 +0200 Message-ID: References: <517AFD5D.3010401@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1367055862 6286 80.91.229.3 (27 Apr 2013 09:44:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 27 Apr 2013 09:44:22 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sat Apr 27 11:44:26 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 1UW1g8-0004NX-Oq for gctc-ntg-context-518@m.gmane.org; Sat, 27 Apr 2013 11:44:24 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 0F716101E9; Sat, 27 Apr 2013 11:44:24 +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 ic6Gvss6D7B1; Sat, 27 Apr 2013 11:44:22 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 737EF101E4; Sat, 27 Apr 2013 11:44:22 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 0A48F101E4 for ; Sat, 27 Apr 2013 11:44: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 ZIkypg8t5M8x for ; Sat, 27 Apr 2013 11:44:20 +0200 (CEST) Original-Received: from filter1-utr.mf.surf.net (filter1-utr.mf.surf.net [195.169.124.152]) by balder.ntg.nl (Postfix) with ESMTP id 4EE75101E0 for ; Sat, 27 Apr 2013 11:44:20 +0200 (CEST) Original-Received: from mail-we0-x236.google.com (mail-we0-x236.google.com [IPv6:2a00:1450:400c:c03::236]) by filter1-utr.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r3R9iJfw032319 for ; Sat, 27 Apr 2013 11:44:19 +0200 Original-Received: by mail-we0-f182.google.com with SMTP id s43so4240247wey.27 for ; Sat, 27 Apr 2013 02:44:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type:content-transfer-encoding; bh=il0cFb9253okkY8qbTvCSeQhgvGdUUXQCrXMlVQTJH8=; b=tcsbhHoA21IIYTGhGQ76waUxTyA9AgpyW6/rAbROROHugNDJszukAkfQTgQbGq1p9D DNI5FljxF/NEoufTvOrS9avV7usw0QhI8RsJIYYv2/5vsiLOqv5iyexeYvjN+MGRlCO9 wxgEhxSxPTXLo4VWmXDwzBOcP420iDJq8TG07j9/z8YZj5Xl+fYQ9IAaSEHqzI9joCYE xxzKWpyxIu+lMHaadBISZMerHj6pId3hPYlGkdaHVV5NwFVkCB69ePbsCq8y9zPB+ZNq pUsnRoz6jvV4rTG4LyVA3EerWAAVuAvPHE6hROGvUtSWVGxp3vLL4OVZv3aGhekjXEPo puRg== X-Received: by 10.194.62.18 with SMTP id u18mr38300576wjr.53.1367055859171; Sat, 27 Apr 2013 02:44:19 -0700 (PDT) Original-Received: by 10.194.109.233 with HTTP; Sat, 27 Apr 2013 02:44:19 -0700 (PDT) In-Reply-To: <517AFD5D.3010401@wxs.nl> X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=2a00:1450:400c:c03::236; country=IE X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 07JsVIj0x - 199c1bc8ab2a - 20130427 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) 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:82150 Archived-At: 2013/4/27 Hans Hagen : > On 4/26/2013 10:43 PM, Cecil Westerhof wrote: >> >> When running ConTeXt I see a lot of this kind of messages: >> fonts > bodyfont 15pt is defined (can better be done global) >> fonts > bodyfont 1.25em is defined (can better be done global) >> fonts > bodyfont 1.25em is not defined >> fonts > bodyfont 1.25em is defined (can better be done global) >> fonts > bodyfont 15pt is defined (can better be done global) >> fonts > bodyfont 1.25em is defined (can better be done global) >> fonts > bodyfont 1.25em is not defined >> fonts > bodyfont 1.25em is defined (can better be done global) >> fonts > bodyfont 15pt is defined (can better be done global) >> fonts > bodyfont 1.25em is defined (can better be done global) >> fonts > bodyfont 1.25em is not defined >> >> What am I doing wrong? > > > switching a bodyfont with an undefined bodyfontenvironment inside a group, > which is very inefficient > > (and a 1.5em bodyfont switch can probably better be replaced by a direct > font definition) I will look into the bodyenvironment stuff. Is not much to go on. :-( Had to delve into what I am doing. Was a =91little while ago=92 I wrote it. I thought that 1.5em was used for relative definitions. I have a inc file that I use. In this I have: \def\Title{\dodoubleempty\doTitle} \def\doTitle[#1][#2]{ \ifsecondargument \testpage[#2] \else \testpage[15] \fi \startalignment[center] { \myblank[2*big] \switchtobodyfont[1.5em] \bf\em#1 } \myblank \stopalignment } In this case I have in my mane document: \input /home/cecil/ConTeXt-inc/standard-init.inc \setupbodyfont[palatino,10pt] What would be a better way to do this? I prefer my include file deciding the increase of the font. -- = Cecil Westerhof ___________________________________________________________________________= ________ 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 ___________________________________________________________________________= ________