emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Bryan Emrys <bryan.emrys@gmail.com>
To: Eric Schulte <schulte.eric@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Need help on org-exp-blocks and dot
Date: Thu, 20 Jan 2011 13:21:49 -0800	[thread overview]
Message-ID: <AANLkTik9JWEMn0reDKXtF_Oep+3TFOHpF0AfihcR8Jdu@mail.gmail.com> (raw)
In-Reply-To: <87sjwnwfrc.fsf@gmail.com>


[-- Attachment #1.1: Type: text/plain, Size: 2624 bytes --]

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 <schulte.eric@gmail.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
>  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
>

[-- Attachment #1.2: Type: text/html, Size: 3708 bytes --]

[-- Attachment #2: Type: text/plain, Size: 201 bytes --]

_______________________________________________
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

  reply	other threads:[~2011-01-20 21:22 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
2011-01-20 21:21   ` Bryan Emrys [this message]
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=AANLkTik9JWEMn0reDKXtF_Oep+3TFOHpF0AfihcR8Jdu@mail.gmail.com \
    --to=bryan.emrys@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=schulte.eric@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).