[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Colon in block name?
From: |
Eric S Fraga |
Subject: |
Re: [O] Colon in block name? |
Date: |
Thu, 12 Feb 2015 16:03:16 +0000 |
User-agent: |
Gnus/5.130012 (Ma Gnus v0.12) Emacs/25.0.50 (gnu/linux) |
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
--
: Eric S Fraga (0xFFFCF67D), Emacs 25.0.50.1, Org release_8.3beta-816-gae83b3
- [O] Colon in block name?, Loris Bennett, 2015/02/12
- Re: [O] Colon in block name?,
Eric S Fraga <=
- Re: [O] Colon in block name?, Loris Bennett, 2015/02/13
- Re: [O] Colon in block name?, Eric S Fraga, 2015/02/13
- Re: [O] Colon in block name?, Loris Bennett, 2015/02/13
- Re: [O] Colon in block name?, Loris Bennett, 2015/02/13
- Re: [O] Colon in block name?, Stefan Nobis, 2015/02/13
- Re: [O] Colon in block name?, Loris Bennett, 2015/02/13
- Re: [O] Colon in block name?, Eric S Fraga, 2015/02/13
Re: [O] Colon in block name?, Nick Dokos, 2015/02/13