From mboxrd@z Thu Jan 1 00:00:00 1970 From: Emmanuel Charpentier Subject: Possible BUG : table.el tables export incotrrectly Date: Sat, 04 May 2019 13:17:24 +0200 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([209.51.188.92]:41181) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hMsfb-0000mA-Tu for emacs-orgmode@gnu.org; Sat, 04 May 2019 07:17:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hMsfZ-0007Ip-Qn for emacs-orgmode@gnu.org; Sat, 04 May 2019 07:17:31 -0400 Received: from smtp1-g21.free.fr ([2a01:e0c:1:1599::10]:52139) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hMsfZ-0007HW-Fi for emacs-orgmode@gnu.org; Sat, 04 May 2019 07:17:29 -0400 Received: from zen-book-flip (unknown [82.228.67.28]) (Authenticated sender: emm.charpentier) by smtp1-g21.free.fr (Postfix) with ESMTPSA id 142B2B0053B for ; Sat, 4 May 2019 13:17:25 +0200 (CEST) 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 Org-mode tables do export with their #+caption: and a usable #+name:, whereas table.el tables export their content but ignore #+name:, #+caption: and #+latex_attr:. Minimal (non-)working example : ===================================================================== # tables.el tables ? #+options: toc:nil author:nil date:nil #+latex_header: \usepackage{booktabs} The table [[Table1]] , manual conversion and rough approxomation of [[Table2]], erports correcly, while the orginal one doesn't (no caption, no usable label). #+ATTR_LATEX: :rmlines #+NAME: Table2 #+CAPTION: Second table +-----+-----+-----+ | A |B |C | +-----+-----+-----+ |1 |231a |3 | | |x | | +-----+-----+-----+ |4 |5 |6 | +-----+-----+-----+ #+name: Table1 #+caption: First table | A | B | C | |---+------+---| | 1 | 231a | 3 | | | x | | | 4 | 5 | 6 | ===================================================================== Export to a LaTeX buffer : ===================================================================== % Created 2019-05-04 sam. 13:15 % Intended LaTeX compiler: pdflatex \documentclass[11pt]{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{graphicx} \usepackage{grffile} \usepackage{longtable} \usepackage{wrapfig} \usepackage{rotating} \usepackage[normalem]{ulem} \usepackage{amsmath} \usepackage{textcomp} \usepackage{amssymb} \usepackage{capt-of} \usepackage{hyperref} \usepackage{booktabs} \date{} \title{} \hypersetup{ pdfauthor={Emmanuel Charpentier}, pdftitle={}, pdfkeywords={}, pdfsubject={}, pdfcreator={Emacs 26.1 (Org mode 9.2.3)}, pdflang={English}} \begin{document} The table \ref{tab:orge528190} , manual conversion and rough approxomation of \ref{tab:orgb3737d9}, erports correcly, while the orginal one doesn't (no caption, no usable label). \begin{center} \begin{tabular}{|l|l|l|} \hline A & B & C \\ \hline 1 & 231a & 3 \\ & x & \\ \hline 4 & 5 & 6 \\ \hline \end{tabular} \end{center} \begin{table}[htbp] \caption{\label{tab:orge528190} First table} \centering \begin{tabular}{rlr} A & B & C\\ \hline 1 & 231a & 3\\ & x & \\ 4 & 5 & 6\\ \end{tabular} \end{table} \end{document} ===================================================================== Export to an HTML buffer : =====================================================================

The table 2 , manual conversion and rough approxomation of 1, erports correcly, while the orginal one doesn't (no caption, no usable label).

  A   B     C    
1    
     
231a 
x    
3    
     
4     5     6    
Table 2: First table
A B C
1 231a 3
  x  
4 5 6

Created: 2019-05-04 sam. 13:16

Validate

===================================================================== Hope this helps...