Luis Anaya <papoan...@hotmail.com> 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

Reply via email to