[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: |
Mon, 26 Sep 2016 20:13:15 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.1 (darwin) |
On 2016-09-26 18:48, claude fuhrer <address@hidden> wrote:
> \lstset{language=java,label=secondBlock,caption= ,captionpos=b,numbers=none}
> \begin{lstlisting}
> .....
> \end{lstlisting}
>
> But I wanted to have the "caption" filled with the same value as the
> label. Is it possible ?
>
Yes, use caption!
#+caption: MainClass
#+name: MainClass
#+begin_src ...
Regards,
Sebastian
--
Sebastian (Rudolfo) Christ
http://rudolfochrist.github.io
GPG Fingerprint: 306D 8FD3 DFB6 4E44 5061
CE71 6407 D6F8 2AC5 55DD