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_SIGNED,DKIM_VALID, DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI 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 A86DF30E4B for ; Mon, 25 Nov 2024 16:21:56 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 83CE54853B3 for ; Mon, 25 Nov 2024 16:17:58 +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:mime-version:message-id:from:from:date:date:received :received:received:received:received:received:received:received; s=cgl; t=1732547878; x=1735139879; bh=NdQwYOMyginb0zK/2W4F+X7Gt 0bVrdhf9RvBeizSMZU=; b=Sii96oh9Bghz/RiNfdBzSoyb+ArATRqqiyirpZENu 1IZ84uWXeCcWe4o5/g8vRYgrbQ7CGe6HxtA+BklwUp7kE7Ev0PytSal3UklUIQhd VhSKEXML5a/2rHH7sRCVJ8JBjuLkCzTBPHKkwjZ58GJMICB+Ax2MDMXeHVGxbuhN 7I= 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=messagingengine.com 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 uCq2bCJmZwo5 for ; Mon, 25 Nov 2024 16:17:58 +0100 (CET) Received: from cgl.ntg.nl (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 1B28C4851E8 for ; Mon, 25 Nov 2024 16:16:55 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id EAB394850C2 for ; Mon, 25 Nov 2024 16:16:11 +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 cHBh-zfcQkVU for ; Mon, 25 Nov 2024 16:16:10 +0100 (CET) Received-SPF: Softfail (mailfrom) identity=mailfrom; client-ip=202.12.124.199; helo=fforwardh-b4-smtp.messagingengine.com; envelope-from=adityam@umich.edu; receiver= X-Greylist: delayed 501 seconds by postgrey-1.36 at cgl.ntg.nl; Mon, 25 Nov 2024 16:16:10 CET Received: from fforwardh-b4-smtp.messagingengine.com (fforwardh-b4-smtp.messagingengine.com [202.12.124.199]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by cgl.ntg.nl (Postfix) with ESMTPS id 4AB3E4850B2 for ; Mon, 25 Nov 2024 16:16:09 +0100 (CET) Received: from phl-compute-09.internal (phl-compute-09.phl.internal [10.202.2.49]) by mailfforwardh.stl.internal (Postfix) with ESMTP id 62B7A17403C4 for ; Mon, 25 Nov 2024 10:07:46 -0500 (EST) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-09.internal (MEProxy); Mon, 25 Nov 2024 10:07:46 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:message-id :mime-version:reply-to:subject:subject:to:to:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1732547266; x= 1732633666; bh=i7EQB7gn1ObCU18ZDSt7vDCO7sepKOVOrJASH+LXFPY=; b=0 T8xWP2VuvVCqD1L1ZdrjycQ5S96/8MiZIz3CqRuKtS7uRFopXGPfXoscdXVDTP+u XJbBkWA3YaBaxjDV7ymlzCJ0aLtgLCH5K0UXYvMq2ahkUreZ4KceBYBpgtWeSXfR y7haVCTa9DXG2SR5rStyEQl99NiWNJ8CkITlaCPoykIRIlzJ6Plx6E26C+Tu/kYH S0+607Dn7VXMUz8h1kDihojI+vHgRy4Cp/O2DlZmfYpWevz62mKablJLH1WoCmAz 9f/NtFzZK7xapxx4WobhX1AuWG0v051wHJkaE2hqETEeihdosZh0Lrbr7wS/BY+x dbLoqiRE6/IrYxfOnqZhg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddrgeehgdejtdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdpuffr tefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnth hsucdlqddutddtmdenucfjughrpeffhffvuffkgggtsehttdertddttddvnecuhfhrohhm peetughithihrgcuofgrhhgrjhgrnhcuoegrughithihrghmsehumhhitghhrdgvughuqe enucggtffrrghtthgvrhhnpeejhfevgeelgeelheeuudffkeeileetgeelleffteegjedu keefuedujeelveeifeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrih hlfhhrohhmpegrughithihrghmsehumhhitghhrdgvughupdhnsggprhgtphhtthhopedu pdhmohguvgepshhmthhpohhuthdprhgtphhtthhopehnthhgqdgtohhnthgvgihtsehnth hgrdhnlh X-ME-Proxy: Feedback-ID: i00d8410d:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Mon, 25 Nov 2024 10:07:45 -0500 (EST) Date: Mon, 25 Nov 2024 10:07:42 -0500 (EST) From: Aditya Mahajan X-X-Sender: adityam@carbonpad.cim.mcgill.ca To: mailing list for ConTeXt users Message-ID: <2s96qr4n-8522-82rq-8941-po906n0op1ss@hzvpu.rqh> MIME-Version: 1.0 Message-ID-Hash: WAOZ4R5H3YUJIKIKEN6REZ2QG4C77TQM X-Message-ID-Hash: WAOZ4R5H3YUJIKIKEN6REZ2QG4C77TQM X-MailFrom: adityam@umich.edu 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] Tikz CD 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" Content-Transfer-Encoding: 7bit Hi, There was a recent question about what appeared to be commutative diagrams, and I wanted to reply saying that one option is to use tikzcd module. However, testing showed that it fails. This is what tikzlibrarycd.code.tex does: % ConTeXt-specific stuff \pgfutil@IfUndefined{starttikzpicture}{}{% \def\starttikzcd{\tikzcd} \def\stoptikzcd{\endtikzcd} \tikzcdset{ every matrix/.append code={% \def\NC{\pgfmatrixnextcell}% \def\NR{\pgfmatrixendrow}}} } where \def\tikzcd@[#1]{% \tikzpicture[/tikz/commutative diagrams/.cd,every diagram,#1]% ...} So, it fails because \tikzpicture is being called with wrong catcodes. It can be fixed in the same manner as we patched tikzpicture as shown by the following MWE: \usemodule[tikz] \usetikzlibrary[cd] \permanent\protected\def\starttikzcd% {\starttikzinput \hcontainer\bgroup \tikzcd} \permanent\protected\def\stoptikzcd {\endtikzcd \egroup \stoptikzinput} \starttext \startformula \starttikzcd x \arrow[d] \NC A \arrow[d] \NC D \NR y \NC B \NC D \NR \stoptikzcd \stopformula \stoptext What is the best way to go about this? I can try to ask the Should we include a wrapper for tikzcd (as we do for circuitikz) or should I try to push a patch upstream. BTW, why do we need a \hcontainer in the above code? Aditya ___________________________________________________________________________________ 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 ___________________________________________________________________________________