From: Thomas Dye
Date: Mon, 24 Sep 2012 00:31:01 +0000 (-1000)
Subject: * org-contrib/babel/languages/ob-doc-ditaa.org: Small changes to ditaa
X-Git-Tag: release_7.9.3~103
X-Git-Url: http://orgmode.org/w/?p=worg.git;a=commitdiff_plain;h=13b0b8599f18e64bc6e0388801721cfb0a957067
* org-contrib/babel/languages/ob-doc-ditaa.org: Small changes to ditaa
documentation and a new example
---
diff --git a/org-contrib/babel/languages/images/hello-world-round.png b/org-contrib/babel/languages/images/hello-world-round.png
new file mode 100644
index 0000000..305a4a2
Binary files /dev/null and b/org-contrib/babel/languages/images/hello-world-round.png differ
diff --git a/org-contrib/babel/languages/ob-doc-ditaa.org b/org-contrib/babel/languages/ob-doc-ditaa.org
index 1dbb1e2..db59379 100644
--- a/org-contrib/babel/languages/ob-doc-ditaa.org
+++ b/org-contrib/babel/languages/ob-doc-ditaa.org
@@ -2,7 +2,7 @@
#+STARTUP: align fold nodlcheck hidestars oddeven lognotestate hideblocks
#+SEQ_TODO: TODO(t) INPROGRESS(i) WAITING(w@) | DONE(d) CANCELED(c@)
#+TAGS: Write(w) Update(u) Fix(f) Check(c) noexport(n)
-#+TITLE: ditaa Source Code Blocks in Org Mode
+#+TITLE: =Ditaa= Source Code Blocks in Org Mode
#+AUTHOR: Thomas Dye
#+EMAIL: tsd[at]tsdye[dot]com
#+LANGUAGE: en
@@ -19,7 +19,7 @@
-
+
@@ -43,10 +43,10 @@
- [X] Describe [[Other]] differences from supported languages
- [X] Provide brief [[Examples%20of%20Use][Examples of Use]]
* Introduction
-=ditaa= is a command-line utility that converts diagrams drawn using
+=Ditaa= is a command-line utility that converts diagrams drawn using
ASCII art into bitmap graphics.
* Requirements and Setup
-=ditaa= is distributed with =Org mode=. The file =ditaa.jar= can be found
+=Ditaa= is distributed with =Org mode=. The file =ditaa.jar= can be found
in =contrib/scripts=.
Activate evaluation of =ditaa= source code blocks by adding =ditaa= to
@@ -67,8 +67,9 @@ Activate evaluation of =ditaa= source code blocks by adding =ditaa= to
** Sessions
=ditaa= does not support sessions.
** Result Types
-=ditaa= source code blocks return a link to a [[http://www.libpng.org/pub/png/][png]] bitmap file.
+=Ditaa= source code blocks return a link to a [[http://www.libpng.org/pub/png/][png]] bitmap file.
* Examples of Use
+The obligatory Hello World! example in =ditaa=:
#+BEGIN_EXAMPLE
#+BEGIN_SRC ditaa :file images/hello-world.png
+--------------+
@@ -91,3 +92,28 @@ Activate evaluation of =ditaa= source code blocks by adding =ditaa= to
#+RESULTS:
[[file:images/hello-world.png]]
+Now, round all corners by passing =ditaa= the =-r,--round-corners=
+command line switch.
+
+#+BEGIN_EXAMPLE
+#+BEGIN_SRC ditaa :file images/hello-world-round.png :cmdline -r
++--------------+
+| |
+| Hello World! |
+| |
++--------------+
+#+END_SRC
+#+END_EXAMPLE
+
+#+header: :exports results
+#+BEGIN_SRC ditaa :file images/hello-world-round.png :cmdline -r
++--------------+
+| |
+| Hello World! |
+| |
++--------------+
+#+END_SRC
+
+#+RESULTS:
+[[file:images/hello-world-round.png]]
+