emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [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/)]
@ 2024-07-04 13:29 Li Yuxiao
  2024-07-08 16:04 ` Ihor Radchenko
  0 siblings, 1 reply; 2+ messages in thread
From: Li Yuxiao @ 2024-07-04 13:29 UTC (permalink / raw)
  To: emacs-orgmode@gnu.org

[-- Attachment #1: Type: text/plain, Size: 1052 bytes --]



Remember to cover the basics, that is, what you expected to happen and
what in fact did happen. You don't know how to make a good report? See

https://orgmode.org/manual/Feedback.html#Feedback

Your bug report will be posted to the Org mailing list.
------------------------------------------------------------------------

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!

Emacs : GNU Emacs 29.1 (build 1, aarch64-apple-darwin23.5.0, Carbon Version 170 AppKit 2487.6)
of 2024-06-16
Package: Org mode version 9.8 (9.8-??-571f1ce0d @ /Users/liyuxiao/.emacs.d/.local/straight/build-29.1/org/)

[-- Attachment #2: Type: text/html, Size: 1369 bytes --]

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

* 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/)]
  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
  0 siblings, 0 replies; 2+ messages in thread
From: Ihor Radchenko @ 2024-07-08 16:04 UTC (permalink / raw)
  To: Li Yuxiao; +Cc: emacs-orgmode@gnu.org

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>


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

end of thread, other threads:[~2024-07-08 16:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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

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).