From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: resize org-table when exporting to latex Date: Mon, 27 Feb 2017 21:56:33 -0500 Message-ID: <87wpcbowf2.fsf@alphaville.usersys.redhat.com> References: <87o9xn88s0.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:35916) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ciXy8-0004bP-Fd for emacs-orgmode@gnu.org; Mon, 27 Feb 2017 21:56:53 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ciXy5-0005KQ-B4 for emacs-orgmode@gnu.org; Mon, 27 Feb 2017 21:56:52 -0500 Received: from [195.159.176.226] (port=44921 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ciXy5-0005KF-3S for emacs-orgmode@gnu.org; Mon, 27 Feb 2017 21:56:49 -0500 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1ciXxt-0007ET-F5 for emacs-orgmode@gnu.org; Tue, 28 Feb 2017 03:56:37 +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" To: emacs-orgmode@gnu.org Jeremie Juste writes: > Hello, > > Is there a way to resize latex table when exporting to latex? > For now my only recourse is to export the latex table copy the latex > code back to org-mode apply \scalebox. > > Do you have a more convenient way in mind? > You need to use tabularx - something like this: --8<---------------cut here---------------start------------->8--- #+LATEX_HEADER: \usepackage{tabularx} * Export a table #+CAPTION: foo #+NAME: bar #+ATTR_LATEX: :environment tabularx :width .8\textwidth :align X|X|X|X | a | b | c | d | |---+---+---+---| | 1 | 2 | 3 | 4 | --8<---------------cut here---------------end--------------->8--- -- Nick