From: Nick Dokos <ndokos@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Bug: org-element does not recognize table.el tables [9.4 (release_9.4-53-g23f941 @ /home/nick/elisp/org-mode/lisp/)]
Date: Thu, 17 Dec 2020 16:12:48 -0500 [thread overview]
Message-ID: <87k0tgt9v3.fsf@pierrot.dokosmarshall.org> (raw)
Consider an Org mode file with a table.el table (which I made by
first constructing an Org mode table and then usind `C-c ~' to convert it):
--8<---------------cut here---------------start------------->8---
* table.el table
+----+----+----+
| a | b | c |
+----+----+----+
| 1 | 2 | 3 |
+----+----+----+
| 4 | 5 | 6 |
+----+----+----+
| 7 | 8 | 9 |
+----+----+----+
| 10 | 11 | 12 |
+----+----+----+
--8<---------------cut here---------------end--------------->8---
Trying to export to LaTeX produces pretty mangled output.
It turns out that when in
`org-latex-table', (org-element-property :type table) returns `org', so
it thinks it's an Org mode table and calls `org-latex--org-table' to
process it, producing output like this:
--8<---------------cut here---------------start------------->8---
\sout{----}----\sout{----}
\begin{center}
\begin{tabular}{lll}
a & b & c\\
\end{tabular}
\end{center}
\sout{----}----\sout{----}
\begin{center}
\begin{tabular}{rrr}
1 & 2 & 3\\
\end{tabular}
\end{center}
\sout{----}----\sout{----}
...
\begin{center}
\begin{tabular}{rrr}
10 & 11 & 12\\
\end{tabular}
\end{center}
\sout{----}----\sout{----}
--8<---------------cut here---------------end--------------->8---
Evaluating `(org-element-at-point)' returns `(paragraph ...)' all along
the top line and `(table (.... :type org ....))' when the cursor is at
the beginning of the `a b c' line.
Emacs : GNU Emacs 28.0.50 (build 3, x86_64-pc-linux-gnu, GTK+ Version 3.24.13, cairo version 1.16.0)
of 2020-10-30
Package: Org mode version 9.4 (release_9.4-53-g23f941 @ /home/nick/elisp/org-mode/lisp/)
--
Nick
next reply other threads:[~2020-12-17 21:24 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-12-17 21:12 Nick Dokos [this message]
2020-12-20 17:15 ` Bug: org-element does not recognize table.el tables [9.4 (release_9.4-53-g23f941 @ /home/nick/elisp/org-mode/lisp/)] Bastien
2020-12-21 7:49 ` Jean Louis
2020-12-21 9:12 ` Bastien
2020-12-21 21:10 ` Nick Dokos
2020-12-22 5:04 ` Tom Gillespie
2020-12-22 14:55 ` Nick Dokos
2020-12-22 11:45 ` Nicolas Goaziou
2021-01-04 21:26 ` Nick Dokos
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=87k0tgt9v3.fsf@pierrot.dokosmarshall.org \
--to=ndokos@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).