From: "Eric Schulte" <schulte.eric@gmail.com>
To: Bryan Emrys <bryan.emrys@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Need help on org-exp-blocks and dot
Date: Thu, 20 Jan 2011 12:12:55 -0700 [thread overview]
Message-ID: <87sjwnwfrc.fsf@gmail.com> (raw)
In-Reply-To: <AANLkTikoH7s7=Xa4Ax-Z7ApDqm0-=vPxgYhnaMu4w8Jx@mail.gmail.com> (Bryan Emrys's message of "Thu, 20 Jan 2011 10:59:31 -0800")
Hi Bryan,
For generating dot graphics from Org-mode it is now suggested to use a
normal code block rather than org-exp-blocks, for example the following
should generate a graph when pressing C-c C-c on the block, and on
export should include the resulting graph rather than the code block.
from http://www.graphviz.org/Gallery/directed/fsm.gv.txt
#+begin_src dot :file fsa.png :exports results
digraph finite_state_machine {
rankdir=LR;
size="8,5"
node [shape = doublecircle]; LR_0 LR_3 LR_4 LR_8;
node [shape = circle];
LR_0 -> LR_2 [ label = "SS(B)" ];
LR_0 -> LR_1 [ label = "SS(S)" ];
LR_1 -> LR_3 [ label = "S($end)" ];
LR_2 -> LR_6 [ label = "SS(b)" ];
LR_2 -> LR_5 [ label = "SS(a)" ];
LR_2 -> LR_4 [ label = "S(A)" ];
LR_5 -> LR_7 [ label = "S(b)" ];
LR_5 -> LR_5 [ label = "S(a)" ];
LR_6 -> LR_6 [ label = "S(b)" ];
LR_6 -> LR_5 [ label = "S(a)" ];
LR_7 -> LR_8 [ label = "S(b)" ];
LR_7 -> LR_5 [ label = "S(a)" ];
LR_8 -> LR_6 [ label = "S(b)" ];
LR_8 -> LR_5 [ label = "S(a)" ];
}
#+end_src
Cheers -- Eric
Bryan Emrys <bryan.emrys@gmail.com> writes:
> Hello. Trying to use org-exp-blocks with dot to export a graphic in
> generated html file. Works on linux box.
>
> However, on a mac box everything except the graph is generated. Instead of
> pulling in the graphic, it just prints dot_somehashednumber.png. As far as I
> can tell, that png is not generated anywhere and left in a file system
> either.
>
> Dot works standalone from a terminal window. Paths seem to be right and
> emacs isn't complaining about loading org-exp-blocks.
>
> The emacs version on the mac is 23.1.1. I have (require 'org-exp-blocks) in
> the .emacs file.
>
> Any suggestions on what to look for next?
>
> Thanks,
>
> Bryan
> _______________________________________________
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
next prev parent reply other threads:[~2011-01-20 19:13 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-20 18:59 Need help on org-exp-blocks and dot Bryan Emrys
2011-01-20 19:12 ` Eric Schulte [this message]
2011-01-20 21:21 ` Bryan Emrys
2011-01-20 21:28 ` Erik Iverson
2011-01-20 21:33 ` Bryan Emrys
2011-01-20 21:38 ` Bryan Emrys
2011-01-20 21:41 ` Erik Iverson
2011-01-20 21:51 ` Eric Schulte
2011-01-20 21:57 ` Bryan Emrys
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=87sjwnwfrc.fsf@gmail.com \
--to=schulte.eric@gmail.com \
--cc=bryan.emrys@gmail.com \
--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).