emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Bug: LaTeX export of table with caption broken
@ 2019-01-19 14:25 Jens Lechtenboerger
  2019-01-19 15:06 ` Nicolas Goaziou
  0 siblings, 1 reply; 15+ messages in thread
From: Jens Lechtenboerger @ 2019-01-19 14:25 UTC (permalink / raw)
  To: emacs-orgmode

Hi there,

when exporting a table with caption to LaTeX on the master branch,
invalid code is generated.

Example Org file:

#+CAPTION: Some text
| Col1 | Col2 |
|------+------|
| foo  | bar  |

The resulting tex file contains this, without table environment,
which is necessary for the use of captions:

begin{center}
\caption{Some text}
\begin{tabular}{ll}
Col1 & Col2\\
\hline
foo & bar\\
\end{tabular}
\end{center}

The above happens on the current master branch, but did already
happen last month on the next branch:
Org mode version 9.2 (release_9.2-193-ge7901c @ /usr/share/emacs/24.5/site-lisp/org/)
Org mode version 9.1.14 (release_9.1.14-1178-gdd26f0 @ /usr/share/emacs/24.5/site-lisp/org/)

In contrast, Org mode version 9.1.9 (release_9.1.9-65-g5e4542)
shipping with Emacs is fine, creating the following:

\begin{table}[htbp]
\caption{Some text}
\centering
\begin{tabular}{ll}
Col1 & Col2\\
\hline
foo & bar\\
\end{tabular}
\end{table}


Best wishes
Jens

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

end of thread, other threads:[~2019-01-24 17:09 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-19 14:25 Bug: LaTeX export of table with caption broken Jens Lechtenboerger
2019-01-19 15:06 ` Nicolas Goaziou
2019-01-19 16:18   ` Jens Lechtenboerger
2019-01-22 16:06   ` Eric S Fraga
2019-01-22 22:52     ` Nicolas Goaziou
2019-01-23  7:27       ` Eric S Fraga
2019-01-23  8:36       ` Eric S Fraga
2019-01-23 14:21         ` Nicolas Goaziou
2019-01-23 15:25           ` Eric S Fraga
2019-01-23 15:16         ` Nick Dokos
2019-01-24 13:48           ` Nicolas Goaziou
2019-01-24 15:02             ` Nick Dokos
2019-01-24 16:12               ` Eric S Fraga
2019-01-24 17:09                 ` Nick Dokos
2019-01-24 15:51             ` Eric S Fraga

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