From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id 2DIzAzcqumaBNQEA62LTzQ:P1 (envelope-from ) for ; Mon, 12 Aug 2024 15:28:55 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id 2DIzAzcqumaBNQEA62LTzQ (envelope-from ) for ; Mon, 12 Aug 2024 17:28:55 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1723476535; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=yOBnPxJ0Ap50rIEC45KKU4HWnjY4EbgnolR7dIPopDs=; b=dvWPNCb2XOuDWc3yMu9oMlR4G1/Qo/4z1niDs8k2brUESGfMMNzl8dg0UH/gkyTGoT1Iyy r3HAxPrI2dV6/zxW6D7ITN0H6ExlpjeKMJ1meFqK+BDljl9zkGhpdqJ6bg6PKQJk/l/+70 c2dMEldd52tkUQ8S1YRIYrqgDeaEIVBcVAQBqV8i3G5KyAV1BN+kz/zXQFrTasg9GmYfkl LHoPJZfih3RgRfjNdhVQHw+TlcZ/Oyn3ovQC119d3/Cp7MzLYa+wUBdm6UCuJVS78Xj5qH 0SAVH64XwGEzvP7nad6LTe95xuQwAXGkYdzh7l9rS3hGmhkEjXP8Zlq+EKo+/g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1723476535; a=rsa-sha256; cv=none; b=oX7lHTYX4JjSrWmA6Yj792mm8uYYrwUHZDYpD8vWqUVjYg6p6gHxFmE2StI9NiyYS3dmX2 QX79VH5ADqzvvr/NzwDd6Z7iIpvcY2EVJBhVqs2R8VSWNcWSMrQCOsFk49N3Op8rikqPUo sYPsdhqauvfMHf5AZHIa7AujUMOKYRHWxlBR0Gbzk4uL763RhgHIXQ2GtNLjUeOETt8yuz X1MLYT/Tdz75kcItOBC+U2qcbKOS1+MaYfmI8QLfpNZfbuwiEq3eyjtQIpByTD4ALHgsOa mNG7y/1y3uERP62PB/8lSRLrXcKQc35HyOxVGYAAC5gPzactWagu7PkvUAAV7Q== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 5599A786F9 for ; Mon, 12 Aug 2024 17:28:53 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sdWxQ-0007wm-5W; Mon, 12 Aug 2024 11:27:40 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sdWxN-0007sY-EF for emacs-orgmode@gnu.org; Mon, 12 Aug 2024 11:27:37 -0400 Received: from ciao.gmane.io ([116.202.254.214]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sdWxL-0000Ps-Ds for emacs-orgmode@gnu.org; Mon, 12 Aug 2024 11:27:37 -0400 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1sdWxH-0009ci-H6 for emacs-orgmode@gnu.org; Mon, 12 Aug 2024 17:27:31 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: emacs-orgmode@gnu.org To: emacs-orgmode@gnu.org Subject: org-latex-preview, pNiceArray (running latex twice) Date: Mon, 12 Aug 2024 17:27:24 +0200 Message-ID: <87wmklyd5v.fsf@mat.ucm.es> Mime-Version: 1.0 Content-Type: text/plain User-Agent: Gnus/5.13 (Gnus v5.13) Cancel-Lock: sha1:Ah1vnpRum3jUj7SOFuSsMWATM5M= Mail-Copies-To: never Received-SPF: pass client-ip=116.202.254.214; envelope-from=geo-emacs-orgmode@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.249, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: Uwe Brauer From: Uwe Brauer via "General discussions about Org-mode." Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Spam-Score: -5.96 X-Migadu-Queue-Id: 5599A786F9 X-Migadu-Scanner: mx10.migadu.com X-Migadu-Spam-Score: -5.96 X-TUID: mMomT6el559p Hi Look a the following example --8<---------------cut here---------------start------------->8--- \begin{equation*} A^{0}= \begin{pNiceArray}{C|CCC}[margin] -m^{00}& 0 & 0 & 0\\ \hline 0 & \Block{3-3}{-m^{ab}}& &\\ 0 & & & \\ 0 & & & \\ \end{pNiceArray} \qquad A^{k}= \begin{pNiceArray}{C|CCC}[margin] -2m^{0k}& m^{1k} & m^{2k} & m^{3k}\\ \hline m^{1k}& \Block{3-3}{0_{3\times3 }}& &\\ m^{2k}& & & \\ m^{3k}& & & \end{pNiceArray} \end{equation*} --8<---------------cut here---------------end--------------->8--- Here is a MWE: --8<---------------cut here---------------start------------->8--- \documentclass{article} \usepackage{nicematrix} \newcolumntype{C}{c} \begin{document} \begin{equation*} A^{0}= \begin{pNiceArray}{C|CCC}[margin] -m^{00}& 0 & 0 & 0\\ \hline 0 & \Block{3-3}{-m^{ab}}& &\\ 0 & & & \\ 0 & & & \\ \end{pNiceArray} \qquad A^{k}= \begin{pNiceArray}{C|CCC}[margin] -2m^{0k}& m^{1k} & m^{2k} & m^{3k}\\ \hline m^{1k}& \Block{3-3}{0_{3\times3 }}& &\\ m^{2k}& & & \\ m^{3k}& & & \end{pNiceArray} \end{equation*} \end{document} --8<---------------cut here---------------end--------------->8--- for which I added To org-format-latex-header "\\usepackage{nicematrix}\12\newcolumntype{C}{c}\12" In order to obtain a nice result the corresponding latex file should run twice, however. Any this is a problem for org-latex-preview, it seems. Any idea how to make this example work? Thanks and regards Uwe Brauer -- I strongly condemn Hamas heinous despicable pogroms/atrocities on Israel I strongly condemn Putin's war of aggression against Ukraine. I support to deliver weapons to Ukraine's military. I support the EU and NATO membership of Ukraine.