From 0bd86e39a67aaac4274bbf501f97827394ad6a32 Mon Sep 17 00:00:00 2001
From: Karl Berry <karl@freefriends.org>
Date: Thu, 18 Oct 2018 20:28:01 +0000
Subject: ditaa (18oct18)

git-svn-id: svn://tug.org/texlive/trunk@48932 c570f23f-e606-0410-a88d-b1316a301751
---
 Master/texmf-dist/doc/latex/ditaa/example.tex | 35 +++++++++++++++++++++++++++
 1 file changed, 35 insertions(+)
 create mode 100644 Master/texmf-dist/doc/latex/ditaa/example.tex

(limited to 'Master/texmf-dist/doc/latex/ditaa/example.tex')

diff --git a/Master/texmf-dist/doc/latex/ditaa/example.tex b/Master/texmf-dist/doc/latex/ditaa/example.tex
new file mode 100644
index 00000000000..10049fa5eb7
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/ditaa/example.tex
@@ -0,0 +1,35 @@
+% Preamble
+\documentclass[11pt]{article}
+
+% Packages
+\usepackage{a4wide}
+\def\imagepath{./resources/graphics}
+\usepackage[imagepath=\imagepath]{ditaa}
+\graphicspath{ {\imagepath/} }
+
+\begin{document}
+    This is a ditaa diagramm example.
+    \begin{ditaa}{ditaa caption example}{ditaaexample}
+        +--------+   +-------+    +-------+
+        |        | --+ ditaa +--> |       |
+        |  Text  |   +-------+    |diagram|
+        |Document|   |!magic!|    |       |
+        |     {d}|   |       |    |       |
+        +---+----+   +-------+    +-------+
+            :                         ^
+            |       Lots of work      |
+            +-------------------------+
+    \end{ditaa}
+    Enjoy!
+    And you can even specify image width like this Figure.\ref{fig:ditaaexample2}.
+     \begin{ditaa}[6cm]{ditaa caption example2}{ditaaexample2}
+       +---------+
+       | cBLU    |
+       |         |
+       |    +----+
+       |    |cPNK|
+       |    |    |
+       +----+----+
+    \end{ditaa}
+\end{document}
+
-- 
cgit v1.2.3

