emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] Request for worg page -- escaping questions


From: Alan Schmitt
Subject: Re: [O] Request for worg page -- escaping questions
Date: Fri, 18 Apr 2014 09:08:15 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (darwin)

Hi Rustom,

On 2014-04-18 05:21, Rustom Mody <address@hidden> writes:

> What I would like is a graphic -- an automata-diagram made perhaps by
> dot. Can that easily/conveniently go up onto worg?

I don't know how worg's export is configured, but something like this
may work ...

--8<---------------cut here---------------start------------->8---
# -*- org-confirm-babel-evaluate: nil -*-

#+name: mygraph
#+begin_src dot :file mygraph.png :exports results
digraph {
  9 -> 4 [label=c];
  9 -> 2 [label=" n"];
  9 -> 9 [label=" e"];
  5 -> 3 [label=" e"];
  2 -> 4 [label=" k"];
  4 -> 9 [label=" j"];
}
#+end_src

#+results: mygraph
--8<---------------cut here---------------end--------------->8---

You can, if you need, build the contents of the dot block from another
babel block.

Alan



reply via email to

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