Re: [O] Possible BUG : table.el tables export incotrrectly

2019-05-04 Thread Emmanuel Charpentier
Dear Nicolas,

Thanks for the clarification. I misread the documentation.

Sorry for the noise...

--
Emmanuel Charpentier


Le samedi 04 mai 2019 à 23:00 +0200, Nicolas Goaziou a écrit :
> Hello,
> 
> Emmanuel Charpentier  writes:
> 
> > 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:.
> 
> Org mode does /not/ handle table.el tables. It merely recognizes
> them,
> and send them to "table.el" for translation into HTML or LaTeX code.
> And
> "table.el" doesn't recognize Org syntax, e.g., #+captions and
> #+names.
> 
> Regards,
> 




Re: [O] Possible BUG : table.el tables export incotrrectly

2019-05-04 Thread Nicolas Goaziou
Hello,

Emmanuel Charpentier  writes:

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

Org mode does /not/ handle table.el tables. It merely recognizes them,
and send them to "table.el" for translation into HTML or LaTeX code. And
"table.el" doesn't recognize Org syntax, e.g., #+captions and #+names.

Regards,

-- 
Nicolas Goaziou



[O] Possible BUG : table.el tables export incotrrectly

2019-05-04 Thread Emmanuel Charpentier
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 :

=

http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd;>
http://www.w3.org/1999/xhtml; lang="en" xml:lang="en">