From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Hendy Subject: Re: org-babel src block generated graphics included twice if CAPTION is added Date: Sun, 17 Mar 2013 21:53:10 -0500 Message-ID: References: <87obei18b9.fsf@nus.edu.sg> <4211.1363558889@alphaville> <87620pcxuo.fsf@nus.edu.sg> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=bcaec553ffc0e01c4004d82a1602 Return-path: Received: from eggs.gnu.org ([208.118.235.92]:39934) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UHQCI-0007G6-Cx for emacs-orgmode@gnu.org; Sun, 17 Mar 2013 22:53:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UHQCG-0005ID-FY for emacs-orgmode@gnu.org; Sun, 17 Mar 2013 22:53:14 -0400 Received: from mail-la0-x235.google.com ([2a00:1450:4010:c03::235]:46939) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UHQCG-0005I3-2v for emacs-orgmode@gnu.org; Sun, 17 Mar 2013 22:53:12 -0400 Received: by mail-la0-f53.google.com with SMTP id fr10so5425829lab.26 for ; Sun, 17 Mar 2013 19:53:11 -0700 (PDT) In-Reply-To: <87620pcxuo.fsf@nus.edu.sg> 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: Li Bowen Cc: emacs-orgmode , nicholas.dokos@hp.com, Jay Kerns --bcaec553ffc0e01c4004d82a1602 Content-Type: text/plain; charset=UTF-8 On Sun, Mar 17, 2013 at 8:15 PM, Li Bowen wrote: > Thanks, John. > > I also noticed that #+options can lead to re-insertion. > > Your piece of instruction should go to the online documentation. It will > save people hours of time from trouble-shooting. I suppose any one who writes a report with figures using org-babel will face the same problem. I've got some other changes to make to Worg... I'll look for a place to put this as well, though Eric's patch probably makes this obsolete now! At least your post, the nth inquiry about it to the mailing list, has gotten us a patch! That counts for something! By the way, I've run into this very thing before as well :) - http://osdir.com/ml/emacs-orgmode-gnu/2012-07/msg00230.html John > > John Hendy writes: > >> On Sun, Mar 17, 2013 at 6:20 PM, Jay Kerns wrote: >>> On Sun, Mar 17, 2013 at 6:21 PM, Nick Dokos wrote: >>> >>> [snip] >>> >>>> I think the best way to deal with problems like this is to name your code blocks (and results blocks). >>>> >>> >>> [snip] >>> >>> I can't speak for Li, but it works on my system and I like Nick's >>> solution better than mine. >> >> This is my preferred syntax as well. This has come up before on the >> list; essentially any #+options syntax before an un-named #+results >> block will cause the results to be re-inserted. #+begin_center or any >> #+attr_backend options result in the same duplicate insertion of >> results. >> >> >> Also, just in case it's not known, you don't have to manually name the >> #+results block. Just create your babel block with a #+name: attribute >> and when you run it with C-c C-c, a named #+result will automatically >> be created. >> >> John >> >>> >>> Cheers, >>> >>> -- >>> Jay >>> > > -- > Sincerely, > Li Bowen. --bcaec553ffc0e01c4004d82a1602 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

On Sun, Mar 17, 2013 at 8:15 PM, Li Bowen <a0050726@nus.edu.sg> wrote:
> Thanks, John.
>
> I also noticed that #+options can lead to re-insertion.
>
> Your piece of instruction should go to the online documentation. It wi= ll
> save people hours of time from trouble-shooting. I suppose any one who= writes a report with figures using org-babel will face the same problem.

I've got some other changes to make to Worg... I'll look for a p= lace to put this as well, though Eric's patch probably makes this obsol= ete now! At least your post, the nth inquiry about it to the mailing list, = has gotten us a patch! That counts for something!

By the way, I've run into this very thing before as well :)
- h= ttp://osdir.com/ml/emacs-orgmode-gnu/2012-07/msg00230.html

John

>
> John Hendy <jw.hendy@gmail.co= m> writes:
>
>> On Sun, Mar 17, 2013 at 6:20 PM, Jay Kerns <gjkernsysu@gmail.com> wrote:
>>> On Sun, Mar 17, 2013 at 6:21 PM, Nick Dokos <nicholas.dokos@hp.com> wrote:
>>>
>>> [snip]
>>>
>>>> I think the best way to deal with problems like this is to= name your code blocks (and results blocks).
>>>>
>>>
>>> [snip]
>>>
>>> I can't speak for Li, but it works on my system and I like= Nick's
>>> solution better than mine.
>>
>> This is my preferred syntax as well. This has come up before on th= e
>> list; essentially any #+options syntax before an un-named #+result= s
>> block will cause the results to be re-inserted. #+begin_center or = any
>> #+attr_backend options result in the same duplicate insertion of >> results.
>>
>>
>> Also, just in case it's not known, you don't have to manua= lly name the
>> #+results block. Just create your babel block with a #+name: attri= bute
>> and when you run it with C-c C-c, a named #+result will automatica= lly
>> be created.
>>
>> John
>>
>>>
>>> Cheers,
>>>
>>> --
>>> Jay
>>>
>
> --
> Sincerely,
> Li Bowen.

--bcaec553ffc0e01c4004d82a1602--