From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Table formula reference and macro replacement Date: Thu, 17 Aug 2017 16:23:30 +0200 Message-ID: <87fucqp925.fsf@nicolasgoaziou.fr> References: <639FAF5A-D151-409F-867A-922029806BC0@agrarianresearch.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34299) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1diLht-0001k7-R1 for emacs-orgmode@gnu.org; Thu, 17 Aug 2017 10:23:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1diLht-0003NR-1w for emacs-orgmode@gnu.org; Thu, 17 Aug 2017 10:23:33 -0400 Received: from relay4-d.mail.gandi.net ([2001:4b98:c:538::196]:54190) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1diLhs-0003Me-R4 for emacs-orgmode@gnu.org; Thu, 17 Aug 2017 10:23:32 -0400 In-Reply-To: <639FAF5A-D151-409F-867A-922029806BC0@agrarianresearch.org> (Vikas Rawal's message of "Thu, 17 Aug 2017 09:47:15 +0530") 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" To: Vikas Rawal Cc: org-mode mailing list Hello, Vikas Rawal 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