From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/83669 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:45:56 +0200 Message-ID: <20130804104556.GA3182@phlegethon> References: <140641375612187@web25d.yandex.ru> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0386665176==" X-Trace: ger.gmane.org 1375613221 7966 80.91.229.3 (4 Aug 2013 10:47:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 4 Aug 2013 10:47:01 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Aug 04 12:47: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 1V5vq2-0003qp-Qz for gctc-ntg-context-518@m.gmane.org; Sun, 04 Aug 2013 12:47:02 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 266ED101F0; Sun, 4 Aug 2013 12:46: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 BGnC3gW0+U7x; Sun, 4 Aug 2013 12:46:23 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 872A8101E5; Sun, 4 Aug 2013 12:46:23 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 2131A101E5 for ; Sun, 4 Aug 2013 12:46:22 +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 kPA3Iu7uLoz1 for ; Sun, 4 Aug 2013 12:46:11 +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 E590E101E3 for ; Sun, 4 Aug 2013 12:46:11 +0200 (CEST) Original-Received: from relay2.uni-heidelberg.de (relay2.uni-heidelberg.de [129.206.210.211]) by filter1-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r74AklgM022130 for ; Sun, 4 Aug 2013 12:46:48 +0200 Original-Received: from ix.urz.uni-heidelberg.de (cyrus-portal.urz.uni-heidelberg.de [129.206.100.176]) by relay2.uni-heidelberg.de (8.13.8/8.13.8) with ESMTP id r74AkkXW017147 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 4 Aug 2013 12:46:47 +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 r74AkkQx019766 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 4 Aug 2013 12:46:46 +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 r74AkjTf012551 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Sun, 4 Aug 2013 12:46:46 +0200 Mail-Followup-To: mailing list for ConTeXt users In-Reply-To: <140641375612187@web25d.yandex.ru> 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.210.211; 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: 0RK8yKL16 - 1c27011ef2b1 - 20130804 (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.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:83669 Archived-At: --===============0386665176== Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="7JfCtLOvnd9MIVvH" Content-Disposition: inline --7JfCtLOvnd9MIVvH 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 > Hi all, >=20 > I want to set the font size by using the dimension variable, but it doesn= '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 Hi Dmitriy, the size-related arguments to \switchtobodyfont and \setupbodyfont aren=E2=80=99t real TeX dimensions but identifiers for predefined bodyfont sets. Example: \def\mainfontsize{20pt} \definebodyfontenvironment [\mainfontsize] \starttext TEXT \switchtobodyfont [\mainfontsize] TEXT 20pt \stoptext See this thread for some background info: http://www.mail-archive.com/ntg-context@ntg.nl/msg63901.html Best regards, Philipp --7JfCtLOvnd9MIVvH Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.20 (GNU/Linux) iQEcBAEBCgAGBQJR/jDkAAoJEI7yfcKNwM1+2KMH/1wKzl6UbUN2PF2DPyWla6CR 4QcXsVf0PmJHHR7lvzLOWxBOePjk5Iwkp7+ie9OrosuX5JNoaT6+pZ+O+ODIoQ0C WK0veoMrsigVD+L7p5GNa8aHlcb2ZXgALmvP6jV08thz8BcQnfoGqvQacuTglBlW +Sf2HXpC4voh+YZpOeSg01uY7v48T8xsCOo/Hqmdj8N8SGPlNf4tyqJYtdA8U5nA TqoMlpx0HSJFJVM1tLeJu753hN5j7oqKH+TqBw8fxGfn7rjyKgri0FDZUD43D7BL vbJ3yF9urFU253mScqxrxsQYsx04p9mz2VqW3SZCvG7r8Ifwbgq6XlhPyEDw/0o= =rtow -----END PGP SIGNATURE----- --7JfCtLOvnd9MIVvH-- --===============0386665176== 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 ___________________________________________________________________________________ --===============0386665176==--