summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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