emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [Orgmode] Re: [BUG] org-babel-tangle causes


From: Eric Schulte
Subject: Re: [Orgmode] Re: [BUG] org-babel-tangle causes
Date: Sun, 27 Feb 2011 21:03:11 -0700
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

Vladimir Alexiev <address@hidden> writes:

> I found a simple WORKAROUND. 
> Kindly put this in the documentation of :colnames,
> at the end of the nil value:
>
> Please note that such "table disassembly" does not work with var
> indexing.  As a simple workaround, put the #+tblname AFTER the hline
> (not before the table).

Done, thanks for the suggestion

> 
> For example:
>
>   #+STARTUP:  showeverything
>   #+BABEL:    :tangle yes
>
>   | colA | colB |
>   |------+------|
>   #+tblname: table
>   | a1   | b1   |
>   | a2   | b2   |
>
>   #+begin_src perl :var a=table[*,0] :var b=table[*,1]
>   $a; $b;
>   #+end_src 
>
> If you tangle this source with C-c C-x t, you can see 
> that the assignments are correct.
>

I think that the following would be cleaner.  This is the workaround I
had in mind in my previous email, sorry I should have explicitly
mentioned this option.

#+tblname: perl-table-w-hline
| colA | colB |
|------+------|
| a1   | b1   |
| a2   | b2   |

#+headers: :var b=perl-table-w-hline[2..,1]
#+headers: :var a=perl-table-w-hline[2..,0]
#+begin_src perl :tangle yes
  $a; $b;
#+end_src 

Best -- Eric



reply via email to

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