From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Kitchin Subject: Name of code pieces when exported to PDF Date: Mon, 26 Sep 2016 17:43:13 -0400 Message-ID: References: <8737km3c9u.fsf@nicolasgoaziou.fr> <0f3e4791-c495-b386-3262-56576000a9b9@fuhrer.ch> <87mviuwdnr.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7bfcf36eea289f053d70032e Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48405) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bodgY-0000J8-6D for emacs-orgmode@gnu.org; Mon, 26 Sep 2016 17:43:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bodgX-0004hE-32 for emacs-orgmode@gnu.org; Mon, 26 Sep 2016 17:43:38 -0400 Received: from mail-qk0-x22d.google.com ([2607:f8b0:400d:c09::22d]:35414) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bodgW-0004Zz-Pd for emacs-orgmode@gnu.org; Mon, 26 Sep 2016 17:43:37 -0400 Received: by mail-qk0-x22d.google.com with SMTP id t7so184174169qkh.2 for ; Mon, 26 Sep 2016 14:43:15 -0700 (PDT) In-Reply-To: <87mviuwdnr.fsf@gmail.com> 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: Nick Dokos Cc: "emacs-orgmode@gnu.org" --047d7bfcf36eea289f053d70032e Content-Type: text/plain; charset=UTF-8 It is #+label that is deprecated in favor of #+name. On Monday, September 26, 2016, Nick Dokos > wrote: > 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 > > > -- John ----------------------------------- Professor John Kitchin Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 @johnkitchin http://kitchingroup.cheme.cmu.edu --047d7bfcf36eea289f053d70032e Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable It is #+label that is deprecated in favor of #+name.=C2=A0

On Monday= , September 26, 2016, Nick Dokos <ndokos@gmail.com> wrote:
Sebastian Christ <rud= olfo.christ@gmail.com> writes:

> On 2016-09-26 18:48, claude fuhrer <claude@fuhrer.ch> wro= te:
>=C2=A0 > \lstset{language=3Djava,label=3DsecondBlock,caption=3D= ,captionpos=3Db,numbers=3Dnone}
>=C2=A0 > \begin{lstlisting}
>=C2=A0 > .....
>=C2=A0 > \end{lstlisting}
>=C2=A0 >
>=C2=A0 > But I wanted to have the "caption" filled with th= e same value as the
>=C2=A0 > label. Is it possible ?
>=C2=A0 >
> 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.=C2=A0 If not, can somebody summarize the
actual situation?

Thanks!
--
Nick




--
John

---------= --------------------------
Professor John Kitchin=C2=A0
Doherty Hall = A207F
Department of Chemical Engineering
Carnegie Mellon UniversityPittsburgh, PA 15213
412-268-7803

--047d7bfcf36eea289f053d70032e--