[Top][All Lists]
[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
- [Orgmode] [BUG] org-babel-tangle causes "Wrong type argument: sequencep, hline", Vladimir Alexiev, 2011/02/27
- Re: [Orgmode] [BUG] org-babel-tangle causes "Wrong type argument: sequencep, hline", Eric Schulte, 2011/02/27
- [Orgmode] Re: [BUG] org-babel-tangle causes "Wrong type argument: sequencep, hline", Sébastien Vauban, 2011/02/27
- Re: [Orgmode] Re: [BUG] org-babel-tangle causes "Wrong type argument: sequencep, hline", Eric Schulte, 2011/02/27
- [Orgmode] Re: [BUG] org-babel-tangle causes "Wrong type argument: sequencep, hline", Sébastien Vauban, 2011/02/27
- [Orgmode] Re: [BUG] org-babel-tangle causes "Wrong type argument: sequencep, hline", Vladimir Alexiev, 2011/02/27
- Re: [Orgmode] Re: [BUG] org-babel-tangle causes "Wrong type argument: sequencep, hline", Eric Schulte, 2011/02/27
- [Orgmode] Re: [BUG] org-babel-tangle causes, Vladimir Alexiev, 2011/02/27
- Re: [Orgmode] Re: [BUG] org-babel-tangle causes,
Eric Schulte <=