emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] Org-Babel concise named scalar variables


From: Thomas S. Dye
Subject: Re: [O] Org-Babel concise named scalar variables
Date: Wed, 16 Apr 2014 06:55:59 -1000

Aloha Will,

You can set system-wide header arguments or set default values for a
buffer or heading.  See the Org mode manual, Section 14.8.1, Using
header arguments.

hth,
Tom

William Kunkel <address@hidden> writes:

> 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
> 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
>

-- 
Thomas S. Dye
http://www.tsdye.com



reply via email to

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