From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Loris Bennett" Subject: Re: resize table in latex Date: Mon, 01 Jun 2015 13:21:48 +0200 Message-ID: <876177d67n.fsf@hornfels.zedat.fu-berlin.de> References: <1529a4f6-d431-4600-98a5-4910120dcecd@HUB01.ad.oak.ox.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46114) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YzNn5-00082E-Uu for emacs-orgmode@gnu.org; Mon, 01 Jun 2015 07:22:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YzNn2-0001jI-Oo for emacs-orgmode@gnu.org; Mon, 01 Jun 2015 07:21:59 -0400 Received: from plane.gmane.org ([80.91.229.3]:58124) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YzNn2-0001jE-IT for emacs-orgmode@gnu.org; Mon, 01 Jun 2015 07:21:56 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1YzNmz-0001op-SB for emacs-orgmode@gnu.org; Mon, 01 Jun 2015 13:21:53 +0200 Received: from hornfels.zedat.fu-berlin.de ([160.45.11.110]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 01 Jun 2015 13:21:53 +0200 Received: from loris.bennett by hornfels.zedat.fu-berlin.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 01 Jun 2015 13:21:53 +0200 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 Zhihao Ding writes: > Hi there, > > I am trying to find a way to automatically resize tables > in the latex output. > > When doing slides in beamer, I use this to resize tables > to fit in a frame > > #+LaTeX: \scriptsize{\resizebox{\textwidth}{!}{ > | . | . | > #+LaTeX: }} > > While when writing reports, I use the following instead > as I need to cross reference it by the name > > #+CAPTION: table caption > #+NAME: table:label > | . | . | > > then I loose the resize facility. How could I combine > the two? I tried to fiddle with > #+ATTR_LATEX but didn’t mange to make it work. > > Thanks very much! > > Zhihao I'm not sure whether it is related, but I have had problems with using a colon in names of objects. Using, say, 'table;label' instead of 'table:label' might help. Cheers, Loris -- This signature is currently under construction.