From: "Eric Schulte" <schulte.eric@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: org-exp-block patch and Graphviz Demo
Date: Wed, 10 Jun 2009 07:51:31 -0700 [thread overview]
Message-ID: <m2k53k87m4.fsf@gmail.com> (raw)
In-Reply-To: <20090609155018.GX11193@thinkpad.adamsinfoserv.com> (Russell Adams's message of "Tue, 9 Jun 2009 10:50:18 -0500")
Russell Adams <RLAdams@AdamsInfoServ.Com> writes:
> I've looked, and it appears that the sed line is no longer required,
> it was an old hack.
>
> Regarding graphviz inclusion in PDF, the best output is still obtained
> by dot -> EPS, and then epstopdf -> PDF, and its inclusion in latex.
>
> How would you handle that in org-exp-block.el?
>
#+begin_dot out.pdf -Tpdf
digraph test {
a -> { b c d e };
e -> { f g h i };
};
#+end_dot
can be used with the current setup to go straight from dot -> PDF.
Since you would rather go to EPS as an intermediary step, then I would
recommend defining a new block type which can handle this two-stage
process. There are instructions in org-exp-blocks.el, and I would
recommend using `org-export-blocks-format-dot' in
contrib/lisp/org-exp-blocks.el as your starting point. It should be
possible to achieve the result your want with only one or two lines of
new elisp probably inserted right after the following line
(shell-command (concat "dot " data-file " " args " -o " out-file))
Cheers -- Eric
>
> Thanks.
>
> On Thu, May 28, 2009 at 03:57:42PM -0700, Eric Schulte wrote:
>>
>> That's fantastic, much simpler than the patch!
>>
>> Russell Adams <RLAdams@AdamsInfoServ.Com> writes:
>>
>> > Nicolas,
>> >
>> > You're right! I'd never seen -K, and its not in the manual page
>> > either. But clearly enough:
>> >
>> > $ dot --help
>> > Usage: dot [-Vv?] [-(GNE)name=val] [-(KTlso)<val>] <dot files>
>> >
>> > ...
>> >
>> > -Kv - Set layout engine to 'v' (overrides default based on command name)
>> >
>> > I just tried it in the example I had supplied, and it worked properly!
>> >
>> > #+BEGIN_dot dot neato.png -Tpng -Kneato
>> > digraph test {
>> >
>> > a -> { b c d e };
>> > e -> { f g h i };
>> >
>> > };
>> >
>> > #+END_dot
>> >
>> > Perhaps the patch and changes for that are pointless after all!
>> >
>> > I went back and checked the postscript / EPS issue, and it is still
>> > present.
>> >
>> > Thanks for that neat tip!
>> >
>> >
>> > On Thu, May 28, 2009 at 08:03:23PM +0200, Org Mode List wrote:
>> >> Hello,
>> >>
>> >> I could be wrong, but org-exp-block.el already provides support for any
>> >> Graphviz command since you can add the option -K as an argument to dot.
>> >>
>> >> Then again, I can have mistaken your point.
>> >>
>> >> --
>> >> Nicolas Goaziou
>> >>
>> >>
>> >>
>> >> _______________________________________________
>> >> Emacs-orgmode mailing list
>> >> Remember: use `Reply All' to send replies to the list.
>> >> Emacs-orgmode@gnu.org
>> >> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>> >>
>> >
>> >
>> > ------------------------------------------------------------------
>> > Russell Adams RLAdams@AdamsInfoServ.com
>> >
>> > PGP Key ID: 0x1160DCB3 http://www.adamsinfoserv.com/
>> >
>> > Fingerprint: 1723 D8CA 4280 1EC9 557F 66E8 1154 E018 1160 DCB3
>> >
>> >
>> > _______________________________________________
>> > Emacs-orgmode mailing list
>> > Remember: use `Reply All' to send replies to the list.
>> > Emacs-orgmode@gnu.org
>> > http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>>
>>
>> _______________________________________________
>> Emacs-orgmode mailing list
>> Remember: use `Reply All' to send replies to the list.
>> Emacs-orgmode@gnu.org
>> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>>
>
>
> ------------------------------------------------------------------
> Russell Adams RLAdams@AdamsInfoServ.com
>
> PGP Key ID: 0x1160DCB3 http://www.adamsinfoserv.com/
>
> Fingerprint: 1723 D8CA 4280 1EC9 557F 66E8 1154 E018 1160 DCB3
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
next prev parent reply other threads:[~2009-06-10 14:51 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-27 19:09 org-exp-block patch and Graphviz Demo Russell Adams
2009-05-28 7:48 ` Carsten Dominik
2009-05-28 13:44 ` Eric Schulte
2009-05-28 14:23 ` Eric Schulte
2009-05-28 18:03 ` Org Mode List
2009-05-28 22:47 ` Russell Adams
2009-05-28 22:57 ` Eric Schulte
2009-06-09 15:50 ` Russell Adams
2009-06-10 14:51 ` Eric Schulte [this message]
2009-06-10 15:29 ` Russell Adams
2009-06-10 16:06 ` Eric Schulte
2009-06-10 16:22 ` Russell Adams
2009-06-10 17:12 ` Eric Schulte
2009-06-10 17:54 ` Mark Elston
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=m2k53k87m4.fsf@gmail.com \
--to=schulte.eric@gmail.com \
--cc=emacs-orgmode@gnu.org \
/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).