From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Sebastien Vauban" Subject: Re: [new exporter] Captions for tables made by source blocks Date: Fri, 08 Mar 2013 09:21:21 +0100 Message-ID: <86fw06mhdq.fsf@somewhere.org> References: <20130306095512.GA1489@panahar> <87k3pk268w.fsf@gmail.com> <20130306105410.GA8157@panahar> <87zjygzp9g.fsf@gmail.com> <87sj47d3jf.fsf@gmail.com> <87txoncg76.fsf@Rainer.invalid> <87y5dzaqcu.fsf@gmail.com> <871ubqdh0d.fsf@Rainer.invalid> 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 Hello Achim, Achim Gratz wrote: > Nicolas Goaziou writes: >> It's very easy to have a caption on the generated output: name the code. >> Hence, the following code block: >> >> #+NAME: calculation >> #+BEGIN_SRC emacs-lisp >> (+ 1 1) >> #+END_SRC >> >> will produce: >> >> #+RESULTS: calculation >> 2 >> >> If you add a caption to the results, like: >> >> #+CAPTION: Basic arithmetic >> #+RESULTS: calculation >> 2 >> >> you can update the source block without ever needing to remove the >> caption. > > Great. I could swear the last time I was trying this it would add a new > result block on top of the old one, but I may have changed the name > inbetween. The thing is: - you try with an unnamed block - you get an unnamed result block inserted - you name the block - you get a named result block inserted - you have to manually remove the unnamed result block > It would still be nice (I think) if an unnamed source block would > simply replace the next unnamed result block if there is one. I think this is a great proposition, which would make a lot of sense. Best regards, Seb -- Sebastien Vauban