emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Centering R babel plots in LaTeX/Beamer export?
@ 2012-07-09 17:18 John Hendy
  2012-07-09 21:26 ` Nick Dokos
  0 siblings, 1 reply; 6+ messages in thread
From: John Hendy @ 2012-07-09 17:18 UTC (permalink / raw)
  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

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-07-19 15:30 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-09 17:18 Centering R babel plots in LaTeX/Beamer export? John Hendy
2012-07-09 21:26 ` Nick Dokos
2012-07-09 21:56   ` John Hendy
2012-07-09 23:24     ` Nick Dokos
2012-07-12 21:22       ` John Hendy
2012-07-19 15:29         ` John Hendy

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).