summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarius Peter <marius.peter@tutanota.com>2021-08-14 09:14:26 -0700
committerMarius Peter <marius.peter@tutanota.com>2021-08-14 09:14:26 -0700
commit7d90740fad35b91fa6960f672fe96bb18bd21f51 (patch)
treefce2be17b0d76fcd3290c3c24c618eb45e5076d8
parent1ce11c36e004f7f465b391020f2ce285a1d275bc (diff)
Ditaa and plantuml
-rw-r--r--smart-documents.org48
1 files changed, 37 insertions, 11 deletions
diff --git a/smart-documents.org b/smart-documents.org
index f4d164e..a0101ac 100644
--- a/smart-documents.org
+++ b/smart-documents.org
@@ -789,26 +789,52 @@ Yeah, a Telegram client exists for Emacs.
:defer t)
#+END_SRC
-*** Drawing & diagrams
+*** Drawings
-#+BEGIN_SRC emacs-lisp :tangle yes
- (use-package plantuml)
-#+END_SRC
#+BEGIN_SRC ditaa :file ditaa.png
- +-----------+ +-----------------+
- | c06F | | c06F |
- | Create a | | Open the source |
- | source | | block and |
- | block for | | start drawing! |
- | ditaa | | |
- +-----------+ +-----------------+
+ +-----------+ +-----------------+
+ | c06F | | c06F |
+ | Create a | | Open the source |
+ | source |--->| block and |
+ | block for | | start drawing! |
+ | ditaa | | |
+ +-----------+ +-----------------+
#+END_SRC
#+RESULTS:
[[file:ditaa.png]]
+*** TODO Diagrams
+# Implement automatically downloading this kind of executable!
+
+#+BEGIN_SRC emacs-lisp :tangle yes
+ (setq org-plantuml-jar-path
+ (concat user-emacs-directory
+ "execs/plantuml.jar"))
+#+END_SRC
+
+#+BEGIN_SRC plantuml :file uml.png
+!theme plain
+package "Package 1" as pkg1 {
+node node1
+node node2
+}
+package "Package 2" as pkg2 {
+component "Component 1" as comp1
+component "Component 2" as comp2
+interface "Interface" as int
+}
+
+pkg1 .. pkg2
+
+comp1 --> int
+comp2 --> int
+#+END_SRC
+
+#+RESULTS:
+[[file:uml.png]]
** Coding languages
Copyright 2019--2024 Marius PETER