emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Orgmode] ditaa and dot blocks with docbook export


From: Dale Smith
Subject: [Orgmode] ditaa and dot blocks with docbook export
Date: Fri, 08 May 2009 11:01:26 -0400
User-agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/22.1 (gnu/linux)

So I was looking at http://doc.norang.ca/org-mode.html and saw the
integration with ditaa, and wondered how hard that would be to get
workign with the docbook exporter.  Oh! There is a dot block in there
too! Cool.  Hmm.  Lets try adding "docbookp".

Boy was *that* easy!  Works great.  Thanks Baoqiu Cui.

-Dale

> From 0c534df7af71e0a742a7123a14e0293da9f0e4c6 Mon Sep 17 00:00:00 2001
From: Dale Smith <address@hidden>
Date: Fri, 8 May 2009 10:54:49 -0400
Subject: [PATCH] Add support for docbook export for dot and ditaa blocks.

---
 contrib/lisp/org-exp-blocks.el |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/contrib/lisp/org-exp-blocks.el b/contrib/lisp/org-exp-blocks.el
index 5803458..bbecd18 100644
--- a/contrib/lisp/org-exp-blocks.el
+++ b/contrib/lisp/org-exp-blocks.el
@@ -187,7 +187,7 @@ passed to the ditaa utility as command line arguments."
                            (org-split-string body "\n")
                            "\n")))
     (cond 
-     ((or htmlp latexp)
+     ((or htmlp latexp docbookp)
       (with-temp-file data-file (insert body))
       (message (concat "java -jar " org-ditaa-jar-path " " args " " data-file 
" " out-file))
       (shell-command (concat "java -jar " org-ditaa-jar-path " " args " " 
data-file " " out-file))
@@ -222,7 +222,7 @@ digraph data_relationships {
        (args (if (cdr headers) (mapconcat 'identity (cdr headers) " ")))
        (data-file (make-temp-file "org-ditaa")))
     (cond 
-     ((or htmlp latexp)
+     ((or htmlp latexp docbookp)
       (with-temp-file data-file (insert body))
       (message (concat "dot " data-file " " args " -o " out-file))
       (shell-command (concat "dot " data-file " " args " -o " out-file))
-- 
1.6.0.3


-- 
Dale P. Smith
address@hidden
216-447-4059 x2018
216-447-8951 FAX

(Company mandated disclaimer follows...)

The information in this e-mail and any attachments is intended solely
for use by the recipient(s) to whom this e-mail is addressed and may
contain confidential and/or privileged information which is exempt
from disclosure.  If you are not an intended recipient, or an employee
or agent responsible for delivering this message to the intended
recipient, you are hereby notified that you have received this e-mail
and any attachments in error and that dissemination, distribution,
review or copying of this e-mail and its attachments is strictly
prohibited.  If you have received this e-mail in error, please notify
the sender immediately and delete all electronic and paper copies of
this e-mail as well as any attachments.
Thank you.

http://www.vtiinstruments.com/images/vtiemaillogo.gif

reply via email to

[Prev in Thread] Current Thread [Next in Thread]