From 7d90740fad35b91fa6960f672fe96bb18bd21f51 Mon Sep 17 00:00:00 2001 From: Marius Peter Date: Sat, 14 Aug 2021 09:14:26 -0700 Subject: Ditaa and plantuml --- smart-documents.org | 48 +++++++++++++++++++++++++++++++++++++----------- 1 file 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 -- cgit v1.2.3