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,RCVD_IN_DNSWL_NONE,T_SCC_BODY_TEXT_LINE,URIBL_SBL_A autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 18291 invoked from network); 1 May 2023 15:27:16 -0000 Received: from zapf.ntg.nl (5.39.185.232) by inbox.vuxu.org with ESMTPUTF8; 1 May 2023 15:27:16 -0000 Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 145E81C2F20; Mon, 1 May 2023 17:27:02 +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 tTuC2Aq7pVfI; Mon, 1 May 2023 17:27:00 +0200 (CEST) Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 63F7E1C2EA8; Mon, 1 May 2023 17:27:00 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id EB2F31C2EA8 for ; Mon, 1 May 2023 17:26:57 +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 1JTDWfmEHnKe for ; Mon, 1 May 2023 17:26:55 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=185.233.104.10; helo=elysium.stha.de; envelope-from=stefan+context@stha.de; receiver= X-Greylist: delayed 428 seconds by postgrey-1.36 at zapf.ntg.nl; Mon, 01 May 2023 17:26:55 CEST Received: from elysium.stha.de (elysium.stha.de [185.233.104.10]) (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 A5FD81C28BC for ; Mon, 1 May 2023 17:26:55 +0200 (CEST) Received: from mta2.stha.lan (mta2.stha.dn42 [IPv6:fd86:82d7:b2e1:10::11]) by elysium.stha.de (Postfix) with ESMTPS id 2FA3315FD for ; Mon, 1 May 2023 15:19:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=stha.de; s=rsa_20220207; h=Content-Type:MIME-Version:Message-ID:Subject:To:From:Date: Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=qTLTbvCIwl7J7f1zzvp1Hgh1Rh0rD91uJ0wpcFwOhus=; b=qJWm8ej68xCk6ZW/JH3rzRyBhn 8DqOHvFVXHgLAEYpaXkKiilvV/1CTLigwFaVYdY5tu9ET+cnywU9OqjwX4L4yEUsrDmoUFFWJyx1D xhw6L/Ch6TQL3BrQSda3IVwepgwf9aDAjS/+PCUq/W8DM2R5nBU2KBV3nZF9FOwVXbI8bMZalL+pI jWh/emnfyiy1fGLq2JFg5Tww+kBQRBTUORtrcfwVM2ysKVDUdDj/maRAX1A1YJpajyFNmYVwRJqd7 apZr6cHaBQELC7wRridLmryySu7k+DS14cKBzf2c2QzXLyO0cjRdW47/7KGiDtiPuDOAPrmtxsUjp K8xwKZew==; DKIM-Signature: v=1; a=ed25519-sha256; q=dns/txt; c=relaxed/relaxed; d=stha.de ; s=ed25519_20220207; h=Content-Type:MIME-Version:Message-ID:Subject:To:From: Date:Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=qTLTbvCIwl7J7f1zzvp1Hgh1Rh0rD91uJ0wpcFwOhus=; b=mAO3ZoJqFsFRmHoYWoCnNQy8QO pe0b9o2O9yufhdTLJX4f4nJa68XWB/MhT3iIlWSPui5y7yewRjrgflsO5xCw==; Received: from [fd86:82d7:b2e1:100::16] (helo=smtp.stha.de) by mta2.stha.lan with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.95 (FreeBSD)) (envelope-from ) id 1ptVJW-0004Ew-3m for ntg-context@ntg.nl; Mon, 01 May 2023 15:19:42 +0000 Received: from localhost (localhost [::1]) by smtp.stha.de (Postfix) with ESMTPSA id AD2E3AB2B for ; Mon, 1 May 2023 15:19:41 +0000 (UTC) Date: Mon, 1 May 2023 17:19:39 +0200 To: ntg-context@ntg.nl Message-ID: MIME-Version: 1.0 Content-Disposition: inline Subject: [NTG-context] define math function with \, inside 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: Stefan Haller via ntg-context Reply-To: mailing list for ConTeXt users Cc: Stefan Haller Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ntg-context-bounces@ntg.nl Sender: "ntg-context" Hi all, I wanted to define a custom math function (similar to log etc.) for argmax. However, I wanted to have a small space between "arg" and "max" and limits should work properly. I am using a up-to-date LMTX installation. Without the first constraint it's easy: > % old way: > \definemathcommand[argmax][limop]{\mfunction[argmax]} > % new way, discoverd by looking into math-def.mkxl > \definemathfunction[argmax] However, both methods do not work if I want to have "arg\,max" printed (error about \endcsname missing). With mkiv the first method works and can also be found in the wiki[1]. What's the current way to define such a custom math function? Thanks! Stefan [1]: https://wiki.contextgarden.net/Math/functions ___________________________________________________________________________________ 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 ___________________________________________________________________________________