From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: controling width of graphviz source block result Date: Sat, 14 Jun 2014 13:54:56 +0200 Message-ID: <87sin7zoxb.fsf@nicolasgoaziou.fr> 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: Received: from eggs.gnu.org ([2001:4830:134:3::10]:45679) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WvmXU-0002Sz-Js for emacs-orgmode@gnu.org; Sat, 14 Jun 2014 07:54:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WvmXM-0002ln-R4 for emacs-orgmode@gnu.org; Sat, 14 Jun 2014 07:54:28 -0400 Received: from relay3-d.mail.gandi.net ([2001:4b98:c:538::195]:47075) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WvmXM-0002li-Ka for emacs-orgmode@gnu.org; Sat, 14 Jun 2014 07:54:20 -0400 In-Reply-To: <87sin9daof.fsf@channing.harvard.edu> (regcl@channing.harvard.edu's message of "Thu, 12 Jun 2014 18:29:04 -0400") 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: regcl Cc: emacs-orgmode@gnu.org Hello, regcl writes: > 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? I don't know what the current state of the art is, but I usually add a name to the block, generate the result link, and add attributes above. Regards, -- Nicolas Goaziou