From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: #+CAPTION: Not being protected when they are used with #+begin_src Date: Sat, 07 Jul 2012 11:15:29 -0600 Message-ID: <87a9zb7ary.fsf@gmx.com> References: <22257.1340710426@alphaville> <87fw9i15sq.fsf@gmail.com> <87k3yp1esj.fsf@gmail.com> <87bok1108y.fsf@gmail.com> <87y5n1fa08.fsf@gmail.com> <87obntqs30.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:46241) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SnYcN-00043A-SB for emacs-orgmode@gnu.org; Sat, 07 Jul 2012 13:16:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SnYcM-0005PQ-1i for emacs-orgmode@gnu.org; Sat, 07 Jul 2012 13:16:27 -0400 Received: from mailout-us.gmx.com ([74.208.5.67]:40035) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1SnYcL-0005P2-Ri for emacs-orgmode@gnu.org; Sat, 07 Jul 2012 13:16:25 -0400 In-Reply-To: (Luis Anaya's message of "Sat, 7 Jul 2012 10:25:10 -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: Luis Anaya Cc: emacs-orgmode@gnu.org Luis Anaya writes: > From the documentation, I know that captions work with inline images > and tables, but for some reason when then inline images are generated > through org-babel, #+CAPTION keys turns into regular text. What am I > doing wrong now? :) > Instead of putting the #+Caption: line on the source block, place it on the result. This requires the use of named code blocks and results. The following alternate version of your example should give the behavior you're after. --8<---------------cut here---------------start------------->8--- #+TITLE: Graphic Tests #+AUTHOR: Luis R. Anaya #+GROFF_ATTR: :alignment center #+GROFF_CLASS: file * PlantUML #+name: plantuml-drawing #+begin_src plantuml :cmdline -Teps :file x.eps [A] --> [B] #+end_src #+CAPTION: plantuml drawing #+RESULTS: plantuml-drawing [[file:x.eps]] * Gnuplot #+name: gnuplot-drawing #+begin_src gnuplot :file salida.pic set term gpic plot sin(x) #+end_src #+CAPTION: gnuplot drawing #+RESULTS: gnuplot-drawing [[file:salida.pic]] --8<---------------cut here---------------end--------------->8--- Best, -- Eric Schulte http://cs.unm.edu/~eschulte