From mboxrd@z Thu Jan 1 00:00:00 1970 From: William Kunkel Subject: Org-Babel concise named scalar variables Date: Wed, 16 Apr 2014 00:23:12 -0400 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=089e0158ab3a51e3b204f721469e Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51757) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WaHNT-0007mB-1G for emacs-orgmode@gnu.org; Wed, 16 Apr 2014 00:23:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WaHNR-0007pv-GN for emacs-orgmode@gnu.org; Wed, 16 Apr 2014 00:23:14 -0400 Received: from mail-oa0-x229.google.com ([2607:f8b0:4003:c02::229]:41020) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WaHNR-0007pp-BH for emacs-orgmode@gnu.org; Wed, 16 Apr 2014 00:23:13 -0400 Received: by mail-oa0-f41.google.com with SMTP id j17so11886797oag.14 for ; Tue, 15 Apr 2014 21:23:12 -0700 (PDT) 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 --089e0158ab3a51e3b204f721469e Content-Type: text/plain; charset=UTF-8 I'm just getting started using Org Babel and I've run into a bit of an annoyance that I can't seem to find an answer to in the Org Babel docs. I find myself wanting to use one variable in multiple code blocks, for example, the path to a file. Org Babel provides several mechanisms for including array/list types, via tables and lists with a #+NAME line before them. However the only mechanism it provides for single variables is #+NAME before example blocks, which just seem clunky for something as trivial as a file path or numeric variable. Is there a more concise way to do simple variables, or am I stuck with the named example blocks? Thanks, Will --089e0158ab3a51e3b204f721469e Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
I'm just getting started using Org Babel and= I've run into a bit of an annoyance that I can't seem to find an a= nswer to in the Org Babel docs. I find myself wanting to use one variable i= n multiple code blocks, for example, the path to a file. Org Babel provides= several mechanisms for including array/list types, via tables and lists wi= th a #+NAME line before them. However the only mechanism it provides for si= ngle variables is #+NAME before example blocks, which just seem clunky for = something as trivial as a file path or numeric variable. Is there a more co= ncise way to do simple variables, or am I stuck with the named example bloc= ks?

Thanks,
Will
--089e0158ab3a51e3b204f721469e--