[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[O] bug#26467: 25.2; [Org mode] Call dot babel from elisp generate inval
From: |
Nicolas Goaziou |
Subject: |
[O] bug#26467: 25.2; [Org mode] Call dot babel from elisp generate invalid image |
Date: |
Sat, 07 Jul 2018 13:20:43 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) |
Nicolas Goaziou <address@hidden> writes:
> I can achieve the desired effect with:
>
> #+name: nodes
> | From | To | Weight |
> |------+----+--------|
> | A | B | 3 |
> | A | C | 2 |
> | B | D | 4 |
> | B | E | 5 |
> | C | F | 10 |
>
> #+begin_src elisp :file /tmp/a.png :var nodes=nodes :results file
> (defun rowfun (x)
> (format "%s -> %s [label=%s];" (nth 0 x) (nth 1 x) (nth 2 x)))
> (defun dotgen (nodes)
> (format "digraph {\nnode [shape=circle]\n%s\n}"
> (mapconcat #'rowfun nodes "\n")))
> (dotgen nodes)
> #+end_src
>
> I don't see why you would need to call `org-babel-execute:dot'.
>
> Does it fix your issue?
Since the OP didn't answer, I assume this is now fixed.
I'm closing this report.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [O] bug#26467: 25.2; [Org mode] Call dot babel from elisp generate invalid image,
Nicolas Goaziou <=