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.8 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, MAILING_LIST_MULTI autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 25631 invoked from network); 6 Oct 2023 03:13:14 -0000 Received: from cgl.ntg.nl (5.39.185.202) by inbox.vuxu.org with ESMTPUTF8; 6 Oct 2023 03:13:14 -0000 Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 602AC483134 for ; Fri, 6 Oct 2023 05:12:59 +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 lAmDdJV0C7jN for ; Fri, 6 Oct 2023 05:12:57 +0200 (CEST) Received: from cgl.ntg.nl (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id C2ACC482E38 for ; Fri, 6 Oct 2023 05:10:07 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 92FF9480163 for ; Fri, 6 Oct 2023 05:09:44 +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 aFKk3l8fH1Cb for ; Fri, 6 Oct 2023 05:09:44 +0200 (CEST) X-Greylist: delayed 362 seconds by postgrey-1.36 at cgl.ntg.nl; Fri, 06 Oct 2023 05:09:44 CEST Received: from ci74p00im-qukt09082701.me.com (ci74p00im-qukt09082701.me.com [17.57.156.16]) (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 2FF474800EE for ; Fri, 6 Oct 2023 05:09:44 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=icloud.com; s=1a1hai; t=1696561417; bh=qclDPltRpwQll7eK/HbBRn3qKf8QnuuuAwjdSjyG4KU=; h=From:Content-Type:Mime-Version:Subject:Date:To:Message-Id; b=PK/2nn/++jN4yle1Vmf6MzBEmSfCq7IGHgUZdlEcPSzRYPeDwuEkU8lIx4KmmqRim nrFuiaIyplLJ7MHz19fL6MnO6oB2TA9lESoVBo0dB1czKf7YU8DmHdmZ2rr/X+OVaT XGwef86Zqkns4tniz9kHsoAs1J45EfYtK9dYKQLlR4UjwXI1TrUOOtSDOvwcaK0Q38 nK0/lxTkQTnDtSs+EoKL/FE1JwGZqpLeAUpLyfwTcxbDhNS4xXkIrmNGrTXnJvM3SE iieCbZ93leqysejG7gw0I3WilLxRIOo5SkQkNFGJgXJLCHZvpiCcSKe1n7b2tCIpFq x3XiTpjWswnkA== Received: from smtpclient.apple (ci77p00im-dlb-asmtp-mailmevip.me.com [17.57.156.26]) by ci74p00im-qukt09082701.me.com (Postfix) with ESMTPSA id F0C314A00115 for ; Fri, 6 Oct 2023 03:03:35 +0000 (UTC) Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.700.6\)) Date: Fri, 6 Oct 2023 16:03:22 +1300 References: <61545EF6-8B7A-4FDA-A374-0A69AB077D00@icloud.com> <852514a4-aad4-464f-b178-b08adadd13f1@uni-bonn.de> To: mailing list for ConTeXt users In-Reply-To: <852514a4-aad4-464f-b178-b08adadd13f1@uni-bonn.de> Message-Id: <7DA1F487-30AB-4032-998E-B1AE822FF119@icloud.com> X-Mailer: Apple Mail (2.3731.700.6) X-Proofpoint-GUID: xhRUeYAwKmZOYSpSqq9HMw9L6QZSI0tB X-Proofpoint-ORIG-GUID: xhRUeYAwKmZOYSpSqq9HMw9L6QZSI0tB X-Proofpoint-Virus-Version: =?UTF-8?Q?vendor=3Dfsecure_engine=3D1.1.170-22c6f66c430a71ce266a39bfe25bc?= =?UTF-8?Q?2903e8d5c8f:6.0.138,18.0.572,17.11.62.513.0000000_definitions?= =?UTF-8?Q?=3D2020-02-14=5F11:2020-02-14=5F02,2020-02-14=5F11,2021-12-02?= =?UTF-8?Q?=5F01_signatures=3D0?= X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxscore=0 phishscore=0 malwarescore=0 suspectscore=0 clxscore=1015 spamscore=0 bulkscore=0 adultscore=0 mlxlogscore=999 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2308100000 definitions=main-2310060022 Message-ID-Hash: 3DZQKTYIWTXE6LSHCGQKDY37URG2NI4K X-Message-ID-Hash: 3DZQKTYIWTXE6LSHCGQKDY37URG2NI4K X-MailFrom: peter.hopcroft@icloud.com 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] Re: How can I use a variable for a MetaPost coordinate ? List-Id: mailing list for ConTeXt users Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: "peter.hopcroft--- via ntg-context" Cc: peter.hopcroft@icloud.com Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Yes, indeed. The metafun manual also explains things about overlays and layers I hadn't known. I'd previously ignored that manual. Thank you, Peter > On 5/10/2023, at 7:05 PM, Thomas A. Schmitz wrote: > > Have a look at chapter 6.4 of the metafun manual. You need StartPage ... StopPage in your MPcode, then you can knock yourself out by using variables such as PaperHeight or TextHeight and do all sorts of calculations. > > All best > > Thomas > > On 10/5/23 05:54, peter.hopcroft--- via ntg-context wrote: >> Hello list, I want to draw lines on a page. I want to pass my line coordinates as a percent of \width or \textheight, rather than as millimetres. So that if I change the page size I don't need to change the coordinates. The MWE below compiles but the pdf does not have any lines drawn on it. Is there a way of doing calculations on the coordinates for the draw using ConTexT variables like \textheight? Thank you, Peter Hopcroft > > > ___________________________________________________________________________________ > If your question is of interest to others as well, please add an entry to the Wiki! > > maillist : {listname} / https://mailman.ntg.nl/mailman3/lists/{list_id} > webpage : https://www.pragma-ade.nl / https://context.aanhet.net(mirror) > archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net > ___________________________________________________________________________________ ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : {listname} / https://mailman.ntg.nl/mailman3/lists/{list_id} webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___________________________________________________________________________________