From mboxrd@z Thu Jan 1 00:00:00 1970 From: Giuseppe Lipari Subject: Possible bug in export of table in latex Date: Tue, 6 Jan 2015 14:03:24 +0100 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=089e0122e70aa56f6e050bfb6ed3 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43113) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y8TnK-0004GD-No for emacs-orgmode@gnu.org; Tue, 06 Jan 2015 08:03:35 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y8TnJ-0002N6-CT for emacs-orgmode@gnu.org; Tue, 06 Jan 2015 08:03:34 -0500 Received: from mail-we0-x22a.google.com ([2a00:1450:400c:c03::22a]:49138) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y8TnJ-0002Mm-0t for emacs-orgmode@gnu.org; Tue, 06 Jan 2015 08:03:33 -0500 Received: by mail-we0-f170.google.com with SMTP id w61so9633314wes.15 for ; Tue, 06 Jan 2015 05:03:31 -0800 (PST) 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org --089e0122e70aa56f6e050bfb6ed3 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Dear all, happy new year to everybody! I think I might have discovered a bug. I am preparing some slides using org-beamer mode. Here is the snippet of a table I have in my file: #+ATTR_LATEX: :float t :width 4cm | /Single node app/ | /Distributed app/ | |-------------------+-----------------------------| | Operating System | Distributed OS | | Network | Network programming libs | | Progr. language | Distributed Progr. language | |-------------------+-----------------------------| If I understand well from the documentation, the "width" option should set the width of the table. However, the exporter produces the following latex snippet: \begin{table}[htb] \centering \begin{tabular}{4cm}{ll} \emph{Single node app} & \emph{Distributed app}\\ \hline Operating System & Distributed OS\\ Network & Network programming libs\\ Progr. language & Distributed Progr. language\\ \hline \end{tabular} \end{table} \end{frame} Clearly, the lenght specification went in the wrong place, as the first parameter of tabular should not be the width of the table, but the column alignment. I am running the most updated version from git, that is 8.3beta All the best, Giuseppe Lipari --=20 Giuseppe Lipari LIFL Universit=C3=A9 de Lille 1 blogs: http://scacciamennule.blogspot.com (Italian) http://okpanico,wordpress.com (Italian) http://algoland.wordpress.com (English) --089e0122e70aa56f6e050bfb6ed3 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Dear all,

happy new year to ev= erybody!

I think I might have discovered a bug.
I a= m preparing some slides using org-beamer mode. Here is the snippet of a tab= le I have in my file:


=C2=A0=C2=A0 #+ATTR_LATEX: :floa= t t :width 4cm
=C2=A0=C2=A0 | /Single node app/ | /Distributed app/=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 |
=C2=A0=C2=A0= |-------------------+-----------------------------|
=C2=A0=C2=A0 | Oper= ating System=C2=A0 | Distributed OS=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 |
=C2=A0=C2=A0 | Network=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 | Network programmin= g libs=C2=A0=C2=A0=C2=A0 |
=C2=A0=C2=A0 | Progr. language=C2=A0=C2=A0 | = Distributed Progr. language |
=C2=A0=C2=A0 |-------------------+--------= ---------------------|

If I understand well from the docu= mentation, the "width" option should set the width of the table. = However, the exporter produces the following latex snippet:


\begin{table}[htb]
\centering
\begin{tabular}{4cm}{ll}
\emp= h{Single node app} & \emph{Distributed app}\\
\hline
Operating Sy= stem & Distributed OS\\
Network & Network programming libs\\
= Progr. language & Distributed Progr. language\\
\hline
\end{tabul= ar}
\end{table}
\end{frame}


Clearly, the lenght= specification went in the wrong place, as the first parameter of tabular s= hould not be the width of the table, but the column alignment.

I am running the most updated version from git, that is 8.3beta
<= br>
All the best,

Giuseppe Lipari




--
Giuseppe Lipari
LIFL
Unive= rsit=C3=A9 de Lille 1
blogs: http://scacciamennule.blogspot.com=C2=A0 (Italian= )
=C2=A0=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0http://okpanico,wordpress.com=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0 (Italian)
=C2=A0=C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0http://al= goland.wordpress.com=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0 (English)
--089e0122e70aa56f6e050bfb6ed3--