Re: [O] problem with babel and dot

2016-02-13 Thread Eric S Fraga
Okay, I have figured this out and here is the solution in case anybody else wants to do something like this: 1. create a very simple dot src block: #+begin_src org ,#+name: generate-graph ,#+begin_src dot :var graph="digraph {}" :file graph.pdf $graph ,#+end_src

[O] problem with babel and dot

2016-02-12 Thread Eric S Fraga
Hello, I have the following emacs lisp code to build up a dot input for a dependency graph: #+begin_src org ,#+name: graph-from-tables ,#+header: :var options="" :var nodes='() graph='() ,#+BEGIN_SRC emacs-lisp (org-babel-execute:dot (concat "digraph {\n"

Re: [O] problem with babel and dot

2016-02-12 Thread Eric S Fraga
I've had a suggestion to use ":wrap src dot" for my elisp code, to avoid using internal API calls. This is a good suggestion but I cannot figure out how to actually accomplish what I want. Basically, I want to #+call: a src block which takes my tables as arguments, uses my elisp code to generate