emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] Table formula reference and macro replacement


From: Nicolas Goaziou
Subject: Re: [O] Table formula reference and macro replacement
Date: Thu, 17 Aug 2017 16:23:30 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux)

Hello,

Vikas Rawal <address@hidden> writes:

> The idea is to pick contents of a table cell and use it in a paragraph.
>
> Is it possible to have a macro like {{{remote(NAME-OR-ID,REF)}}} ?
>
> The above does not work, but am I missing something?

You could try:

--8<---------------cut here---------------start------------->8---
#+macro: remote src_emacs-lisp{(org-table-get-remote-range "$1" "$2")}

Example:

#+name: foo
| 1 | 2 |
| 3 | 4 |

The macro call: {{{remote(foo, @1$2)}}}
--8<---------------cut here---------------end--------------->8---

Regards,

-- 
Nicolas Goaziou



reply via email to

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