From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: from cgl.ntg.nl (Cgl.ntg.nl [5.39.185.202]) by inbox.vuxu.org (Postfix) with ESMTP id C35FB21540 for ; Sat, 1 Feb 2025 22:52:44 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 8D87648508E for ; Sat, 1 Feb 2025 22:52:43 +0100 (CET) Authentication-Results: cgl.ntg.nl (amavisd-new); dkim=pass (1024-bit key) reason="pass (just generated, assumed good)" header.d=ntg.nl DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ntg.nl; h= content-transfer-encoding:content-type:content-type :list-unsubscribe:list-subscribe:list-post:list-owner:list-help :list-archive:archived-at:list-id:subject:subject:reply-to :precedence:in-reply-to:from:from:references:content-language :user-agent:mime-version:date:date:message-id:received:received :received:received:received:received:received; s=cgl; t= 1738446761; x=1741038762; bh=1kp/9tjq5cy5bhJBtNE/OdNJFBq0jdvy2Ng mbloQQe8=; b=EOh2a/y92lAayYFIwlALLKLJaWN2tza8yFQ1iwhpXw/uuDYb2WO oiUlJD4XqU9WMZ+saeIHgs7zebZ3KnDY6iyeKBKYj/5yf7uqLnwRNoCo5pKeqB97 hF4daL/vhdUi3RmJVhUyk5QX+E678qiN6dlz/mM1luoX+mv6R/IT1m+Y= X-Virus-Scanned: Debian amavisd-new at cgl.ntg.nl Authentication-Results: cgl.ntg.nl (amavisd-new); dkim=fail (2048-bit key) reason="fail (message has been altered)" header.d=xs4all.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 wrboFaHn1_Po for ; Sat, 1 Feb 2025 22:52:41 +0100 (CET) Received: from cgl.ntg.nl (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 29332485091 for ; Sat, 1 Feb 2025 22:52:31 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id B93EE48505D for ; Sat, 1 Feb 2025 22:52:24 +0100 (CET) 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 OaX-CfQHOqjJ for ; Sat, 1 Feb 2025 22:52:24 +0100 (CET) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=195.121.94.168; helo=ewsoutbound.kpnmail.nl; envelope-from=j.hagen@xs4all.nl; receiver= Received: from ewsoutbound.kpnmail.nl (ewsoutbound.kpnmail.nl [195.121.94.168]) (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 3DD00485057 for ; Sat, 1 Feb 2025 22:52:23 +0100 (CET) X-KPN-MessageId: 0064f942-e0e7-11ef-8d8a-005056aba152 Received: from smtp.kpnmail.nl (unknown [10.31.155.37]) by ewsoutbound.so.kpn.org (Halon) with ESMTPS id 0064f942-e0e7-11ef-8d8a-005056aba152; Sat, 01 Feb 2025 22:53:42 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xs4all.nl; s=xs4all01; h=content-type:from:to:subject:mime-version:date:message-id; bh=lAX4m3SPR9VLMwDDHQcInwomAG1RfjsLCxgfYY9qkds=; b=VrVcYM3Aou6VlKgnvzw2AzsZiHdNXBfEgKckr/aIyZYudw8MHe8BvEy2tBJHGhThSSujlcITgFzJv C793MtUNYATY6OGgK2YUrxnjJ5EJEuds5oJwyaqo+e0kdtDU3FmFYAZTNDEX7M3cZ0I50Lt85ZsDeB 9FXGDNZDVSc4i3CEwfzs3jpMWaRps+8km8hcnTqXT5mA2xyi5xCmb4FEvGbq1Zqd8CZXswAa9GyC0m 6O7f3/Z9mLxH/JZYlO9lPpQLd46jWH1gmejhZOFPvcnkeDTbvn0f6m8ABXydxwvxne01HfDwJTJhKw ZnZWHzjRHsZFo7HxsAOS7QXKPtt5vuQ== X-KPN-MID: 33|AIxLK/LSUDVsV70HnLqP0nP5CgwoD/eBNrOILYWlgj4kFxunKVU4P0q+WsxIEE3 XYQBra/fzhuV6S3bIaflRAstgIhEo9YY4rm7+k/QdHRI= X-KPN-VerifiedSender: Yes X-CMASSUN: 33|yFq8kU1Dp2DfBtpViNORa0sD20H5Bv6uWeiO2XVVv42YbIl/Gr9CEGjV5OtyK1k TMX2HH474IJKB7c1aqWi8pw== 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 d1525aa6-e0e6-11ef-99f4-005056ab1411; Sat, 01 Feb 2025 22:52:23 +0100 (CET) Message-ID: <03fdc059-4fb5-452d-81a9-43b6a32260c6@xs4all.nl> Date: Sat, 1 Feb 2025 22:52:21 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: nl To: garulfo@azules.eu, mailing list for ConTeXt users References: <173844450982.3183021.12672925676379686558@cgl.ntg.nl> From: Hans Hagen In-Reply-To: <173844450982.3183021.12672925676379686558@cgl.ntg.nl> Message-ID-Hash: BOSADIX6TMH53OFXU2V7WKMLZTHDY3UW X-Message-ID-Hash: BOSADIX6TMH53OFXU2V7WKMLZTHDY3UW 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.9 Precedence: list Reply-To: mailing list for ConTeXt users Subject: [NTG-context] Re: Does the return of "wdpart positionwhd" is the width of the box ? 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 On 2/1/2025 10:15 PM, garulfo@azules.eu wrote: > Hi, > > the metafun function positionwidth doesn't seems to be available, so I triy to use wdpart positionwhd. in anch-pos.lmt : function jobpositions.whd(id) local jpi = collected[id] if jpi then return jpi.w, jpi.h, jpi.d -- fix w end end you need to remake the format mabe it makes sense to have positionwd positionht positiondp some day but as this went unnoticed i bet there is not that much demand for it > But in the MVE, the green point is not at the expected position (on the right border of the frame). > > %%%%%%%%%%%%% > > \setupheadertexts[] > \setuppapersize[A8,landscape] > \setupbodyfont[40pt] > > \startuseMPgraphic{MPMyPage} > StartPage ; > draw > positionbox("locA") > withpen pencircle scaled 5pt > withcolor transparent(1,0.5,blue); > > pair ThePoint; > ThePoint := positionxy("locA"); > > draw ThePoint > withpen pencircle scaled 5pt > withcolor red ; > > draw ThePoint > shifted (wdpart positionwhd("locA"),0) > withpen pencircle scaled 5pt > withcolor green ; > > StopPage ; > \stopuseMPgraphic > > \defineoverlay > [OLMyPage] > [\useMPgraphic{MPMyPage}] > > \setupbackgrounds > [page] > [background={foreground,OLMyPage}] > > \starttext > > A > \framed > [region=locA, > offset=overlay, > frame=off] > {\TeX}. > > \stoptext > > %%%%%%%%%%%%% > ___________________________________________________________________________________ > If your question is of interest to others as well, please add an entry to the Wiki! > > maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl > webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) > archive : https://github.com/contextgarden/context > wiki : https://wiki.contextgarden.net > ___________________________________________________________________________________ -- ----------------------------------------------------------------- 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://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___________________________________________________________________________________