[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Bug: org-element does not recognize table.el tables [9.4 (release_9.4-53
From: |
Nick Dokos |
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 |
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
- Bug: org-element does not recognize table.el tables [9.4 (release_9.4-53-g23f941 @ /home/nick/elisp/org-mode/lisp/)],
Nick Dokos <=