emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Сергей Олегович" <sdorof1@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Bug: latex nested environments are failed on preview and export [9.3.8 (9.3.8-1-g13dfab-elpaplus @ /home/sd/.emacs.d/elpa/26.3/develop/org-plus-contrib-20200914/)]
Date: Sun, 20 Sep 2020 23:32:03 +0300	[thread overview]
Message-ID: <CAP-KJ4_d2mbJeixPTkCiC9QhsD4SxMNoRLR5OHb4+bw5qz4iqg@mail.gmail.com> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 1221 bytes --]

I want to use a matrix environment that is included in an outer
environment, so:

```
Environment:
\begin{equation*}
\left|
\begin{matrix}
a_1 & b_1\\
a_2 & b_2
\end{matrix}
\right|
\end{equation*}

Display--math:
\[
\left|
\begin{matrix}
a_1 & b_1\\
a_2 & b_2
\end{matrix}
\right|
\]

Inline--math:
\(
\left|
\begin{matrix}
a_1 & b_1\\
a_2 & b_2
\end{matrix}
\right|
\)
```

But for the second and third cases (display-math and inline-math) the
preview and export to latex are failed:

exported LaTeX:

```
Environment:
\begin{equation*}
\left|
\begin{matrix}
a_1 & b_1\\
a_2 & b_2
\end{matrix}
\right|
\end{equation*}

Display--math:
$\backslash$[
\left|
\begin{matrix}
a_1 & b_1\\
a_2 & b_2
\end{matrix}
\right|
$\backslash$]

Inline--math:
$\backslash$(
\left|
\begin{matrix}
a_1 & b_1\\
a_2 & b_2
\end{matrix}
\right|
$\backslash$)
\end{document}
```

org-mode preview:

[image: preview.png]

Emacs  : GNU Emacs 26.3 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.24.14)
 of 2020-03-26, modified by Debian
Package: Org mode version 9.3.8 (9.3.8-1-g13dfab-elpaplus @
/home/sd/.emacs.d/elpa/26.3/develop/org-plus-contrib-20200914/)

It is reproduces with Org mode 9.4 also
https://emacs.stackexchange.com/q/60765/13323

[-- Attachment #1.2: Type: text/html, Size: 1726 bytes --]

[-- Attachment #2: preview.png --]
[-- Type: image/png, Size: 10640 bytes --]

             reply	other threads:[~2020-09-20 20:33 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-20 20:32 Сергей Олегович [this message]
2020-09-20 22:51 ` Bug: latex nested environments are failed on preview and export [9.3.8 (9.3.8-1-g13dfab-elpaplus @ /home/sd/.emacs.d/elpa/26.3/develop/org-plus-contrib-20200914/)] Nicolas Goaziou

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAP-KJ4_d2mbJeixPTkCiC9QhsD4SxMNoRLR5OHb4+bw5qz4iqg@mail.gmail.com \
    --to=sdorof1@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).