Re: [O] Name of code pieces when exported to PDF

2016-09-27 Thread Sebastian Christ
On 2016-09-26 17:32, Nick Dokos wrote: >> #+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). In this peculiar case, yes. But, at least fo

Re: [O] Name of code pieces when exported to PDF

2016-09-26 Thread Nick Dokos
John Kitchin writes: > It is #+label that is deprecated in favor of #+name.  > Ah, thanks! > On Monday, September 26, 2016, Nick Dokos wrote: > > ... > I was under the impression that #+CAPTION is deprecated and #+NAME is > to be used in its place going forward. If that's the ca

[O] Name of code pieces when exported to PDF

2016-09-26 Thread John Kitchin
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} > >

Re: [O] Name of code pieces when exported to PDF

2016-09-26 Thread Nick Dokos
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 > >

Re: [O] Name of code pieces when exported to PDF

2016-09-26 Thread Sebastian Christ
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!

Re: [O] Name of code pieces when exported to PDF

2016-09-26 Thread claude fuhrer
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 s

Re: [O] Name of code pieces when exported to PDF

2016-09-26 Thread Nicolas Goaziou
Hello, claude fuhrer writes: > To explain a small program, I've broken it down into small pieces. My > org file looks something like > > # = > #+NAME MainClass > > #+BEGIN_SRC java :noweb tangle :tangle Test.java > public cl

[O] Name of code pieces when exported to PDF

2016-09-26 Thread claude fuhrer
Hello To explain a small program, I've broken it down into small pieces. My org file looks something like # = #+NAME MainClass #+BEGIN_SRC java :noweb tangle :tangle Test.java public class Test { <> <> } #+END_SRC som