From mboxrd@z Thu Jan 1 00:00:00 1970 From: Cecil Westerhof Subject: Re: How to place things differently in dot Date: Thu, 26 Mar 2015 18:09:06 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7bd91862d1b944051234127b Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56390) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YbBHJ-0006Cc-D0 for emacs-orgmode@gnu.org; Thu, 26 Mar 2015 13:09:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YbBHI-0006g0-1N for emacs-orgmode@gnu.org; Thu, 26 Mar 2015 13:09:09 -0400 Received: from mail-pd0-x22c.google.com ([2607:f8b0:400e:c02::22c]:33069) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YbBHH-0006fg-Mw for emacs-orgmode@gnu.org; Thu, 26 Mar 2015 13:09:07 -0400 Received: by pdnc3 with SMTP id c3so68715367pdn.0 for ; Thu, 26 Mar 2015 10:09:06 -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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org --047d7bd91862d1b944051234127b Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 2015-03-26 18:00 GMT+01:00 Thomas S. Dye : > Cecil Westerhof writes: > > > I was asked to make a diagram and was thinking that dot in org-mode cou= ld > > be a good idea. > > > > I got reasonably fast the following: > > =E2=80=8B #+BEGIN_SRC dot :file test.svg :cmdline -Kdot -Tsvg > > graph { > > utilities [label =3D "Utility's"] > > > > A > > B > > C > > > > D > > E > > F [shape =3D rectangle] > > > > > > subgraph cluster_resources { > > color=3Dblue > > resources [label =3D "Resources"] > > } > > > > G > > H > > I > > > > K > > subgraph cluster_ta { > > color=3Dblue > > {rank =3D same; L, M} > > L > > M > > } > > > > {rank =3D same; D, E, F} > > > > > > A -- F > > B -- F > > C -- F > > A -- D > > > > F -- E > > > > F -- K > > F -- G > > F -- H > > F -- I > > > > > > K -- L > > K -- M > > L -- M > > } > > #+END_SRC > > > > This is a good deal in the right direction, but a few things should be > > different: > > =E2=80=8B- E should be left of F > > - resource should go to the second 'line' without losing its border > > - K should be a 'line' lower > > > > Are those things possible? > > As a last resort, you can edit the svg file. > =E2=80=8BIt did cross my mind, but I am afraid it is not a real option (for= me). --=20 Cecil Westerhof --047d7bd91862d1b944051234127b Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
2015= -03-26 18:00 GMT+01:00 Thomas S. Dye <tsd@tsdye.com>:
Cecil Weste= rhof <cldwesterhof@gmail.com> writes:

> I was asked to make a diagram and was thinking that dot in org-mode co= uld
> be a good idea.
>
> I got reasonably fast the following:
> =E2=80=8B=C2=A0 =C2=A0 #+BEGIN_SRC dot :file test.svg :cmdline -Kdot -= Tsvg
>=C2=A0 =C2=A0 =C2=A0graph {
>=C2=A0 =C2=A0 =C2=A0 =C2=A0utilities [label =3D "Utility's&quo= t;]
>
>=C2=A0 =C2=A0 =C2=A0 =C2=A0A
>=C2=A0 =C2=A0 =C2=A0 =C2=A0B
>=C2=A0 =C2=A0 =C2=A0 =C2=A0C
>
>=C2=A0 =C2=A0 =C2=A0 =C2=A0D
>=C2=A0 =C2=A0 =C2=A0 =C2=A0E
>=C2=A0 =C2=A0 =C2=A0 =C2=A0F [shape =3D rectangle]
>
>
>=C2=A0 =C2=A0 =C2=A0 =C2=A0subgraph cluster_resources {
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0color=3Dblue
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0resources [label =3D "Resources&= quot;]
>=C2=A0 =C2=A0 =C2=A0 =C2=A0}
>
>=C2=A0 =C2=A0 =C2=A0 =C2=A0G
>=C2=A0 =C2=A0 =C2=A0 =C2=A0H
>=C2=A0 =C2=A0 =C2=A0 =C2=A0I
>
>=C2=A0 =C2=A0 =C2=A0 =C2=A0K
>=C2=A0 =C2=A0 =C2=A0 =C2=A0subgraph cluster_ta {
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0color=3Dblue
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0{rank =3D same; L, M}
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0L
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0M
>=C2=A0 =C2=A0 =C2=A0 =C2=A0}
>
>=C2=A0 =C2=A0 =C2=A0 =C2=A0{rank =3D same; D, E, F}
>
>
>=C2=A0 =C2=A0 =C2=A0 =C2=A0A -- F
>=C2=A0 =C2=A0 =C2=A0 =C2=A0B -- F
>=C2=A0 =C2=A0 =C2=A0 =C2=A0C -- F
>=C2=A0 =C2=A0 =C2=A0 =C2=A0A -- D
>
>=C2=A0 =C2=A0 =C2=A0 =C2=A0F -- E
>
>=C2=A0 =C2=A0 =C2=A0 =C2=A0F -- K
>=C2=A0 =C2=A0 =C2=A0 =C2=A0F -- G
>=C2=A0 =C2=A0 =C2=A0 =C2=A0F -- H
>=C2=A0 =C2=A0 =C2=A0 =C2=A0F -- I
>
>
>=C2=A0 =C2=A0 =C2=A0 =C2=A0K -- L
>=C2=A0 =C2=A0 =C2=A0 =C2=A0K -- M
>=C2=A0 =C2=A0 =C2=A0 =C2=A0L -- M
>=C2=A0 =C2=A0 =C2=A0}
>=C2=A0 =C2=A0 =C2=A0#+END_SRC
>
> This is a good deal in the right direction, but a few things should be=
> different:
> =E2=80=8B- E should be left of F
> - resource should go to the second 'line' without losing its b= order
> - K should be a 'line' lower
>
> Are those things possible?

As a last resort, you can edit the svg file.

=E2=80=8BIt did cross my mind, but I am afraid it is no= t a real option (for me).

--
Cecil Westerhof
--047d7bd91862d1b944051234127b--