From mboxrd@z Thu Jan 1 00:00:00 1970 From: ckelty ckelty Subject: Re: best ways to generate simple diagrams? Date: Mon, 06 May 2019 12:12:14 -0700 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; format=flowed Return-path: Received: from eggs.gnu.org ([209.51.188.92]:37329) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hNj2C-0004aU-7Z for emacs-orgmode@gnu.org; Mon, 06 May 2019 15:12:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hNj2B-0003OT-D6 for emacs-orgmode@gnu.org; Mon, 06 May 2019 15:12:20 -0400 Received: from mail-pf1-x42d.google.com ([2607:f8b0:4864:20::42d]:44193) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hNj2B-0003KP-4k for emacs-orgmode@gnu.org; Mon, 06 May 2019 15:12:19 -0400 Received: by mail-pf1-x42d.google.com with SMTP id y13so7259674pfm.11 for ; Mon, 06 May 2019 12:12:18 -0700 (PDT) Received: from localhost ([164.67.185.241]) by smtp.gmail.com with ESMTPSA id c17sm14208503pfn.173.2019.05.06.12.12.15 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 06 May 2019 12:12:16 -0700 (PDT) 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, Did you already decide against graphviz? Admittedly it is only graphs and not "diagrams"... but it's very powerful and there is art in using a simple tool to make your life complex :) #+BEGIN_SRC dot :file test-dot.png :exports results digraph D { Humanities -> {"Computing Tools and Methodologies"} {"Computing Tools and Methodologies"} -> Humanities } #+END_SRC #+RESULTS: [[file:test-dot.png]] ck Matt Price writes: > 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