From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/94754 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: definebodyfontenvironment Date: Sat, 14 May 2016 20:00:57 +0200 Message-ID: <573767D9.80406@gmail.com> References: <46179FCC-3835-4C8A-B154-CB51D5079B44@uva.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============3815851693336663867==" X-Trace: ger.gmane.org 1463248945 6317 80.91.229.3 (14 May 2016 18:02:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 14 May 2016 18:02:25 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sat May 14 20:02:12 2016 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1b1dt8-0001tR-IC for gctc-ntg-context-518@m.gmane.org; Sat, 14 May 2016 20:02:06 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 999C3CAE4; Sat, 14 May 2016 20:01:20 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id iHigXXamPDYM; Sat, 14 May 2016 20:01:16 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id 9891BCAEC; Sat, 14 May 2016 20:01:16 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 6B86DCAE5 for ; Sat, 14 May 2016 20:01:15 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id lE6CHIMo8lAi for ; Sat, 14 May 2016 20:01:10 +0200 (CEST) Original-Received: from mail-wm0-f41.google.com (mail-wm0-f41.google.com [74.125.82.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id DDB5CCAE4 for ; Sat, 14 May 2016 20:01:00 +0200 (CEST) Original-Received: by mail-wm0-f41.google.com with SMTP id a17so75880834wme.0 for ; Sat, 14 May 2016 11:01:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to; bh=dBC8GYIm66hakn1VHOwJSoZC+LhNbb3jekGMAJ/DSlU=; b=BcW+Z1C/qKstqFIrLex2UfvK2Ocbio0BdUZ3H4nz4hTdUiCaT3lweV75TyQL5bVyRu ZrptJFXoQembfUD8mYJATmt4CObBLWM8mHLz0sVDgvgwhno3PTydJOuAfYHaPqi/txCw RnfQPhY8AwoRn8y+iFE8nbuZrEPkAyjifucgvCwT2NftoiDZjCWQUR5gWbUOvxfC4twf GLYq/K3OYs3dq3Fg3HkR7/KDeATpWpLITOsTT3moMv6ouGdj5HGTlTo+wqP75O5/ied8 2e7PghG7LCNtULGUDPkIaGe+LMSgOaUMGU1Wm9cnD7p7YMEw2/xBV9LENRT+frH+0kjy JHjQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to; bh=dBC8GYIm66hakn1VHOwJSoZC+LhNbb3jekGMAJ/DSlU=; b=Z6s5b3NkjwjSGeQPyBFPHPmjhXizpIiswihtnitT60zPRTFkUX2sodH0mloyVmDeeW iCa30U1u6JkpncGuThCqSesjhiHQg7JEoCdSQ90w6tQPFaWyvhHQ4V+q+zB0eQ7Xd+pN RzMWHvZIx4hJMGOnkqCM/yNm2TRJHM4fTavm6BBOHZ8aMcqvLa2ed0N4tarX7kZ3wCfe ucCOfdPXXcRjcm3nwh3ng7y0aPln+dSs3gp70Ko7tCOcSKer0CDhvM73IcmxTjkk+iJ8 9cSrSuNl4oPoRQEESx2JzLH9hxmakJfjnIQGuYgD6mf6kV6smu0oM9PNQ9DAodPHUtzA bUYg== X-Gm-Message-State: AOPr4FU2kGBQrGwTSDlA2CZUo+ToHu0cVhFw3L0xkoXnWfkPzd487/X55gXLqDRPRJXpxQ== X-Received: by 10.28.72.132 with SMTP id v126mr9682432wma.49.1463248860355; Sat, 14 May 2016 11:01:00 -0700 (PDT) Original-Received: from keima.localdomain (x2f28549.dyn.telefonica.de. [2.242.133.73]) by smtp.gmail.com with ESMTPSA id r204sm9409961wmg.20.2016.05.14.11.00.59 for (version=TLSv1/SSLv3 cipher=OTHER); Sat, 14 May 2016 11:00:59 -0700 (PDT) User-Agent: Postbox 4.0.8 (Macintosh/20151105) In-Reply-To: <46179FCC-3835-4C8A-B154-CB51D5079B44@uva.nl> X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 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" Xref: news.gmane.org gmane.comp.tex.context:94754 Archived-At: This is a multi-part message in MIME format. --===============3815851693336663867== Content-Type: multipart/alternative; boundary="------------020100090806040503040405" This is a multi-part message in MIME format. --------------020100090806040503040405 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit > Meer, Hans van der > 14. Mai 2016 um 17:55 > I like to execute this statement > \definebodyfontenvironment[somevalue] > in order to avoid lots of error messages as such: > fonts > bodyfont '8.0pt' is defined (can better be done global > > Is this definebodyfontenvironment macro fully executed each time it is > called or does ConTeXt remember and execute it once only? Just put it at the begin of the document. \definebodyfontenvironment[18pt] \starttext \dorecurse{10} {\begingroup \switchtobodyfont[18pt] \endgroup} \stoptext Wolfgang --------------020100090806040503040405 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit
14. Mai 2016 um 17:55
I like to execute this statement
\definebodyfontenvironment[somevalue]
in order to avoid lots of error messages as such:
fonts > bodyfont '8.0pt' is defined (can better be done global

Is this definebodyfontenvironment macro fully executed each time it is called or does ConTeXt remember and execute it once only?
Just put it at the begin of the document.

\definebodyfontenvironment[18pt]

\starttext

\dorecurse{10}
  {\begingroup
   \switchtobodyfont[18pt]
   \endgroup}

\stoptext

Wolfgang
--------------020100090806040503040405-- --===============3815851693336663867== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly90ZXguYWFuaGV0Lm5ldAphcmNoaXZlICA6IGh0dHA6Ly9mb3VuZHJ5LnN1cGVsZWMu ZnIvcHJvamVjdHMvY29udGV4dHJldi8Kd2lraSAgICAgOiBodHRwOi8vY29udGV4dGdhcmRlbi5u ZXQKX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX18= --===============3815851693336663867==--