From: Eric S Fraga <e.fraga@ucl.ac.uk>
To: emacs-orgmode@gnu.org
Subject: Re: problem with babel and dot
Date: Sat, 13 Feb 2016 11:00:25 +0000 [thread overview]
Message-ID: <87vb5sswmu.fsf@ucl.ac.uk> (raw)
In-Reply-To: 87io1tu6kd.fsf@ucl.ac.uk
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
#+end_src
2. call the original tables -> graph block with a :post command to
invoke this new block:
#+begin_src org
,#+call: graph-from-tables(options="rankdir=LR;",nodes=subtasks-table[2:-1],graph=dependency-table[2:-1]) :exports results :results file :post generate-graph[:results file :exports results :file dependency-graph.pdf](graph=*this*)
#+end_src
This works like a charm. There are probably superfluous settings but
this over-specified combination does what I want!
Sorry for all the noise. As always, power comes with complexity and
babel is definitely powerful. If org is the killer app for emacs, then
babel is the killer app for org!
thanks,
eric
--
: Eric S Fraga (0xFFFCF67D), Emacs 25.0.90.1, Org release_8.3.3-565-g4f499f
prev parent reply other threads:[~2016-02-13 11:00 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-12 16:15 problem with babel and dot Eric S Fraga
2016-02-12 18:28 ` Eric S Fraga
2016-02-13 11:00 ` Eric S Fraga [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87vb5sswmu.fsf@ucl.ac.uk \
--to=e.fraga@ucl.ac.uk \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).