[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Orgmode] Need help on org-exp-blocks and dot
From: |
Eric Schulte |
Subject: |
Re: [Orgmode] Need help on org-exp-blocks and dot |
Date: |
Thu, 20 Jan 2011 12:12:55 -0700 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) |
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 <address@hidden> 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.
> address@hidden
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
- [Orgmode] Need help on org-exp-blocks and dot, Bryan Emrys, 2011/01/20
- Re: [Orgmode] Need help on org-exp-blocks and dot,
Eric Schulte <=
- Re: [Orgmode] Need help on org-exp-blocks and dot, Bryan Emrys, 2011/01/20
- Re: [Orgmode] Need help on org-exp-blocks and dot, Erik Iverson, 2011/01/20
- Re: [Orgmode] Need help on org-exp-blocks and dot, Bryan Emrys, 2011/01/20
- Re: [Orgmode] Need help on org-exp-blocks and dot, Bryan Emrys, 2011/01/20
- Re: [Orgmode] Need help on org-exp-blocks and dot, Erik Iverson, 2011/01/20
- Re: [Orgmode] Need help on org-exp-blocks and dot, Eric Schulte, 2011/01/20
- Re: [Orgmode] Need help on org-exp-blocks and dot, Bryan Emrys, 2011/01/20