From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Hendy Subject: Centering R babel plots in LaTeX/Beamer export? Date: Mon, 9 Jul 2012 12:18:14 -0500 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([208.118.235.92]:47168) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SoHbK-0005CT-H7 for emacs-orgmode@gnu.org; Mon, 09 Jul 2012 13:18:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SoHbF-0005RD-S2 for emacs-orgmode@gnu.org; Mon, 09 Jul 2012 13:18:22 -0400 Received: from mail-bk0-f41.google.com ([209.85.214.41]:35758) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SoHbF-0005Qz-IM for emacs-orgmode@gnu.org; Mon, 09 Jul 2012 13:18:17 -0400 Received: by bkcjc3 with SMTP id jc3so7698120bkc.0 for ; Mon, 09 Jul 2012 10:18:14 -0700 (PDT) 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 I'm exporting a Beamer presentation with R babel blocks and my plots are not centered. This should be a reproducible example: ----- #+startup: beamer #+latex_class: beamer #+options: toc:nil latex:t tex:t #+latex_class_options: [presentation,bigger] #+beamer_frame_level: 1 * plot #+header: :width 8 :height 6 #+begin_src R :exports results :results output graphics :file file.pdf x <- c(1:10) y <- x^2 plot(x,y) #+end_src ----- I tried putting #+begin_center and #+end_center around the block, but it changes the LaTeX export to wrapping my R block in \begin/\end{verbatim}. Worg ob-R-doc has a :pagecentre option, but says it defaults to true, so I'm not sure that's my fix. Thanks, John