[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Name of code pieces when exported to PDF
From: |
Sebastian Christ |
Subject: |
Re: [O] Name of code pieces when exported to PDF |
Date: |
Tue, 27 Sep 2016 13:11:24 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.1 (darwin) |
On 2016-09-26 17:32, Nick Dokos <address@hidden> 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