From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sebastian Christ Subject: Re: Name of code pieces when exported to PDF Date: Mon, 26 Sep 2016 20:13:15 +0200 Message-ID: References: <8737km3c9u.fsf@nicolasgoaziou.fr> <0f3e4791-c495-b386-3262-56576000a9b9@fuhrer.ch> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58685) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1boaPX-00017P-Ru for emacs-orgmode@gnu.org; Mon, 26 Sep 2016 14:13:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1boaPS-0005HF-C2 for emacs-orgmode@gnu.org; Mon, 26 Sep 2016 14:13:50 -0400 Received: from [195.159.176.226] (port=34100 helo=blaine.gmane.org) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1boaPS-0005FZ-5H for emacs-orgmode@gnu.org; Mon, 26 Sep 2016 14:13:46 -0400 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1boaPJ-0001vC-EA for emacs-orgmode@gnu.org; Mon, 26 Sep 2016 20:13:37 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org On 2016-09-26 18:48, claude fuhrer 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