Hi Giles,
Giles Chamberlin <[email protected]> writes:
> I'm using the listings package and org-version 7.4 to generate latex/pdf
> output including source snippets. I'd like to add captions: "Figure 1:
> My code" and tried with the following to no avail:
>
> #+caption: My code
> #+begin_src clojure
> ;; stuff
> #+end_src
>
> Do I have to wrap this in \begin{figure}\caption{} or is there a simpler
> way?
Since captions make sense for figures, I think you have to wrap this
in \begin{figure}\caption{}. But maybe there is a way to automatically
wrap source blocks into a caption-aware LaTeX environment -- Eric might
give a more useful answer.
Thanks,
--
Bastien