Hi Graham,
I think your solution is sensible, and thanks for bringing up these
issues. Perhaps, as you suggest, we should be automatically setting
these attributes in the latex output; we'll get back to you on that.
Regarding the number of copies of the figure in the output, it should
work as
Dan,
Before running the export, do you have a link to the image *already* in
your org buffer?
If no, then you should just get one copy of the image.
If yes, then, if the link is positioned in such a way that it will get
replaced by the output (no intervening lines between end of source
IGNORE everything in my last email.
The only relevant bit is
\includegraphics[width=10em]{BoxplotSummary.pdf}
\includegraphics[width=10em]{z.pdf}
So it seems to be ignoring the change in height and width commands for
z.pdf, and defaulting to 10em.
If I then edit the [width=10em] bit in the
A little progress here
#+srcname:Boxplots Summary
#+begin_src R :session BirdData :file BoxplotSummary.pdf :exports both
boxplot(Wingcrd,Tarsus,Head,Wt,names=c(Wingcrd,Tarsus,Head,Wt))
#+end_src
#+resname: Boxplots
#+ATTR_LaTeX: width=10cm
[[file:BoxplotSummary.pdf]]
This gives me a plot
This works
#+srcname:Boxplots Summary
#+begin_src R :session BirdData :file BoxplotSummary.pdf :exports none
boxplot(Wingcrd,Tarsus,Head,Wt,names=c(Wingcrd,Tarsus,Head,Wt))
#+end_src
#+resname: Boxplots
#+CAPTION:Trial boxplots with babel
#+LABEL: fig:trial boxplots
#+ATTR_LaTeX:
OK, This was all to do with the ordering of the latex code
Below works, includes the R code, but only one plot of the expected size.
#+srcname:Boxplots Summary
#+begin_src R :session BirdData :file BoxplotSummary.pdf :exports both
I don't seem able to change the size of graphics in the PDF output.
#+begin_src R :file z.pdf :width 20 :height 20 :R-dev-args
bg=olivedrab, fg=hotpink
plot(matrix(rnorm(100), ncol=2), type=l)
#+end_src
Using this example from an earlier post, regardless of how I change
the width and
Hi Graham,
Graham Smith myotis...@gmail.com writes:
I don't seem able to change the size of graphics in the PDF output.
#+begin_src R :file z.pdf :width 20 :height 20 :R-dev-args
bg=olivedrab, fg=hotpink
plot(matrix(rnorm(100), ncol=2), type=l)
#+end_src
Using this example from an
Dan/Torsten
Thanks, It seems to be a orgemode/babel/Latex issue.
If I view the pdf from within Emacs by double clicking on the link,
the size changes as expected, but if I compile the whole document as a
pdf the plots appear as small.
The error in the log is
! LaTeX Error: Cannot determine