From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: Possible bug in export of table in latex Date: Tue, 6 Jan 2015 18:15:36 +0000 Message-ID: <87tx03epx3.fsf@ucl.ac.uk> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55145) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y8YfW-0004cq-5T for emacs-orgmode@gnu.org; Tue, 06 Jan 2015 13:15:51 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y8YfS-0000GY-Uw for emacs-orgmode@gnu.org; Tue, 06 Jan 2015 13:15:50 -0500 Received: from mail-db3on0133.outbound.protection.outlook.com ([157.55.234.133]:3796 helo=emea01-db3-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y8YfS-0000FP-NC for emacs-orgmode@gnu.org; Tue, 06 Jan 2015 13:15:46 -0500 In-Reply-To: (Giuseppe Lipari's message of "Tue, 6 Jan 2015 14:03:24 +0100") 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 Cc: emacs-orgmode@gnu.org On Tuesday, 6 Jan 2015 at 14:03, Giuseppe Lipari wrote: > 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: I can confirm this (with a version of org a few days old). One solution, in the meantime, would be to put the table within a column and use the column width option to limit the width of the table, removing the :width option for the table. This works although it is not possible to specific the width of a column directly, only as a function of \columnwidth [1] so you'll have to play around with the factor to figure out what width to specify. HTH. Footnotes: [1] as an aside, it seems strange to me to define column widths as a factor of \columnwidth instead of \textwidth or similar... seems rather self-referential? -- : Eric S Fraga (0xFFFCF67D), Emacs 25.0.50.1, Org release_8.3beta-686-g9528be.dirty