emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Ihor Radchenko <yantar92@posteo.net>
To: Li Yuxiao <outlook_C8AAC3A1E772DE48@outlook.com>
Cc: "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: Re: [BUG] org-at-table-p does not recognize table inside \begin{} \end{} block [9.8 (9.8-??-571f1ce0d @ /Users/liyuxiao/.emacs.d/.local/straight/build-29.1/org/)]
Date: Mon, 08 Jul 2024 16:04:42 +0000	[thread overview]
Message-ID: <87ikxfzx7p.fsf@localhost> (raw)
In-Reply-To: <SJ2P223MB095705A14029204A3B0EAA14EBDE2@SJ2P223MB0957.NAMP223.PROD.OUTLOOK.COM>

Li Yuxiao <outlook_C8AAC3A1E772DE48@outlook.com> writes:

> When I tried to type table between \between \end blocks, for example
> \begin{pmatrix}
> \* table contents *\
> \end{pmatrix}
>
> The table contents are not recognized. For instance, I can't use Tab to
> go to next line. It turns out the result of org-at-table-p is nil. I
> deleted all my configurations, but it doesn't get recognized as well.
> I'm quite new to emacs, and I can't figure out why. Any instructions on
> solving the problem or how to debug is appreciated. Thanks for your assistance!

This is because text between \begin{...}...\end{...} is considered
verbatim LaTeX - Org mode markup is not recognized inside. Instead, Org
will pass the whole text inside this "latex environment" directly to
LaTeX, without any processing. (see https://orgmode.org/manual/LaTeX-fragments.html)

If you want to enter Org mode table, you should _not_ use LaTeX
\begin{...}...\end{...} markup.

In short, if you want Org table features, use Org markup for tables.

Feel free to ask anything if you still feel confused.

Not a bug.
Canceled.

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>


      reply	other threads:[~2024-07-08 16:04 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-07-04 13:29 [BUG] org-at-table-p does not recognize table inside \begin{} \end{} block [9.8 (9.8-??-571f1ce0d @ /Users/liyuxiao/.emacs.d/.local/straight/build-29.1/org/)] Li Yuxiao
2024-07-08 16:04 ` Ihor Radchenko [this message]

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=87ikxfzx7p.fsf@localhost \
    --to=yantar92@posteo.net \
    --cc=emacs-orgmode@gnu.org \
    --cc=outlook_C8AAC3A1E772DE48@outlook.com \
    /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).