From mboxrd@z Thu Jan 1 00:00:00 1970 From: Giuseppe Lipari Subject: Re: Possible bug in export of table in latex Date: Thu, 8 Jan 2015 09:40:01 +0100 Message-ID: References: <87k30za6c0.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=089e0122e70a61deea050c1ffc4c Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46488) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y98dQ-0004an-Mh for emacs-orgmode@gnu.org; Thu, 08 Jan 2015 03:40:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y98dP-000778-Co for emacs-orgmode@gnu.org; Thu, 08 Jan 2015 03:40:04 -0500 Received: from mail-wi0-x235.google.com ([2a00:1450:400c:c05::235]:64605) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y98dP-00074d-2H for emacs-orgmode@gnu.org; Thu, 08 Jan 2015 03:40:03 -0500 Received: by mail-wi0-f181.google.com with SMTP id r20so1706468wiv.2 for ; Thu, 08 Jan 2015 00:40:01 -0800 (PST) In-Reply-To: <87k30za6c0.fsf@nicolasgoaziou.fr> 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: Giuseppe Lipari , emacs-orgmode@gnu.org --089e0122e70a61deea050c1ffc4c Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi, thanks for responding. As a matter of fact, I think the :width option for latex tables should be disabled, because it is not so simple to implement. While it is possible to reduce the width with Eric's trick, it is not so easy to enlarge the width without using the :align option and appropriate latex code, so the simplest approach would be to either give an error upon exportin, or to ignore the width option altogether. On the other hand, I guess :width makes sense for other exporters, like e.g. html or ODT, so it should stay. Just my two cents. Giuseppe Lipari 2015-01-06 23:32 GMT+01:00 Nicolas Goaziou : > Hello, > > Giuseppe Lipari writes: > > > I am preparing some slides using org-beamer mode. Here is the snippet o= f > 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 colu= mn > > alignment. > > This should be fixed. Thank you for reporting it. > > > Regards, > > -- > Nicolas Goaziou > --=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) --089e0122e70a61deea050c1ffc4c Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi,

thanks for responding.
As a = matter of fact, I think the :width option for latex tables should be disabl= ed, because it is not so simple to implement.
While it is possible to r= educe the width with Eric's trick, it is not so easy to enlarge the wid= th without using the :align option and appropriate latex code, so the simpl= est approach would be to either give an error upon exportin, or to ignore t= he width option altogether.

On the other hand, I guess :width= makes sense for other exporters, like e.g. html or ODT, so it should stay.=

Just my two cents.

Giuseppe Lipari
=C2=A0



2015-01-06 23:32 GMT+01:00 Nicola= s Goaziou <mail@nicolasgoaziou.fr>:
Hello,

Giuseppe Lipari <giulipari@gmail.= com> writes:

> I am preparing some slides using org-beamer mode. Here is the snippet = of a
> table I have in my file:
>
>
>=C2=A0 =C2=A0 #+ATTR_LATEX: :float 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 | Operating System=C2=A0 | Distributed OS=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| Netwo= rk programming libs=C2=A0 =C2=A0 |
>=C2=A0 =C2=A0 | Progr. language=C2=A0 =C2=A0| Distributed Progr. langua= ge |
>=C2=A0 =C2=A0 |-------------------+-----------------------------|
>
> If I understand well from the documentation, the "width" opt= ion should set
> the width of the table. However, the exporter produces the following l= atex
> 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 firs= t
> parameter of tabular should not be the width of the table, but the col= umn
> alignment.

This should be fixed. Thank you for reporting it.


Regards,

--
Nicolas Goaziou



--
Giuseppe Lipari
LIFL
Univ= ersit=C3=A9 de Lille 1
blogs: http://scacciamennule.blogspot.com=C2=A0 (Italia= n)
=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://a= lgoland.wordpress.com=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0 (English)
--089e0122e70a61deea050c1ffc4c--