[NTG-context] Class diagram in Ctx?

Thangalin thangalin at gmail.com
Wed Aug 13 23:39:06 CEST 2014


Hi,

Another option is to use graphviz (dot) to create the graph as an SVG
file and then include that graphic. For example:

-- graph.dot --
digraph CL {
  Home -> {Summary Account};
  Summary -> {Proposal Resources Hypothesis Discuss};
  Discuss -> {Support};
}

-- Run GraphViz --
dot -Tsvg graph.dot > graph.svg

-- Reference in ConTeXt --
\externalfigure[graph.svg]

Not as clean as embedded TikZ code, but the syntax is quite terse.

Dave

On Wed, Aug 13, 2014 at 3:19 AM, Procházka Lukáš Ing. - Pontex s. r.
o. <LPr at pontex.cz> wrote:
> Hello,
>
> thanks both for the tips, I'm going to try.
>
> Best regards,
>
>
> Lukas
>
>
> --
> Ing. Lukáš Procházka | mailto:LPr at pontex.cz
> Pontex s. r. o.      | mailto:pontex at pontex.cz | http://www.pontex.cz
> Bezová 1658
> 147 14 Praha 4
>
> Tel: +420 241 096 751
> Fax: +420 244 461 038
>
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context at ntg.nl /
> http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________


More information about the ntg-context mailing list