all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* org-latex-preview, pNiceArray (running latex twice)
@ 2024-08-12 15:27 Uwe Brauer via General discussions about Org-mode.
  2024-08-13 19:35 ` Ihor Radchenko
  0 siblings, 1 reply; 30+ messages in thread
From: Uwe Brauer via General discussions about Org-mode. @ 2024-08-12 15:27 UTC (permalink / raw)
  To: emacs-orgmode



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. 




^ permalink raw reply	[flat|nested] 30+ messages in thread

end of thread, other threads:[~2024-08-18 15:33 UTC | newest]

Thread overview: 30+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-12 15:27 org-latex-preview, pNiceArray (running latex twice) Uwe Brauer via General discussions about Org-mode.
2024-08-13 19:35 ` Ihor Radchenko
2024-08-14  7:28   ` Uwe Brauer
2024-08-14  7:33     ` Ihor Radchenko
2024-08-14  7:56       ` Uwe Brauer
2024-08-14  7:59         ` Ihor Radchenko
2024-08-14  8:02           ` Uwe Brauer
2024-08-14  8:07             ` Ihor Radchenko
2024-08-14  9:32               ` Uwe Brauer
2024-08-14  9:51                 ` Ihor Radchenko
2024-08-14 10:21                   ` Uwe Brauer
2024-08-14 10:29                     ` Ihor Radchenko
2024-08-14 10:54                       ` Uwe Brauer
2024-08-15 17:01                         ` [RFC] latex preview and pdflatex-only packages (was: org-latex-preview, pNiceArray (running latex twice)) Ihor Radchenko
2024-08-16  5:46                           ` [RFC] latex preview and pdflatex-only packages Stefan Nobis
2024-08-16  6:30                             ` Stefan Nobis
2024-08-18 12:01                             ` Ihor Radchenko
2024-08-18 13:35                               ` Juergen Fenn
2024-08-18 13:47                                 ` Ihor Radchenko
2024-08-18 14:12                                   ` Juergen Fenn
2024-08-18 14:31                                     ` Ihor Radchenko
2024-08-18 15:00                                       ` Juergen Fenn
2024-08-18 15:32                                         ` Juergen Fenn
2024-08-17 20:12                           ` [RFC] latex preview and pdflatex-only packages (was: org-latex-preview, pNiceArray (running latex twice)) Karthik Chikmagalur
2024-08-18 12:29                             ` Ihor Radchenko
2024-08-14 12:38                       ` org-latex-preview, pNiceArray (running latex twice) Uwe Brauer
2024-08-14 16:21                       ` Uwe Brauer via General discussions about Org-mode.
2024-08-17 20:08   ` Karthik Chikmagalur
2024-08-18  6:09     ` Uwe Brauer
2024-08-18 12:30     ` Ihor Radchenko

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.