Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
Join us in building a kind, collaborative learning community via our updated Code of Conduct.

The tag has no usage guidance.

1
vote
1answer
88 views

noweb function call with variable arguments

I get error "reference y not found in this buffer" when trying to evaluate cubed-plus-cubed: #+NAME: cubed #+BEGIN_SRC python :var x=3 return x * x * x #+END_SRC #+RESULTS: cubed : 27 #+NAME: cubed-...
1
vote
1answer
44 views

How to pass newline (“\n”) string to noweb <<call>>

Trying to pass multiline argument to Org code block. If make direct call of block then it's Ok. But when call it through noweb ref then Error raised #+NAME: pr #+BEGIN_SRC elisp :results value :var n=...
0
votes
1answer
31 views

How to avoid multiplying of a string which precedes <<noweb reference>> in code block?

When <> expands to multiple line and I wrote like this some-string <<noweb ref>> then it expands like some-string line1-from-noweb-ref some-string line2-from-noweb-ref some-string ...
0
votes
0answers
84 views

How to generate a dynamic file link in an Org mode Babel buffer?

I do have a skeleton, which I can call for making a graphics out of 1 column from a R data frame: #+name: template #+begin_src org png(filename="$str.png") library(orgutils) df <- readOrg("52-Lab-...
1
vote
0answers
106 views

How can I use #+CALL with multiple arguments?

I'm trying to learn how to use the noweb syntax and advance my knowledge on the possibilities of org babel. For that, I'm trying to get the following an example to work that 1. uses noweb syntax and 2....
1
vote
0answers
70 views

noweb reference aware org-edit-special

Is there a way of splitting a src block into several blocks while keeping them together with noweb reference syntax and editing them using org-edit-special in such a way that would take into account ...
3
votes
1answer
86 views

How to disable noweb prefix lines?

This says that Noweb insertions now honor prefix characters that appear before <<reference>>. And because of that trying to use #+BEGIN_SRC clojure :noweb-ref dep-cljsbuild [lein-...
0
votes
1answer
212 views

Exporting a figure generated with org-babel and noweb reference syntax

Wanting to export a figure generated by matplotlib to LaTeX (as described here) I've encountered the following issue (which ultimately I was able to solve as described here). My source block has two ...
7
votes
2answers
146 views

Insert noweb references with completion

I have discovered the noweb syntax, and in particular how it can be used in org source blocks, very recently, and I have grown quite fond of it. But inserting the references (is there a better term?) ...
2
votes
1answer
222 views

How to get babel code blocks to evaluate parameters when called from a noweb ref?

I have an interesting problem that I am sure there must be a simple answer to if I can find the right syntax. Essentially, as outlined below, I have a simple sh code block that prints a variable that ...
3
votes
1answer
75 views

Report missing noweb references in org-babel

In org-babel, is there a way for checking for missing noweb references <<...>> or for throwing an error if a reference is missing? For example in the following I have mistyped the name of ...