From mboxrd@z Thu Jan 1 00:00:00 1970 From: Heinz Tuechler Subject: Re: best ways to generate simple diagrams? Date: Mon, 6 May 2019 21:08:37 +0100 Message-ID: <174cf109-590b-6f16-8db9-5353262028c5@gmx.at> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([209.51.188.92]:37289) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hNj27-0004ZF-6R for emacs-orgmode@gnu.org; Mon, 06 May 2019 15:12:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hNj26-0003CA-3B for emacs-orgmode@gnu.org; Mon, 06 May 2019 15:12:15 -0400 Received: from mout.gmx.net ([212.227.15.19]:51459) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hNj25-0002xz-Pf for emacs-orgmode@gnu.org; Mon, 06 May 2019 15:12:14 -0400 Received: from [192.168.2.101] ([194.166.192.170]) by mail.gmx.com (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MtOKi-1gaiKt17qY-00unSd for ; Mon, 06 May 2019 21:06:57 +0200 In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org Matt Price wrote/hat geschrieben on/am 06.05.2019 19:17: > So, I'm finding more and more that I want to include simple diagrams in my > course materials. At present I am generating them as svg's using Inkscape, > but that feels really tiresome to me. I would much rather make them > programmatically, preferably including the source code as an org-mode block. > > I thought ditaa would be the tool for this, but I cannot figure out how to > do this work efficiently in ditaa. So for instance, I have this simple svg > file (attached). It consists of two text-containing symmetrical rectangles > separated by a bit of whitespace and connected by two curved arrows (one > pointing from each of the rectangles to the other). > > Trying to replicate this in ditaa did not prove easy. Editing feels > extremely labourious. Am I missing something? Is there a really good > tutorial somehwere that I'm just not finding? Or is there maybe another > tool I should be using instead? > > Thanks as always, > > Matt > Maybe plantuml (http://plantuml.com/en/) is useful, e.g. #+begin_src plantuml :file hum-cs-interface-test.svg skinparam ArrowColor Blue node "Humanities" as H #DeepSkyBlue node "Computing\n Tools and\n Methodologies" as N #DeepSkyBlue N =l=> H H =r=> N #+end_src best regards, Heinz