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, MAILING_LIST_MULTI,URIBL_SBL_A autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 28302 invoked from network); 15 Aug 2023 17:10:05 -0000 Received: from cgl.ntg.nl (5.39.185.202) by inbox.vuxu.org with ESMTPUTF8; 15 Aug 2023 17:10:05 -0000 Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 2B82048299A for ; Tue, 15 Aug 2023 19:09:15 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at cgl.ntg.nl Received: from cgl.ntg.nl ([127.0.0.1]) by localhost (cgl.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id GdnyKlQbOV2v for ; Tue, 15 Aug 2023 19:09:14 +0200 (CEST) Received: from cgl.ntg.nl (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id C5F724829AC for ; Tue, 15 Aug 2023 19:08:41 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 017C9481ED1 for ; Tue, 15 Aug 2023 19:08:21 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at cgl.ntg.nl Received: from cgl.ntg.nl ([127.0.0.1]) by localhost (cgl.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 3N_tqgABHJ_m for ; Tue, 15 Aug 2023 19:08:20 +0200 (CEST) Received: from ewsoutbound.kpnmail.nl (ewsoutbound.kpnmail.nl [195.121.94.186]) (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 cgl.ntg.nl (Postfix) with ESMTPS id 92C8C481EC6 for ; Tue, 15 Aug 2023 19:08:20 +0200 (CEST) X-KPN-MessageId: 34c5f3f7-3b8e-11ee-87d3-00505699b430 Received: from smtp.kpnmail.nl (unknown [10.31.155.8]) by ewsoutbound.so.kpn.org (Halon) with ESMTPS id 34c5f3f7-3b8e-11ee-87d3-00505699b430; Tue, 15 Aug 2023 19:07:25 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xs4all.nl; s=xs4all01; h=content-type:subject:from:to:mime-version:date:message-id; bh=Yq00jU4O4n+yFVN7RDypTi4YkNY0diUU/IhG6Bu5ZFE=; b=rRAe3s9WZVlL91+xPfB6nxtog/qGYdzrswMDoxjI1AsPti+a00JCdA7xSklvnRUjwgr86LQufiDFV owDM3Uduc3e3hIu0OVa+1FGl3cEUmH0VWSDIcdgTnG/FNJn1pQFNw2IMvCqa/R+stLkgPwuIS2DWaI xIeU0gAfAek66Osm0fN3yK7vxqt34FteP4agBT8rprY3khebl187Gl8NuustWPqKnZciUk2XHierub pw+CreSJS5G2gHy6rvngnl+2vyP3CZqoW3cKARDWGTnvW0Ahm/lQS0D5PGxNCaA0clzwkEAvsizoYC 8sOHEOmlNK7oWtcDz3fA/4y5KNjAfGw== X-KPN-MID: 33|mbDgT03w8182Mc8jmwwrW4Qk0ezLjQeJQocMDrGmmQBPdsxLLoHzm+gu7RnPV95 QRoYP9ikSDikYvFYs3FT4gWt3+VEe7o1xkmP0lgd++3E= X-KPN-VerifiedSender: Yes X-CMASSUN: 33|LecCYKazDyv1hkeEDrVt/RVDDzLbJGnl42LWNpfPWwQylcXC0ruL+s7vlO0o86j OJPmKvhXx2jDDZjm8hcm0NA== X-Originating-IP: 213.125.29.162 Received: from [10.100.1.105] (d57d1da2.static.ziggozakelijk.nl [213.125.29.162]) by smtp.xs4all.nl (Halon) with ESMTPSA id 557ef07b-3b8e-11ee-874e-00505699d6e5; Tue, 15 Aug 2023 19:08:20 +0200 (CEST) Message-ID: <5c815076-7a4d-2e27-d10e-8694e5d928ba@xs4all.nl> Date: Tue, 15 Aug 2023 19:08:19 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.14.0 Content-Language: en-US To: mailing list for ConTeXt users From: Hans Hagen Message-ID-Hash: N62KMQHGQQ5JNSZLY2SGBGXMFMZW27HW X-Message-ID-Hash: N62KMQHGQQ5JNSZLY2SGBGXMFMZW27HW X-MailFrom: j.hagen@xs4all.nl X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.8 Precedence: list Reply-To: mailing list for ConTeXt users Subject: [NTG-context] new upload List-Id: mailing list for ConTeXt users Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii"; format="flowed" Content-Transfer-Encoding: 7bit Hi, I uploaded a new lmtx (some new - experimental - things will be explained after the ctx meeting), but there's one thing that is somewhat important. In addition to the built in units we can now have so called user units. There is some more info about this in the lowlevel-registers manual. One of the predefined units is 'uu' with an associated \ununit (dimension) variable and it's is also interfaced to metafun. That means that when you use uu in metapost graphics you have to make sure that you save the meaning and/or numeric uu now. The idea is that just as in mp one can say 20xx with xx being a (sort of) unit, one can do the same in tex. Think of \newdimension \MyUnitA \MyUnitA 1.23pt \pushoverloadmode % just in case \newuserunit\MyUnitA ua % binds the unit to the variable \popoverloadmode x\hskip 10ua\relax x The units starting with 'u' are considered user units but be carefulk with other combinations as we have (and will have more) built into context ones, like pi : pi for Mikael ft : foot for Alan fs : (global body) font size tw : (layout) text width th : (layout) text height hs : (current) hsize vs : (current) vsize cd : (when set) column distance cw : (when set) column width cx : combination cell width uu : user unit (\METAFUN) So Mikael can now have test \hskip 3pi\relax test and Alan can have \setuplayout [width=1ft] to be consistent with inches. The reason why we have this mechanism is that it provides a level of abstraction. It might evolve over time but don't expect the 600+ units possible to show up because one needs sensible shortcuts. Already built in unit always win and you cna only bind to already defined quantities. Here's one for those who want to go beyond the normal: \newdimension \FooA \FooA 1.23pt \newdimen \FooB \FooB 12.3pt \protected\def\FooC {\the\dimexpr\FooA +\FooB\relax} So you can now figure how 'cx' is defined in a dynamic way. Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl ----------------------------------------------------------------- ___________________________________________________________________________________ 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 ___________________________________________________________________________________