From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sebastien Vauban Subject: Re: controling width of graphviz source block result Date: Tue, 17 Jun 2014 14:25:27 +0200 Message-ID: <86vbrzen9k.fsf@somewhere.org> References: <87fvncpfrb.fsf@channing.harvard.edu> <87lhx41ipa.fsf@gmail.com> <87zjlkns3m.fsf@channing.harvard.edu> <87d2if1qox.fsf@gmail.com> <87sin9daof.fsf@channing.harvard.edu> Mime-Version: 1.0 Content-Type: text/plain Return-path: 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-mXXj517/zsQ@public.gmane.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org To: emacs-orgmode-mXXj517/zsQ@public.gmane.org regcl wrote: > Thank you for your earlier comments. In order to adjust the scaling of > a graphic generated by a R source block I am doing this ... > > ** adjusting scaling of a figure generated from source > > #+begin_src R :results graphics silent :file foo2.pdf :exports results > plot(c(1:10), c(10:1)) > #+end_src > > #+attr_latex: :width .35\textwidth > file:foo2.pdf > > While this does work, it is a wee bit unsatisfying to type "foo2.pdf"" > twice. > > Is there a better way to apply the latex keyword to the results? What I do is that I simply execute it a first time, so that the link is created (that is, the name is copied) by Org. Best regards, Seb -- Sebastien Vauban