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: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CAG8dOtnen=BG8c3u8ouQTXcEy=oqFUHyHRNtA81rCFxun6vfaQ@mail.gmail.com>
2017-04-12 19:14 ` bug#26467: 25.2; [Org mode] Call dot babel from elisp generate invalid image 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
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=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 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).