From 13b0b8599f18e64bc6e0388801721cfb0a957067 Mon Sep 17 00:00:00 2001 From: Thomas Dye Date: Sun, 23 Sep 2012 14:31:01 -1000 Subject: [PATCH] * org-contrib/babel/languages/ob-doc-ditaa.org: Small changes to ditaa documentation and a new example --- .../babel/languages/images/hello-world-round.png | Bin 0 -> 2105 bytes org-contrib/babel/languages/ob-doc-ditaa.org | 36 +++++++++++++++++--- 2 files changed, 31 insertions(+), 5 deletions(-) create mode 100644 org-contrib/babel/languages/images/hello-world-round.png 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 0000000000000000000000000000000000000000..305a4a254b91db1333d40f57f823febda7fd31f7 GIT binary patch literal 2105 zcmb7GdpHx^A4erbZ5hd2SF{!}nw86HYuJ)8m#k>D_3C|H%590<$z@xK2&uIYQ5#K` z*EC+T=tU#fNEf+>ej}RR`vJI`~@`97cT<(%hy&-r{0-Id^|rlPGPCnu+d z$6?)MbBnCUDk;du*|HY}a&k&?cr4l@Vqk_9gL4niX*T6%{7Fs`+=U(yXkzg|A=<%y z8MvQwcat)D1KJh)ONs|zyH>*4FGrxljAXyh_k^Vy&TfN`eE20#tmqwYN}hDL4@K2W zJ1EG$UOsF8_~P<+_{;g*)xVB^l|;shGg;~qq@e|%!RZiGlUP8C1I~51nqYWJA_#~{ z1v2cRngt{fa}6paU0#D$m8;OI@*il;UIzU{eg*)n`Co>*aJ(wW+*9?j-=z{DR_%(O z-KF+?gklo9lX@dJH-JBI`}XaNpWjN#!XLqTLlHyp72^Af!ny7mH2;Rxb$;GAmbs(3^ zWwBU#*Bp0KCuxGhLWl#d*rzT!QZg(u&U)d`Z!}e93WY)jU=JMLN#&ViV8vx+yHO}| zMc*^i+M(Id8pRI37m#Bf9w33M%$IiI0_8gC#EEayuPyKSn3|fF5-*c}(|lGmoBG%h z>r)@Q+*#z9mw-SbcQEghcG^-6onoc`DQGx-sHErZTLKRk(If~R{ZknA)juEr3WWb*I1i+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*s#GgH#7~f1FIszbOUM=jvLjIMyiwl w{}TCco`64VWJWO49=D%8-TqGnR$Gw^AN{&7SbX}7>`Nerw

- +

@@ -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]] + -- 1.7.2.5