It is #+label that is deprecated in favor of #+name.

On Monday, September 26, 2016, Nick Dokos <ndo...@gmail.com
<javascript:_e(%7B%7D,'cvml','ndo...@gmail.com');>> wrote:

> Sebastian Christ <rudolfo.chr...@gmail.com> writes:
>
> > On 2016-09-26 18:48, claude fuhrer <cla...@fuhrer.ch> 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

Reply via email to