From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/83667 Path: news.gmane.org!not-for-mail From: Dmitriy Tokarev Newsgroups: gmane.comp.tex.context Subject: Setup font size by dimension variable Date: Sun, 04 Aug 2013 16:29:47 +0600 Message-ID: <140641375612187@web25d.yandex.ru> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1375612221 31725 80.91.229.3 (4 Aug 2013 10:30:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 4 Aug 2013 10:30:21 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Aug 04 12:30:24 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 1V5vZu-0003vR-L8 for gctc-ntg-context-518@m.gmane.org; Sun, 04 Aug 2013 12:30:22 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id DE5EB101E3; Sun, 4 Aug 2013 12:29:44 +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 qhLq+BNpJdlO; Sun, 4 Aug 2013 12:29:34 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 03799101E5; Sun, 4 Aug 2013 12:29:34 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 01E2A101E5 for ; Sun, 4 Aug 2013 12:29:33 +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 MIPJ28GtEaPS for ; Sun, 4 Aug 2013 12:29:13 +0200 (CEST) Original-Received: from filter4-ams.mf.surf.net (filter4-ams.mf.surf.net [192.87.102.72]) by balder.ntg.nl (Postfix) with ESMTP id 7F887101E3 for ; Sun, 4 Aug 2013 12:29:13 +0200 (CEST) Original-Received: from forward5.mail.yandex.net (forward5.mail.yandex.net [IPv6:2a02:6b8:0:602::5]) by filter4-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r74ATnr7030748 for ; Sun, 4 Aug 2013 12:29:49 +0200 Original-Received: from web25d.yandex.ru (web25d.yandex.ru [77.88.47.165]) by forward5.mail.yandex.net (Yandex) with ESMTP id 0EF64120071F for ; Sun, 4 Aug 2013 14:29:47 +0400 (MSK) Original-Received: from 127.0.0.1 (localhost.localdomain [127.0.0.1]) by web25d.yandex.ru (Yandex) with ESMTP id B63944348776; Sun, 4 Aug 2013 14:29:47 +0400 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ya.ru; s=mail; t=1375612187; bh=7lRywOIWttzsye4kggE+udLzQBQxcC+smZCAwMTgmfk=; h=From:To:Subject:Date; b=AK3o4fKwZG67TNRj0THRZ0Q8unvXZp++cUiISSkzreq5eKsPrOiG225k5XsVTm/ch F59F+EseIDFXLDQum8pSBMIC0RR10dWfHGTJjcm0ZPGM3g2qxO8dRbTmOCs09bxyq7 +XFqiiXEcVOX97k1hhxWiH/OVA1dzNfGvFWaA6wQ= Original-Received: from pool-31-207-158-155.is74.ru (pool-31-207-158-155.is74.ru [31.207.158.155]) by web25d.yandex.ru with HTTP; Sun, 04 Aug 2013 14:29:47 +0400 Envelope-From: dtkrv@yandex.ru X-Mailer: Yamail [ http://yandex.ru ] 5.0 X-Bayes-Prob: 0.6311 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=2a02:6b8:0:602::5; country=RU X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 01K8ytNRB - bc44cdbd374a - 20130804 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:83667 Archived-At: Hi all, I want to set the font size by using the dimension variable, but it doesn't work. What am I doing wrong? \definemeasure[AAA][20pt] \newdimen\BBB \BBB=20pt \starttext TEXT % don't work \switchtobodyfont[\measure{AAA}] AAA % don't work \switchtobodyfont[\the\BBB] BBB % ok \switchtobodyfont[20pt] TEXT 20pt \stoptext -- Dmitriy ___________________________________________________________________________________ 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 ___________________________________________________________________________________