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 2C6FF247AE for ; Mon, 25 Nov 2024 16:55:14 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 9C3B7484A1E for ; Mon, 25 Nov 2024 16:52:28 +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= 1732549948; x=1735141949; bh=+16ZVw9uDEPgCsu9rKfF03hXTaueNUeE+9y wRYuOuLo=; b=ZOUCZ0InYx6SVnxyQZzSG8QCjQKTynx5rruT8bUfbGE+wwvfra9 kOIm21/y+HTxt8RBITl5uYIMgn7tDqok1yB58UchOQ6Apf5H445IEz+KtU4ILTfp NxC6xLQwgrW/lzWO70s9Zn0h5VUv2SluN9FxhgOQWn4OOI9JLnRzYC0M= 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 rBRW3ba-AWy6 for ; Mon, 25 Nov 2024 16:52:28 +0100 (CET) Received: from cgl.ntg.nl (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 6B26E484F73 for ; Mon, 25 Nov 2024 16:51:15 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id F02D24841BD for ; Mon, 25 Nov 2024 16:50:30 +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 ab5mYMlxCeca for ; Mon, 25 Nov 2024 16:50:30 +0100 (CET) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=195.121.94.184; helo=ewsoutbound.kpnmail.nl; envelope-from=j.hagen@xs4all.nl; receiver= Received: from ewsoutbound.kpnmail.nl (ewsoutbound.kpnmail.nl [195.121.94.184]) (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 9B2A7483FE4 for ; Mon, 25 Nov 2024 16:50:30 +0100 (CET) X-KPN-MessageId: fe2d3861-ab44-11ef-93fe-005056994fde Received: from smtp.kpnmail.nl (unknown [10.31.155.7]) by ewsoutbound.so.kpn.org (Halon) with ESMTPS id fe2d3861-ab44-11ef-93fe-005056994fde; Mon, 25 Nov 2024 16:50:28 +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=8u5ykXJDHAIo1NI4TcDL3HPtKJoIL+G/OnBkrE+/sng=; b=XpMNFyFo6wDbSORKyEFZlRAjkar0FoZgVpD7prBiLeEZHKJOQhgiKl3uFQT4I0AXcw0qYEwu+8dia CK89tmhfcGTE3ZjJK40GcCLGysS77ASqf9RR51P3lilFQKBWEtsVaBnr6vOGQ/Eq15QChTiiDveS30 ht24hVfu7o0zJ5dMW09z2yDD9aMnnnLg4T+bSAGzcT41V8JfK+ytTBcJTKgHJ/S2hVO+I5Ql8T12u/ ukZCHZkaZvt3kRzVtdBrIlAMxjBKMetE6+fvw2gn0nsEWZxbNHZrMIbE2JRE2sKdvDiCzO8gViEkfR G/D8FxZpXQVicAFbSMRHs1yFnDXcebA== X-KPN-MID: 33|Hne0Pp9BOyNr0o49adMzUxtahFsyCHRKm5sUGhKmSyGSbKG2HciJ0EoTv9QDlH0 R+BGnvB19OxNAJf3/HkcKQTJv+mLLxDK5EvkKDoviNGQ= X-KPN-VerifiedSender: Yes X-CMASSUN: 33|mLnvRI5U0GX3C94S+NHR/rOKLs8DBQWNhrbZj4yukSnZ+TZi2mnTJs3Aef5oWoD 7r0qM6E4/Pg11V2zNWVOrkw== 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 fee6473d-ab44-11ef-9763-005056998788; Mon, 25 Nov 2024 16:50:29 +0100 (CET) Message-ID: <7397f1be-c153-4e5d-9382-16b6b260644b@xs4all.nl> Date: Mon, 25 Nov 2024 16:50:26 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: nl To: ntg-context@ntg.nl References: <2s96qr4n-8522-82rq-8941-po906n0op1ss@hzvpu.rqh> From: Hans Hagen In-Reply-To: <2s96qr4n-8522-82rq-8941-po906n0op1ss@hzvpu.rqh> Message-ID-Hash: JHWOEIILV7BWWXSUL46CSGJT5V4NTVUN X-Message-ID-Hash: JHWOEIILV7BWWXSUL46CSGJT5V4NTVUN 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: 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"; format="flowed" Content-Transfer-Encoding: 7bit On 11/25/2024 4:07 PM, Aditya Mahajan wrote: > 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: sounds ok to me > \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 i assume youy send me a patch(ed file) > Should we include a wrapper for tikzcd (as we do for circuitikz) or should I try to push a patch upstream. wrapper > BTW, why do we need a \hcontainer in the above code? it makes sure we don't go into the box to mess around with context things (who knows what tikz adds in there that can interfere) 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 ___________________________________________________________________________________