From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bryan Emrys Subject: Re: Need help on org-exp-blocks and dot Date: Thu, 20 Jan 2011 13:21:49 -0800 Message-ID: References: <87sjwnwfrc.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1989842303==" Return-path: Received: from [140.186.70.92] (port=45696 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pg1xx-0005sx-Uq for emacs-orgmode@gnu.org; Thu, 20 Jan 2011 16:22:51 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pg1xw-0008Is-J5 for emacs-orgmode@gnu.org; Thu, 20 Jan 2011 16:22:49 -0500 Received: from mail-iy0-f169.google.com ([209.85.210.169]:43473) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pg1xw-0008In-A4 for emacs-orgmode@gnu.org; Thu, 20 Jan 2011 16:22:48 -0500 Received: by iyj17 with SMTP id 17so1153156iyj.0 for ; Thu, 20 Jan 2011 13:22:47 -0800 (PST) In-Reply-To: <87sjwnwfrc.fsf@gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Eric Schulte Cc: emacs-orgmode@gnu.org --===============1989842303== Content-Type: multipart/alternative; boundary=0022152d5fcdc0a778049a4db85a --0022152d5fcdc0a778049a4db85a Content-Type: text/plain; charset=ISO-8859-1 Hi, Now getting an error message: /bin/bash: dot: command not found Hmm. Pathname issue? On the mac, dot is in /opt/local/bin/dot My .emacs file has: (setq load-path (cons "/opt/local/bin" load-path)) I can certainly just open a terminal window and run dot from the command line. Thanks for any further suggestions. Bryan, On Thu, Jan 20, 2011 at 11:12 AM, Eric Schulte wrote: > 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 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 > --0022152d5fcdc0a778049a4db85a Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi,

Now getting an error message: /bin/bash: dot: command not found<= br>
Hmm. Pathname issue?

On the mac, dot is in /opt/local/bin/dot=
My .emacs file has: (setq load-path (cons "/opt/local/bin" lo= ad-path))

I can certainly just open a terminal window and run dot from the comman= d line.

Thanks for any further suggestions.

Bryan,

On Thu, Jan 20, 2011 at 11:12 AM, Eric Schulte <schulte.eric@gm= ail.com> wrote:
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
=A0digraph finite_state_machine {
=A0 =A0 =A0 =A0 =A0rankdir=3DLR;
=A0 =A0 =A0 =A0 =A0size=3D"8,5"
=A0 =A0 =A0 =A0 =A0node [shape =3D doublecircle]; LR_0 LR_3 LR_4 LR_8;
=A0 =A0 =A0 =A0 =A0node [shape =3D circle];
=A0 =A0 =A0 =A0 =A0LR_0 -> LR_2 [ label =3D "SS(B)" ];
=A0 =A0 =A0 =A0 =A0LR_0 -> LR_1 [ label =3D "SS(S)" ];
=A0 =A0 =A0 =A0 =A0LR_1 -> LR_3 [ label =3D "S($end)" ];
=A0 =A0 =A0 =A0 =A0LR_2 -> LR_6 [ label =3D "SS(b)" ];
=A0 =A0 =A0 =A0 =A0LR_2 -> LR_5 [ label =3D "SS(a)" ];
=A0 =A0 =A0 =A0 =A0LR_2 -> LR_4 [ label =3D "S(A)" ];
=A0 =A0 =A0 =A0 =A0LR_5 -> LR_7 [ label =3D "S(b)" ];
=A0 =A0 =A0 =A0 =A0LR_5 -> LR_5 [ label =3D "S(a)" ];
=A0 =A0 =A0 =A0 =A0LR_6 -> LR_6 [ label =3D "S(b)" ];
=A0 =A0 =A0 =A0 =A0LR_6 -> LR_5 [ label =3D "S(a)" ];
=A0 =A0 =A0 =A0 =A0LR_7 -> LR_8 [ label =3D "S(b)" ];
=A0 =A0 =A0 =A0 =A0LR_7 -> LR_5 [ label =3D "S(a)" ];
=A0 =A0 =A0 =A0 =A0LR_8 -> LR_6 [ label =3D "S(b)" ];
=A0 =A0 =A0 =A0 =A0LR_8 -> LR_5 [ label =3D "S(a)" ];
=A0}
#+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. Instea= d of
> pulling in the graphic, it just prints dot_somehashednumber.png. As fa= r 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 an= d
> emacs isn't complaining about loading org-exp-blocks.
>
> The emacs version on the mac is 23.1.1. I have (require 'org-exp-b= locks) 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

--0022152d5fcdc0a778049a4db85a-- --===============1989842303== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ 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 --===============1989842303==--