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: calcu
> >>
> >> 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:
> >> 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
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 r
Hello,
Achim Gratz 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 yet
> anot
Vikas Rawal 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
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 correc
Vikas Rawal 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 release_7.9.3f-1199-g3a0e55
>
> 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
*
>
> 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
*
Vikas Rawal 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 captions of
> >> 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 th
Hello,
Mike McLean writes:
> On Wed, Mar 6, 2013 at 7:28 AM, Nicolas Goaziou wrote:
>
>> Vikas Rawal 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 inh
On Wed, Mar 6, 2013 at 7:28 AM, Nicolas Goaziou wrote:
> Vikas Rawal 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.
Vikas Rawal 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 `org-babel-results-keyword'.
>
> 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
Vikas Rawal 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 the results. Otherwis
> 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
Hello,
Vikas Rawal 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.
>
> The new exporter does n
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 I
20 matches
Mail list logo