* Exporting Graphviz to PDF
@ 2013-02-08 20:12 Marko Dimjašević
2013-02-08 20:34 ` Russell Adams
2013-02-08 20:42 ` Thomas S. Dye
0 siblings, 2 replies; 3+ messages in thread
From: Marko Dimjašević @ 2013-02-08 20:12 UTC (permalink / raw)
To: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 881 bytes --]
Hi folks,
I'm trying to export a Graphviz dot graph to PDF. I have Graphviz
installed on my system.
Should I use:
#+begin_src dot
...
#+end_src
or
#+begin_dot
...
#+end_dot
?
For example, I'd like to use the following graph:
#+begin_dot pg.svg -Tsvg :exports results
digraph ProgramGraph {
"l0" [label="l0"]
"l1" [label="l1"]
"l0" -> "l1" [label=" true : int n := 0"]
}
#+end_dot
When I export it to PDF, instead of graph image I get a link with the
text:
file:pg_fcf0df40c0995897a72f6bb3a1b738b16b305752.svg
pointing to the file.
How to get the image embedded into PDF instead? I have Org-mode 7.6 and
please say that there's a way to do it in 7.6 (because I won't be able
to upgrade to anything newer until Trisquel 6.0 is released).
Cheers,
Marko
--
http://dimjasevic.net/marko
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 835 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Exporting Graphviz to PDF
2013-02-08 20:12 Exporting Graphviz to PDF Marko Dimjašević
@ 2013-02-08 20:34 ` Russell Adams
2013-02-08 20:42 ` Thomas S. Dye
1 sibling, 0 replies; 3+ messages in thread
From: Russell Adams @ 2013-02-08 20:34 UTC (permalink / raw)
To: emacs-orgmode
> #+begin_dot pg.svg -Tsvg :exports results
> digraph ProgramGraph {
> "l0" [label="l0"]
> "l1" [label="l1"]
>
> "l0" -> "l1" [label=" true : int n := 0"]
> }
> #+end_dot
I agree you want a vector format for inserting diagrams into PDF. I
use EPS, I'm not aware that pdflatex supports SVG.
------------------------------------------------------------------
Russell Adams RLAdams@AdamsInfoServ.com
PGP Key ID: 0x1160DCB3 http://www.adamsinfoserv.com/
Fingerprint: 1723 D8CA 4280 1EC9 557F 66E8 1154 E018 1160 DCB3
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Exporting Graphviz to PDF
2013-02-08 20:12 Exporting Graphviz to PDF Marko Dimjašević
2013-02-08 20:34 ` Russell Adams
@ 2013-02-08 20:42 ` Thomas S. Dye
1 sibling, 0 replies; 3+ messages in thread
From: Thomas S. Dye @ 2013-02-08 20:42 UTC (permalink / raw)
To: Marko Dimjašević; +Cc: emacs-orgmode
Aloha Marko,
See http://orgmode.org/worg/org-contrib/babel/languages/ob-doc-dot.html
#+begin_src dot :file myfile.pdf
...
#+end_src
All the best,
Tom
marko@dimjasevic.net (Marko Dimjašević) writes:
> Hi folks,
>
> I'm trying to export a Graphviz dot graph to PDF. I have Graphviz
> installed on my system.
>
> Should I use:
>
> #+begin_src dot
> ...
> #+end_src
>
> or
>
> #+begin_dot
> ...
> #+end_dot
>
> ?
>
> For example, I'd like to use the following graph:
>
> #+begin_dot pg.svg -Tsvg :exports results
> digraph ProgramGraph {
> "l0" [label="l0"]
> "l1" [label="l1"]
>
> "l0" -> "l1" [label=" true : int n := 0"]
> }
> #+end_dot
>
> When I export it to PDF, instead of graph image I get a link with the
> text:
>
> file:pg_fcf0df40c0995897a72f6bb3a1b738b16b305752.svg
>
> pointing to the file.
>
> How to get the image embedded into PDF instead? I have Org-mode 7.6 and
> please say that there's a way to do it in 7.6 (because I won't be able
> to upgrade to anything newer until Trisquel 6.0 is released).
>
>
> Cheers,
> Marko
--
Thomas S. Dye
http://www.tsdye.com
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-02-08 20:42 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-02-08 20:12 Exporting Graphviz to PDF Marko Dimjašević
2013-02-08 20:34 ` Russell Adams
2013-02-08 20:42 ` Thomas S. Dye
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).