emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Colon in block name?


From: Loris Bennett
Subject: Re: [O] Colon in block name?
Date: Fri, 13 Feb 2015 08:49:33 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux)

Hi Eric,

Eric S Fraga <address@hidden> writes:

> On Thursday, 12 Feb 2015 at 16:19, Loris Bennett wrote:
>> Hi,
>>
>> I want to export to LaTeX and refer to tables and code blocks as in the
>> example below.  However a name with a colon, such as 'tab:my_data' used
>> as a variable for a source block fails:
>>
>> org-babel-ref-resolve: Reference 'my_data' not found in this buffer
>
> The problem is that you need to get rid of the empty lines between the
> table information (name, caption) and the actual table:
>
>> My data can be found in Table [[tab:my_data]].
>>
>> #+CAPTION: My data
>> #+NAME: tab:my_data
>>
>> | a | b |
>> |---+---|
>> | 2 | 4 |
>> | 3 | 9 |
>
> Delete the line after the #+name and it will work: if you look at the
> LaTeX, you'll see a table environment around the tabular structure and
> that's needed to get labels that you can referece.
>
> Not sure why the empty line matters, mind you...
>
> HTH,
> eric

In my ECM and in my original posting there are no empty lines between
the table information and the actual table (see attached screenshot of
my original ECM).  However, I can see that in your quoted version above
there is one.

Attachment: ecm_without_extraneous_newlines.png
Description: ecm.org

It seems as if at some point extraneous lines are being inserted into my
original posting, although it looks all right to me.  Or it's a case of
the Inverse Emperor's New Newlines and I am too foolish to see them ...

Cheers,

Loris

-- 
This signature is currently under construction.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]