From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Loris Bennett" Subject: Re: Colon in block name? Date: Fri, 13 Feb 2015 11:34:14 +0100 Message-ID: <87oaoyyuah.fsf@hornfels.zedat.fu-berlin.de> References: <877fvnxime.fsf@hornfels.zedat.fu-berlin.de> <87wq3njewr.fsf@ucl.ac.uk> <87a90i1caa.fsf@hornfels.zedat.fu-berlin.de> <877fvmm89w.fsf@pinto.chemeng.ucl.ac.uk> <87sieayv3l.fsf@hornfels.zedat.fu-berlin.de> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34856) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YMDa4-0003ki-Pn for emacs-orgmode@gnu.org; Fri, 13 Feb 2015 05:34:41 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YMDa0-0001pm-M0 for emacs-orgmode@gnu.org; Fri, 13 Feb 2015 05:34:40 -0500 Received: from plane.gmane.org ([80.91.229.3]:43896) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YMDa0-0001pe-Fb for emacs-orgmode@gnu.org; Fri, 13 Feb 2015 05:34:36 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1YMDZz-0006oD-CM for emacs-orgmode@gnu.org; Fri, 13 Feb 2015 11:34:35 +0100 Received: from hornfels.zedat.fu-berlin.de ([160.45.11.110]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 13 Feb 2015 11:34:35 +0100 Received: from loris.bennett by hornfels.zedat.fu-berlin.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 13 Feb 2015 11:34:35 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org "Loris Bennett" writes: > Eric S Fraga writes: > >> On Friday, 13 Feb 2015 at 08:49, Loris Bennett wrote: >> >> [...] >> >>> 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. >> >> Ummm, interesting. The way to avoid this issue may be to actually >> attach a file instead of pasting the contents into the email. Can you >> attach your ECM so that we can see what happens with it? > > * Test with block names containing a colon > ** Data > My data can be found in Table [[tab:my_data]]. > #+CAPTION: My data > #+NAME: tab:my_data > | a | b | > |---+---| > | 2 | 4 | > | 3 | 9 | > > ** Code > > My code can be found in Listing [[code:my_code]]. > > #+CAPTION: My code > #+NAME: code:my_code > #+HEADER: :var data=tab:my_data :colnames yes > #+BEGIN_SRC R > d <- data > #+END_SRC > > ** Results > > My results can be found in Table [[tab:my_results]]. > > #+CAPTION: My results > #+NAME: tab:my_results > #+RESULTS: code:my_code > | a | b | > |---+---| > | 2 | 4 | > | 3 | 9 | > > ** Conclusions > > Names with colons don't work. The above was attached with Gnus 'C-c RET f', MIME type 'text/x-org'. Reading with Gnus, I don't see any blank lines between the table info and the table itself. Just to get back to the original question: Should and does 'tab:my_data' work as a value for a variable in a source block header? I get Reference 'my_data' not found in this buffer If I replace the colon with '_', ';', or even '=', everything works as expected. Cheers, Loris -- This signature is currently under construction.