From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.7 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, HTML_MESSAGE,MAILING_LIST_MULTI,T_SCC_BODY_TEXT_LINE,URIBL_SBL_A autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 24749 invoked from network); 19 May 2023 09:43:44 -0000 Received: from zapf.ntg.nl (5.39.185.232) by inbox.vuxu.org with ESMTPUTF8; 19 May 2023 09:43:44 -0000 Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 28FDC1C345E; Fri, 19 May 2023 11:43:19 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.ntg.nl 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 21dgqfferojJ; Fri, 19 May 2023 11:43:18 +0200 (CEST) Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id F1A38A7F; Fri, 19 May 2023 11:43:17 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 5C3FCA7F for ; Fri, 19 May 2023 11:43:16 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.ntg.nl 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 Ej9-8M3q2JeA for ; Fri, 19 May 2023 11:43:15 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=213.125.118.53; helo=mail.rna.nl; envelope-from=gerben.wierda@rna.nl; receiver= Received: from mail.rna.nl (mail.rna.nl [213.125.118.53]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 2FDDD2F7 for ; Fri, 19 May 2023 11:43:14 +0200 (CEST) Received: from smtpclient.apple (hermione.rna.nl [192.168.2.86]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by albus.rna.nl (Postfix) with ESMTPSA id 9A6AE17DB6472 for ; Fri, 19 May 2023 11:43:11 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rna.nl; s=dkim_rsa2048; t=1684489391; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=BeQ+Pr8zc+1PusLXCH4/B/tirzK1tjxHgZdM9IlkaOo=; b=gh3Birx4yNV2t3BU7DxWb7WQk4JIb8uXymmFN7m0OuIwFWCT3c42ja+oqUyp5giiRkRZxf Z8HFJUdIDtLUXNVpQEop2+5qu/pi09IVckfbSQNd3tGxeEOXacSWuu/40R/EgJBzD8Mwmp QxwXkUxfD3M9/X1lq6WDcNcos55OMyh1aH87I5djvRM1fTqPuFjx7Ioo57qSjZk6gC8ngS J1Me4S2eo0gHWgCCsKK51wlhB7WVNeXYgZH7T5ewnrwsqJvW9y7Co2+bIHt7rRsZlROmS7 HXnKra5LNLW5C6AOTWLXNIW0JYaww38sC0GGwxw3zUIDVwI47lY0KNE5DQ4zxg== Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.3\)) Message-Id: Date: Fri, 19 May 2023 11:43:11 +0200 To: mailing list for ConTeXt users X-Mailer: Apple Mail (2.3696.120.41.1.3) Subject: [NTG-context] Probably simple: using a variable for \switchtobodyfont size X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.38 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Gerben Wierda via ntg-context Reply-To: mailing list for ConTeXt users Cc: Gerben Wierda Content-Type: multipart/mixed; boundary="===============0904085411423473301==" Errors-To: ntg-context-bounces@ntg.nl Sender: "ntg-context" --===============0904085411423473301== Content-Type: multipart/alternative; boundary="Apple-Mail=_0541671E-66EB-4702-B53A-B62A96D9E893" --Apple-Mail=_0541671E-66EB-4702-B53A-B62A96D9E893 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 I want to use a variable for a font size so I can set it based on = language (as some translated texts have widely different sizes) This fails: %=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D \newdimen\relationsFontSize \relationsFontSize=3D8pt \starttext \switchtobodyfont[\relationsFontSize] Hello, world! \stoptext %=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D How can I use a variable to steer \switchtobodyfont size? Gerben Wierda (LinkedIn , = Mastodon ) R&A IT Strategy (main site) Book: Chess and the Art of Enterprise=C2=A0Architecture = Book: Mastering ArchiMate --Apple-Mail=_0541671E-66EB-4702-B53A-B62A96D9E893 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii
I want to use a variable for a font size so I can set it = based on language (as some translated texts have widely different = sizes)

This = fails:

%=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D
\newdimen\relationsFontSize
\relationsFontSize=3D8pt
\starttext
\switchtobodyfont[\relationsFontSize]
Hello, = world!
\stoptext
%=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D

How can I use a variable to steer \switchtobodyfont = size?


= --Apple-Mail=_0541671E-66EB-4702-B53A-B62A96D9E893-- --===============0904085411423473301== 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 / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___________________________________________________________________________________ --===============0904085411423473301==--