On 2016-09-26 17:32, Nick Dokos <ndo...@gmail.com> wrote: >> #+caption: MainClass >> #+name: MainClass >> >> #+begin_src ... > That seems indeed to be necessary (at least in a few experiments that > I've run), but it's less than ideal (duplication of information).
In this peculiar case, yes. But, at least for me, I use each for a different purpose that doesn't duplicate the information. I'm using org-ref for references and most of the time a more meaningful caption. For example: #+caption: A class with a main method #+name: lst-main #+begin_src java Regards, Sebastian -- Sebastian (Rudolfo) Christ http://rudolfochrist.github.io GPG Fingerprint: 306D 8FD3 DFB6 4E44 5061 CE71 6407 D6F8 2AC5 55DD