From mboxrd@z Thu Jan 1 00:00:00 1970 From: Zhihao Ding Subject: Re: shrink latex table to fit beamer slide Date: Sat, 6 Dec 2014 14:19:38 +0000 Message-ID: References: <167d6201-d240-496d-804d-8953195f7212@HUB04.ad.oak.ox.ac.uk> <871todqbs4.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54485) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XxGD6-0006Dt-TO for emacs-orgmode@gnu.org; Sat, 06 Dec 2014 09:19:54 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XxGD0-000284-Vy for emacs-orgmode@gnu.org; Sat, 06 Dec 2014 09:19:48 -0500 Received: from relay14.mail.ox.ac.uk ([163.1.2.162]:33059) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XxGD0-00027z-PQ for emacs-orgmode@gnu.org; Sat, 06 Dec 2014 09:19:42 -0500 In-Reply-To: <871todqbs4.fsf@ucl.ac.uk> Content-Language: en-US Content-ID: <483C9AFD11770D449BC28BDB65274539@ad.oak.ox.ac.uk> 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: Eric S Fraga Cc: Andreas Leha , "emacs-orgmode@gnu.org" Thanks guys, in the end using R to round numbers and latex=20 resizebox to shrink table fonts as Andreas suggested works=20 best for me.=20 Cheers, Zhihao #+name: origtable | 124.195548 | 310.528 | =20 | 120.848541 | 122.70234 |=20 =20 #+name: formatorigtable #+begin_src R :var origtable=3Dorigtable :colnames yes origtable[,1:2] <- format(origtable[,1:2], digits=3D3) origtable #+end_src #+results: formatorigtable #+LaTeX: \resizebox{\textwidth}{!}{ =20 | 124.195 | 310.528 | =20 | 120.848 | 122.702 |=20 #+LaTeX: } > On 6 Dec 2014, at 11:04, Eric S Fraga wrote: >=20 > On Friday, 5 Dec 2014 at 14:39, Zhihao Ding wrote: >> Thanks a lot Andreas. Is there a way to globally=20 >> shrink/resize table for latex export without having=20 >=20 > Beamer allows for shrinking of a whole frame to ensure it fits: >=20 > --8<---------------cut here---------------start------------->8--- > * Frame title > :PROPERTIES: > :BEAMER_optimisation: shrink > :END: >=20 > | my | table | > | et | cetera | > --8<---------------cut here---------------end--------------->8--- >=20 > The shrink option can also specify a percentage, as in "shrink=3D20". >=20 > --=20 > : Eric S Fraga (0xFFFCF67D), Emacs 25.0.50.1, Org release_8.3beta-581-g0e= 52f0