emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] org-babel src block generated graphics included twice if CAPTION


From: Eric Schulte
Subject: Re: [O] org-babel src block generated graphics included twice if CAPTION is added
Date: Sun, 17 Mar 2013 19:59:13 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux)

I just pushed up a patch which should allow code blocks to find un-named
results even when there are comment lines (such as #+options or
#+attr_backend) between the code block and the results.

Hope this helps,

John Hendy <address@hidden> writes:

> On Sun, Mar 17, 2013 at 6:20 PM, Jay Kerns <address@hidden> wrote:
>> On Sun, Mar 17, 2013 at 6:21 PM, Nick Dokos <address@hidden> 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
>>
>

-- 
Eric Schulte
http://cs.unm.edu/~eschulte



reply via email to

[Prev in Thread] Current Thread [Next in Thread]