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

2014-04-16 Thread Achim Gratz
William Kunkel writes:
 Is there a more concise way to do simple variables, or am I stuck with
 the named example blocks?

It seems you'll want to define those through var properties.


Regards,
Achim.
-- 
+[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]+

DIY Stuff:
http://Synth.Stromeko.net/DIY.html




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

2014-04-16 Thread Thomas S. Dye
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 w...@wkunkel.com 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



[O] Org-Babel concise named scalar variables

2014-04-15 Thread William Kunkel
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