From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jens Lechtenboerger Subject: Bug: LaTeX export of table with caption broken Date: Sat, 19 Jan 2019 15:25:31 +0100 Message-ID: <87ftto2084.fsf@informationelle-selbstbestimmung-im-internet.de> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([209.51.188.92]:40490) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gkrZ9-0007BU-Kb for emacs-orgmode@gnu.org; Sat, 19 Jan 2019 09:25:44 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gkrZ8-0005aM-SP for emacs-orgmode@gnu.org; Sat, 19 Jan 2019 09:25:43 -0500 Received: from mx1.mailbox.org ([2001:67c:2050:104:0:1:25:1]:18774) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gkrZ8-0005PT-Lk for emacs-orgmode@gnu.org; Sat, 19 Jan 2019 09:25:42 -0500 Received: from smtp2.mailbox.org (smtp2.mailbox.org [80.241.60.241]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by mx1.mailbox.org (Postfix) with ESMTPS id 94A214BB5A for ; Sat, 19 Jan 2019 15:25:33 +0100 (CET) Received: from smtp2.mailbox.org ([80.241.60.241]) by spamfilter04.heinlein-hosting.de (spamfilter04.heinlein-hosting.de [80.241.56.122]) (amavisd-new, port 10030) with ESMTP id JEeUkUl9fSVa for ; Sat, 19 Jan 2019 15:25:32 +0100 (CET) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org 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