From mboxrd@z Thu Jan 1 00:00:00 1970 From: claude fuhrer Subject: Re: Name of code pieces when exported to PDF Date: Mon, 26 Sep 2016 18:48:34 +0200 Message-ID: <0f3e4791-c495-b386-3262-56576000a9b9@fuhrer.ch> References: <8737km3c9u.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39335) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1boZ5V-0005u8-38 for emacs-orgmode@gnu.org; Mon, 26 Sep 2016 12:49:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1boZ5Q-0004ps-MB for emacs-orgmode@gnu.org; Mon, 26 Sep 2016 12:49:04 -0400 Received: from vimdzmsp-sfwd02.bluewin.ch ([195.186.227.134]:60346 helo=smtpauths.lb.bluewin.ch) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1boZ5Q-0004oJ-FQ for emacs-orgmode@gnu.org; Mon, 26 Sep 2016 12:49:00 -0400 In-Reply-To: <8737km3c9u.fsf@nicolasgoaziou.fr> 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 Hi Nicolas On 26/09/16 17:34, Nicolas Goaziou wrote: > Hello, > > claude fuhrer writes: > >> [...] > It should be > > #+name: MainClass > #+begin_src ... > > i.e, with dots and no blank line in-between. Thank you for your quick answer, but I do not really understand how to use it. I've corrected the syntax as you mentioned and shows what is the generated latex code. The export process gives then: \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 ? Thank you once again for your help. regards claude > > Regards, >