From: Zhihao Ding <zhihao.ding@imm.ox.ac.uk>
To: Eric S Fraga <e.fraga@ucl.ac.uk>
Cc: Andreas Leha <andreas.leha@med.uni-goettingen.de>,
"emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: Re: shrink latex table to fit beamer slide
Date: Sat, 6 Dec 2014 14:19:38 +0000 [thread overview]
Message-ID: <d0d56ad5-fedd-4bda-9efd-dcf8e09c3de9@HUB04.ad.oak.ox.ac.uk> (raw)
In-Reply-To: <871todqbs4.fsf@ucl.ac.uk>
Thanks guys, in the end using R to round numbers and latex
resizebox to shrink table fonts as Andreas suggested works
best for me.
Cheers,
Zhihao
#+name: origtable
| 124.195548 | 310.528 |
| 120.848541 | 122.70234 |
#+name: formatorigtable
#+begin_src R :var origtable=origtable :colnames yes
origtable[,1:2] <- format(origtable[,1:2], digits=3)
origtable
#+end_src
#+results: formatorigtable
#+LaTeX: \resizebox{\textwidth}{!}{
| 124.195 | 310.528 |
| 120.848 | 122.702 |
#+LaTeX: }
> On 6 Dec 2014, at 11:04, Eric S Fraga <e.fraga@ucl.ac.uk> wrote:
>
> On Friday, 5 Dec 2014 at 14:39, Zhihao Ding wrote:
>> Thanks a lot Andreas. Is there a way to globally
>> shrink/resize table for latex export without having
>
> Beamer allows for shrinking of a whole frame to ensure it fits:
>
> --8<---------------cut here---------------start------------->8---
> * Frame title
> :PROPERTIES:
> :BEAMER_optimisation: shrink
> :END:
>
> | my | table |
> | et | cetera |
> --8<---------------cut here---------------end--------------->8---
>
> The shrink option can also specify a percentage, as in "shrink=20".
>
> --
> : Eric S Fraga (0xFFFCF67D), Emacs 25.0.50.1, Org release_8.3beta-581-g0e52f0
prev parent reply other threads:[~2014-12-06 14:19 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-05 11:18 shrink latex table to fit beamer slide Zhihao Ding
2014-12-05 13:12 ` Andreas Leha
2014-12-05 14:39 ` Zhihao Ding
2014-12-05 14:55 ` Andreas Leha
2014-12-06 11:04 ` Eric S Fraga
2014-12-06 14:19 ` Zhihao Ding [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=d0d56ad5-fedd-4bda-9efd-dcf8e09c3de9@HUB04.ad.oak.ox.ac.uk \
--to=zhihao.ding@imm.ox.ac.uk \
--cc=andreas.leha@med.uni-goettingen.de \
--cc=e.fraga@ucl.ac.uk \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).