From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Name of code pieces when exported to PDF Date: Mon, 26 Sep 2016 17:32:08 -0400 Message-ID: <87mviuwdnr.fsf@gmail.com> 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]:46173) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bodVx-0003Rb-5t for emacs-orgmode@gnu.org; Mon, 26 Sep 2016 17:32:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bodVs-0001WC-UC for emacs-orgmode@gnu.org; Mon, 26 Sep 2016 17:32:40 -0400 Received: from [195.159.176.226] (port=41544 helo=blaine.gmane.org) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bodVs-0001Vp-Np for emacs-orgmode@gnu.org; Mon, 26 Sep 2016 17:32:36 -0400 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1bodVX-0003O1-G5 for emacs-orgmode@gnu.org; Mon, 26 Sep 2016 23:32:15 +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 Sebastian Christ writes: > 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 ... > 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). I was under the impression that #+CAPTION is deprecated and #+NAME is to be used in its place going forward. If that's the case, then the listings problem needs fixing. If not, can somebody summarize the actual situation? Thanks! -- Nick