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=-0.8 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, 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 C43D52164B for ; Mon, 10 Jun 2024 16:38:35 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 639CA4850C7 for ; Mon, 10 Jun 2024 16:38:27 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at cgl.ntg.nl Authentication-Results: cgl.ntg.nl (amavisd-new); dkim=fail (1024-bit key) reason="fail (message has been altered)" header.d=freedom.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 gJxA8QerLe_A for ; Mon, 10 Jun 2024 16:38:26 +0200 (CEST) Received: from cgl.ntg.nl (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 0708A485014 for ; Mon, 10 Jun 2024 16:38:13 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id C16AB485006 for ; Mon, 10 Jun 2024 16:38:01 +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 PQD83KzYPp6F for ; Mon, 10 Jun 2024 16:38:01 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=185.233.34.18; helo=outbound.soverin.net; envelope-from=j.hagen@freedom.nl; receiver= Received: from outbound.soverin.net (outbound.soverin.net [185.233.34.18]) (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 59D8E485005 for ; Mon, 10 Jun 2024 16:38:00 +0200 (CEST) Received: from smtp.freedom.nl (c04cst-smtp-frd01.int.sover.in [10.10.4.107]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by outbound.soverin.net (Postfix) with ESMTPS id 4VyZCr60tyzCR for ; Mon, 10 Jun 2024 14:38:00 +0000 (UTC) Received: from smtp.freedom.nl (smtp.freedom.nl [10.10.4.107]) by freedom.nl (Postfix) with ESMTPSA id 4VyZCr3gJnz6L for ; Mon, 10 Jun 2024 14:38:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=freedom.nl; s=default; t=1718030280; bh=qOZOyrUNAfHQ+hi/GKvIAH5ahTJrZaYEiIsXZEKXi1k=; h=Date:Subject:To:References:From:In-Reply-To:From; b=eo4rcEiRso+eEsFhvScBBJYVhQbW1XJHvnsdsWWcfiMNjG0Q72PoZywbTbDGGKCIP VtcJCUk2TU+PcXX87ioeCeTZnaVsgcEz/8Lqpv1cG/PswP9LheEzZtlMLjqX+CYIAA Vn+Cq6+icM/v6svfbDK6MgtZomzrYvhib/bTxp24= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freedom.nl; s=default; t=1718030280; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ZmRrkWoR7cno4lh+Es71JUHOe+uQjnqMGA7RX8p+asI=; b=fErKk6jIwbpnU0RXT5iujdqWtZMF6CmlaQr1T4oc1SC8oyO/KXmFcSODvz/ya5bY45DOtc khUw6bfh+7T3+c0xqqKCBcOhRulMy9haT2FczbPdZLNbQJr3b9vboIaYrwDQTTAohYQkc3 4pMHD1Lvi28x9aNdWtg8cBuke99Vu/k= ARC-Seal: i=1; s=default; d=freedom.nl; t=1718030280; a=rsa-sha256; cv=none; b=t64h2FPW6HgcVIU19gROMLqI0lNVIBDDGek7N8CZVBQmizZAzXFJxzQpK5IYPZdbbjkYiI w/lqtLPjRZ+XfBk9fg38f/Lkx0TS1oRcJJYUKxwWsAn6hLF1CKq3dq/O4w+KpbXPpTxuF6 ua/9nWnBrMa8znjuMqlK6E4gl9wUpeg= ARC-Authentication-Results: i=1; smtp.freedom.nl; auth=pass smtp.mailfrom=j.hagen@freedom.nl Message-ID: <3c30310b-9fee-4bc9-8c51-e3f54c8e899e@freedom.nl> Date: Mon, 10 Jun 2024 16:38:00 +0200 MIME-Version: 1.0 Content-Language: en-US To: ntg-context@ntg.nl References: <9A5FEABB-7506-4C51-98B4-7CDBE32FCCC2@ziggo.nl> X-Soverin-Authenticated: true In-Reply-To: <9A5FEABB-7506-4C51-98B4-7CDBE32FCCC2@ziggo.nl> X-Spampanel-Class: ham Message-ID-Hash: 3OJ5EA4PXQ2N2MDIQGI777JAQNOJUW2Y X-Message-ID-Hash: 3OJ5EA4PXQ2N2MDIQGI777JAQNOJUW2Y X-MailFrom: j.hagen@freedom.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] Re: dimen 100.0pt not 100.0pt? List-Id: mailing list for ConTeXt users Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: Hans Hagen via ntg-context Cc: Hans Hagen Content-Type: text/plain; charset="us-ascii"; format="flowed" Content-Transfer-Encoding: 7bit On 6/10/2024 3:46 PM, Hans van der Meer via ntg-context wrote: > The I do not understand. I am testing if a dimension set can be checked > against the expected value. > It looks like 100.0pt is not really 100.0pt. Why? And how can I do this > test properly with true as result? > > \scratchdimen=100pt\relax > \iftok{\the\scratchdimen}{100.0pt}true\else false\fi > Screenshot 2024-06-10 at 15.37.32.png > > printing \the\scratchdimen results in 100.0pt > > while \meaning\scratchdimen results in: constant dimension 100.0pt It has to do with catcodes (of p and t) so you need this: \iftok{\the\scratchdimen}{\detokenize{100.0pt}}true\else false\fi But ... you should do it the way Wolfgang pointer out 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://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 ___________________________________________________________________________________