From mboxrd@z Thu Jan 1 00:00:00 1970 From: regcl Subject: Re: controling width of graphviz source block result Date: Thu, 12 Jun 2014 18:29:04 -0400 Message-ID: <87sin9daof.fsf@channing.harvard.edu> References: <87fvncpfrb.fsf@channing.harvard.edu> <87lhx41ipa.fsf@gmail.com> <87zjlkns3m.fsf@channing.harvard.edu> <87d2if1qox.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49174) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WvDXT-0001y4-E2 for emacs-orgmode@gnu.org; Thu, 12 Jun 2014 18:32:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WvDXO-0006Sf-19 for emacs-orgmode@gnu.org; Thu, 12 Jun 2014 18:32:07 -0400 Received: from mail-qa0-f46.google.com ([209.85.216.46]:40789) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WvDXN-0006SZ-Tg for emacs-orgmode@gnu.org; Thu, 12 Jun 2014 18:32:01 -0400 Received: by mail-qa0-f46.google.com with SMTP id i13so2367698qae.5 for ; Thu, 12 Jun 2014 15:32:00 -0700 (PDT) In-Reply-To: <87d2if1qox.fsf@gmail.com> (Nicolas Goaziou's message of "Sat, 22 Feb 2014 09:45:18 +0100") 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: Nicolas Goaziou Cc: emacs-orgmode@gnu.org Hi Nicolas, 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? Many thanks, regcl Nicolas Goaziou writes: > Hello, > > regcl writes: > >> So I am understanding from your answer that attribues only "modify" the >> next immediate "thing" in the .org document, and do not persist, so to >> speak. > > "things" are called "elements" in Org lingo and "attributes" are called > "affiliated keywords". So, yes, affiliated keywords apply to the element > right after them. > >> But I have discovered that it works to stack them up like this ... >> >> #+ATTR_HTML: :width 1000 >> #+ATTR_ODT: :width 15 :height 15 >> [[file:gnus.png]] >> >> ... so I am a little confused. >> >> Could you please clarify? > > Both keywords are affiliated keywords. There is only one element in this > example (a paragraph containing a single link). Affiliated keywords > apply to the next element, not the next affiliated keyword. > > For more information, see: > > http://orgmode.org/worg/dev/org-syntax.html > > or the comments at the beginning of "org-element.el". > > > Regards,