Aloha Andreas,
Here's one way to get captions with source code listings and a list of
listings.
Use org-special-blocks to export a listing environment, e.g.
#+BEGIN_listing
#+source: identification-part
#+begin_src latex :exports code
\NeedsTeXFormat{LaTeX2e}
Hi Tom,
thanks for the answer. Works great.
The lstlistings LaTeX package, however, has the advantage of providing
captions without a float environment - it has its own caption= switch.
So I hoped, that I could do just
#+source: identification-part
#+begin_src latex :exports code
Aloha Andreas,
Good to hear it works for you.
I don't believe there is currently a way to use #+CAPTION: with
anything other than links to images and with tables.
The approach with org-special-blocks has the advantage that it will
work with the minted package as well as the listings