From mboxrd@z Thu Jan 1 00:00:00 1970 From: Florian Adamsky Subject: Include single values from a org-table into a code-block Date: Fri, 14 Dec 2012 20:08:42 +0100 Message-ID: <20121214200842.47bb9a40@asmara> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([208.118.235.92]:32814) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tjaco-0002zo-MY for emacs-orgmode@gnu.org; Fri, 14 Dec 2012 14:08:48 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Tjacn-0006MO-FO for emacs-orgmode@gnu.org; Fri, 14 Dec 2012 14:08:46 -0500 Received: from static.109.81.47.78.clients.your-server.de ([78.47.81.109]:50605 helo=haktar.org) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tjacn-0006Ln-8b for emacs-orgmode@gnu.org; Fri, 14 Dec 2012 14:08:45 -0500 Received: from asmara (p57926F71.dip.t-dialin.net [87.146.111.113]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: cit) by haktar.org (Postfix) with ESMTPSA id A965B3DE0F2E for ; Fri, 14 Dec 2012 20:08:43 +0100 (CET) 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 Hello, at the moment I'm drafting a paper and I would like to insert values from a org-table into a code-block. After searching a bit a found a mail thread from 2010 [1] which says I have to do the following: src_emacs-lisp[:var d=test-table[3,1]]{d} This works fine but only in non code-blocks. But I want to insert these values in a LaTeX block, since I want to generate a pgfplot. Is there another way to get values from a org-table? Or is it possible to combine the above code with a Macro? In the following you'll find an example: #+Begin_LaTeX \begin{tikzpicture} %% pgfplot code \addplot coordinates {(0, src_emacs-lisp[:var d=test-table[3,1]]{d})}; \end{tikzpicture} #+End_LaTeX Thanks in advance. Best, Florian [1] http://lists.gnu.org/archive/html/emacs-orgmode/2010-07/msg01104.html