emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: tsd@tsdye.com (Thomas S. Dye)
To: "Marko Dimjašević" <marko@dimjasevic.net>
Cc: emacs-orgmode@gnu.org
Subject: Re: Exporting Graphviz to PDF
Date: Fri, 08 Feb 2013 10:42:10 -1000	[thread overview]
Message-ID: <m1liayleql.fsf@tsdye.com> (raw)
In-Reply-To: <871ucqpnt9.fsf@neelix.gigaset.lan> ("Marko \=\?utf-8\?Q\?Dimja\?\= \=\?utf-8\?Q\?\=C5\=A1evi\=C4\=87\=22's\?\= message of "Fri, 08 Feb 2013 13:12:34 -0700")

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

      parent reply	other threads:[~2013-02-08 20:42 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]

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=m1liayleql.fsf@tsdye.com \
    --to=tsd@tsdye.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=marko@dimjasevic.net \
    /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).