From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/83670 Path: news.gmane.org!not-for-mail From: Philipp Gesang Newsgroups: gmane.comp.tex.context Subject: Re: Setup font size by dimension variable Date: Sun, 4 Aug 2013 12:48:05 +0200 Message-ID: <20130804104805.GB3182@phlegethon> References: <140641375612187@web25d.yandex.ru> <20130804104556.GA3182@phlegethon> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0478511152==" X-Trace: ger.gmane.org 1375613341 9095 80.91.229.3 (4 Aug 2013 10:49:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 4 Aug 2013 10:49:01 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Aug 04 12:49:04 2013 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1V5vry-0000Ne-9j for gctc-ntg-context-518@m.gmane.org; Sun, 04 Aug 2013 12:49:02 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 1106F10213; Sun, 4 Aug 2013 12:48:25 +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 ubDnAPUaW1S4; Sun, 4 Aug 2013 12:48:22 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 82063101EE; Sun, 4 Aug 2013 12:48:22 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 12D6D101EE for ; Sun, 4 Aug 2013 12:48: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 XwLEEqkFezP6 for ; Sun, 4 Aug 2013 12:48:20 +0200 (CEST) Original-Received: from filter2-ams.mf.surf.net (filter2-ams.mf.surf.net [192.87.102.70]) by balder.ntg.nl (Postfix) with ESMTP id 000F1101E5 for ; Sun, 4 Aug 2013 12:48:19 +0200 (CEST) Original-Received: from relay.uni-heidelberg.de (relay.uni-heidelberg.de [129.206.100.212]) by filter2-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r74Amul1016426 for ; Sun, 4 Aug 2013 12:48:56 +0200 Original-Received: from ix.urz.uni-heidelberg.de (cyrus-portal.urz.uni-heidelberg.de [129.206.100.176]) by relay.uni-heidelberg.de (8.14.1/8.14.1) with ESMTP id r74AmtMB015330 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 4 Aug 2013 12:48:56 +0200 Original-Received: from extmail.urz.uni-heidelberg.de (extmail.urz.uni-heidelberg.de [129.206.100.140]) by ix.urz.uni-heidelberg.de (8.13.8/8.13.8) with ESMTP id r74AmtN8020244 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 4 Aug 2013 12:48:55 +0200 Original-Received: from localhost (p5084473E.dip0.t-ipconnect.de [80.132.71.62]) (authenticated bits=0) by extmail.urz.uni-heidelberg.de (8.13.4/8.13.1) with ESMTP id r74AmseK012727 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Sun, 4 Aug 2013 12:48:55 +0200 Mail-Followup-To: mailing list for ConTeXt users In-Reply-To: <20130804104556.GA3182@phlegethon> X-Operating-System: Linux phlegethon 3.9.9-1-ARCH User-Agent: Mutt/1.5.21 (2010-09-15) X-Bayes-Prob: 0.0003 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=129.206.100.212; country=DE; region=01; city=Heidelberg; latitude=49.4167; longitude=8.7000; http://maps.google.com/maps?q=49.4167,8.7000&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0QK8yMU04 - 838be038beb9 - 20130804 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.70 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:83670 Archived-At: --===============0478511152== Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="QKdGvSO+nmPlgiQ/" Content-Disposition: inline --QKdGvSO+nmPlgiQ/ Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable =C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7 > =C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7 >=20 > > Hi all, > >=20 > > I want to set the font size by using the dimension variable, but it doe= sn't work. What am I doing wrong? > >=20 > > \definemeasure[AAA][20pt] > > \newdimen\BBB \BBB=3D20pt > >=20 > > \starttext > > TEXT > >=20 > > % don't work > > \switchtobodyfont[\measure{AAA}] > > AAA > >=20 > > % don't work > > \switchtobodyfont[\the\BBB] > > BBB > >=20 > > % ok > > \switchtobodyfont[20pt] > > TEXT 20pt > >=20 > > \stoptext >=20 > Hi Dmitriy, >=20 > the size-related arguments to \switchtobodyfont and > \setupbodyfont aren=E2=80=99t real TeX dimensions but identifiers for > predefined bodyfont sets. Example: >=20 > \def\mainfontsize{20pt} > \definebodyfontenvironment [\mainfontsize] >=20 > \starttext > TEXT > \switchtobodyfont [\mainfontsize] > TEXT 20pt > \stoptext >=20 > See this thread for some background info: >=20 > http://www.mail-archive.com/ntg-context@ntg.nl/msg63901.html Sorry for the self-reply, but I just remembered that I already wikified the topic: http://wiki.contextgarden.net/unexpected_behavior#Treacherous_Dimensions --QKdGvSO+nmPlgiQ/ Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.20 (GNU/Linux) iQEcBAEBCgAGBQJR/jFlAAoJEI7yfcKNwM1+0hkH/2xcYYzGbwisrcGYDCC6D38E 8exmHi3XOEJ/Dp6UI1YkBrrF7HI9YjU+cy3b3dtQC3D/M9UEtBpa4LuzKTWPxl5X d12TiatISbMZLIejwKwnO5dJc5iDNMIqzooDdzMf2TDOEwXAeEd6bzFzIHMCWAaL //6tryGh+3+uJ5oCJMnSZVfcZ0Flq6kFXVP303GPru1SDePl2FLLQYt/i6BnHQpu 4g57QbwofhzIxlvT3PD8ViIn/YFoEHg56XC4RA3DdXkx0Q/e4AkW6if0qHFXb6YU 1K5xuAm1uKmXUkiqgl2i4M4CPEXbuOHKt6RjrCAAvf0D47Brlx1Jpwrq1hdG1Do= =CORE -----END PGP SIGNATURE----- --QKdGvSO+nmPlgiQ/-- --===============0478511152== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ --===============0478511152==--