emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Dale Smith <dsmith@vtiinstruments.com>
Subject: ditaa and dot blocks with docbook export
Date: Fri, 08 May 2009 11:01:26 -0400	[thread overview]
Message-ID: <kpljp7skop.fsf@flexo.cle.vtiinstruments.lcl> (raw)

[-- Attachment #1: Type: text/plain, Size: 314 bytes --]

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


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-Add-support-for-docbook-export-for-dot-and-ditaa-blo.patch --]
[-- Type: text/x-patch, Size: 1396 bytes --]

> From 0c534df7af71e0a742a7123a14e0293da9f0e4c6 Mon Sep 17 00:00:00 2001
From: Dale Smith <dales@flexo.cle.vtiinstruments.lcl>
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


[-- Attachment #3: Type: text/plain, Size: 913 bytes --]



-- 
Dale P. Smith
dales@vtiinstruments.com
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

[-- Attachment #4: Type: text/plain, Size: 204 bytes --]

_______________________________________________
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

             reply	other threads:[~2009-05-08 23:04 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-08 15:01 Dale Smith [this message]
2009-05-10  7:13 ` ditaa and dot blocks with docbook export Baoqiu Cui

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=kpljp7skop.fsf@flexo.cle.vtiinstruments.lcl \
    --to=dsmith@vtiinstruments.com \
    /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).