Re: [O] [new exporter] Captions for tables made by source blocks

2013-03-08 Thread Sebastien Vauban
Hello Achim, Achim Gratz wrote: Nicolas Goaziou writes: It's very easy to have a caption on the generated output: name the code. Hence, the following code block: #+NAME: calculation #+BEGIN_SRC emacs-lisp (+ 1 1) #+END_SRC will produce: #+RESULTS: calculation 2 If you

Re: [O] [new exporter] Captions for tables made by source blocks

2013-03-07 Thread Nicolas Goaziou
Hello, Mike McLean mike.mcl...@pobox.com writes: On Wed, Mar 6, 2013 at 7:28 AM, Nicolas Goaziou n.goaz...@gmail.com wrote: Vikas Rawal vikasli...@agrarianresearch.org writes: CAPTION keyword above a source block applies to the source block only. If the source block generates a table,

Re: [O] [new exporter] Captions for tables made by source blocks

2013-03-07 Thread Vikas Rawal
I wasn't clear. By naming the results, I mean that you must provide your source block a #+NAME: something attribute, so the generated table gets a #+RESULTS: something attribute. There is something strange happening. Cross-references to captions of tables that are produced thus get

Re: [O] [new exporter] Captions for tables made by source blocks

2013-03-07 Thread Nicolas Goaziou
Vikas Rawal vikasli...@agrarianresearch.org writes: I wasn't clear. By naming the results, I mean that you must provide your source block a #+NAME: something attribute, so the generated table gets a #+RESULTS: something attribute. There is something strange happening. Cross-references to

Re: [O] [new exporter] Captions for tables made by source blocks

2013-03-07 Thread Vikas Rawal
Could you provide an ECM? See the attached dummy file. Vikas #+STARTUP: hidestars #+TITLE: Title of the paper #+DATE: #+AUTHOR: name of author #+COLUMNS: %25ITEM %TAGS %PRIORITY %T #+property: exports results #+property: session fbi #+OPTIONS: H:2 toc:nil num:1 #+LaTeX_CLASS: article *

Re: [O] [new exporter] Captions for tables made by source blocks

2013-03-07 Thread Vikas Rawal
Could you provide an ECM? Please see the attached file. Vikas #+STARTUP: hidestars #+TITLE: Title of the paper #+DATE: #+AUTHOR: name of author #+COLUMNS: %25ITEM %TAGS %PRIORITY %T #+property: exports results #+property: session fbi #+OPTIONS: H:2 toc:nil num:1 #+LaTeX_CLASS: article *

Re: [O] [new exporter] Captions for tables made by source blocks

2013-03-07 Thread Eric S Fraga
Vikas Rawal vikasli...@agrarianresearch.org writes: Could you provide an ECM? I have always used something along these lines #+label: crop-median just before the table to define the target. This works for your ECM. -- : Eric S Fraga, GnuPG: 0xC89193D8FFFCF67D : in Emacs 24.3.50.1 and Org

Re: [O] [new exporter] Captions for tables made by source blocks

2013-03-07 Thread Achim Gratz
Nicolas Goaziou writes: For the same reason, caption here applies to the dynamic block, not to its contents. This seems to be a common enough mistake and it is currently impossible to put captions and other arguments on results blocks save with yet another source block that produces the correct

Re: [O] [new exporter] Captions for tables made by source blocks

2013-03-07 Thread Nicolas Goaziou
Vikas Rawal vikasli...@agrarianresearch.org writes: Could you provide an ECM? Please see the attached file. I cannot reproduce it, i.e. I get \ref{crop-median} in the output. Regards, -- Nicolas Goaziou

Re: [O] [new exporter] Captions for tables made by source blocks

2013-03-07 Thread Nicolas Goaziou
Hello, Achim Gratz strom...@nexgo.de writes: Nicolas Goaziou writes: For the same reason, caption here applies to the dynamic block, not to its contents. This seems to be a common enough mistake and it is currently impossible to put captions and other arguments on results blocks save with

Re: [O] [new exporter] Captions for tables made by source blocks

2013-03-07 Thread Achim Gratz
Nicolas Goaziou writes: It's very easy to have a caption on the generated output: name the code. Hence, the following code block: #+NAME: calculation #+BEGIN_SRC emacs-lisp (+ 1 1) #+END_SRC will produce: #+RESULTS: calculation 2 If you add a caption to the results, like:

Re: [O] [new exporter] Captions for tables made by source blocks

2013-03-07 Thread Vikas Rawal
Could you provide an ECM? Please see the attached file. I cannot reproduce it, i.e. I get \ref{crop-median} in the output. This is odd!! Please see the .tex file attached with this mail. This is what I get. Any idea, how do I debug this? Vikas

Re: [O] [new exporter] Captions for tables made by source blocks

2013-03-07 Thread Vikas Rawal
Could you provide an ECM? Please see the attached file. I cannot reproduce it, i.e. I get \ref{crop-median} in the output. Regards, For me, it works if I change the value of org-babel-results-keyword to NAME. Then the results block is produced with #+NAME: crop-median The

[O] [new exporter] Captions for tables made by source blocks

2013-03-06 Thread Vikas Rawal
There has been some change in the behaviour of #+CAPTION in case of tables made by source blocks. In the old exporter, #+CAPTION just before #+BEGIN_SRC was sufficient to place the caption before the table when the file was exported. The new exporter does not produce captions the same way. When

Re: [O] [new exporter] Captions for tables made by source blocks

2013-03-06 Thread Nicolas Goaziou
Hello, Vikas Rawal vikasli...@agrarianresearch.org writes: There has been some change in the behaviour of #+CAPTION in case of tables made by source blocks. In the old exporter, #+CAPTION just before #+BEGIN_SRC was sufficient to place the caption before the table when the file was exported.

Re: [O] [new exporter] Captions for tables made by source blocks

2013-03-06 Thread Vikas Rawal
CAPTION keyword above a source block applies to the source block only. If the source block generates a table, you have to put a CAPTION above it, as it will not inherit the caption of the source block. It also implies that you need to name the results. Otherwise, source block will not

Re: [O] [new exporter] Captions for tables made by source blocks

2013-03-06 Thread Nicolas Goaziou
Vikas Rawal vikasli...@agrarianresearch.org writes: CAPTION keyword above a source block applies to the source block only. If the source block generates a table, you have to put a CAPTION above it, as it will not inherit the caption of the source block. It also implies that you need to name

Re: [O] [new exporter] Captions for tables made by source blocks

2013-03-06 Thread Vikas Rawal
I wasn't clear. By naming the results, I mean that you must provide your source block a #+NAME: something attribute, so the generated table gets a #+RESULTS: something attribute. Got it. Thanks. BTW, you mustn't change `org-babel-results-keyword'. I don't even know why this is a

Re: [O] [new exporter] Captions for tables made by source blocks

2013-03-06 Thread Andreas Leha
Vikas Rawal vikasli...@agrarianresearch.org writes: I wasn't clear. By naming the results, I mean that you must provide your source block a #+NAME: something attribute, so the generated table gets a #+RESULTS: something attribute. Got it. Thanks. BTW, you mustn't change

Re: [O] [new exporter] Captions for tables made by source blocks

2013-03-06 Thread Mike McLean
On Wed, Mar 6, 2013 at 7:28 AM, Nicolas Goaziou n.goaz...@gmail.com wrote: Vikas Rawal vikasli...@agrarianresearch.org writes: CAPTION keyword above a source block applies to the source block only. If the source block generates a table, you have to put a CAPTION above it, as it will not