From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
To: wang jinjian <wjj1928@gmail.com>
Cc: 26467-done@debbugs.gnu.org
Subject: bug#26467: 25.2; [Org mode] Call dot babel from elisp generate invalid image
Date: Sat, 07 Jul 2018 13:20:43 +0200 [thread overview]
Message-ID: <87wou7i96c.fsf@nicolasgoaziou.fr> (raw)
In-Reply-To: <87fu3wlx1m.fsf@nicolasgoaziou.fr> (Nicolas Goaziou's message of "Sun, 15 Apr 2018 09:59:49 +0200")
Nicolas Goaziou <mail@nicolasgoaziou.fr> 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 parent reply other threads:[~2018-07-07 11:21 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-04-12 17:22 bug#26467: 25.2; [Org mode] Call dot babel from elisp generate invalid image wang jinjian
2017-04-12 19:14 ` Glenn Morris
2018-04-15 7:59 ` Nicolas Goaziou
2018-07-07 11:20 ` Nicolas Goaziou [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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87wou7i96c.fsf@nicolasgoaziou.fr \
--to=mail@nicolasgoaziou.fr \
--cc=26467-done@debbugs.gnu.org \
--cc=wjj1928@gmail.com \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.