Featured Post

We've moved to tex.my!

It’s been great writing on Blogger.com, but we’ve decided to move to a new platform, thanks to some valuable help from a great, great friend...

Tuesday, October 13, 2009

Drawing diagram; the cryptic way

Well, this is not-so-latex stuffs, but I just want to share with you guys...

I managed to tried out 3 applications:

Let's see for Tikz;

%modified from texample.net
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{mindmap,trees}
\usepackage{verbatim}

\begin{document}
\pagestyle{empty}

\begin{tikzpicture}
\path[mindmap,concept color=red!50!black,text=white]
node[concept] {Hidup}
[clockwise from=0]
child[concept color=green!60!blue]
{
node[concept] {Pertimbangan}
[clockwise from=90]
child { node[concept] {cari duit} }
child { node[concept] {buat amal ibadat} }
child { node[concept] {belajar sungguh-sungguh} }
child { node[concept] {bina keluarga bahagia} }
}
child[concept color=orange] {
node[concept] {research}
[clockwise from=-30]
child { node[concept] {jurnal} }
child { node[concept] {artikel} }
};
\end{tikzpicture}\end{document}

will produce

then how about ditaa;

Raw source snapshot:


will produce:


and finally graphviz;

Source, the "dot" file:

digraph process{
node [color=blue,fontcolor=black,font=helvetica,]
nodesep=1.5
A[label="Machine Object (MO)"]
B[label="Portable Object (PO)"]

C[label="developer"]
D[label="translator"]
E[label="tools"]
F[label="POedit"]
G[label="kbabel"]

C->B[label="prepares PO",style=dashed]
C->A[label="compiles MO",style=dashed]
C->B->D [label="send PO files/i18n",fontcolor=red]
D->B->C[label="return translated files/l10n",fontcolor=green ]
D->E[label="translate using",fontcolor=blue,style=dashed]
E->F
E->G
}
returns;



3 comments:

  1. Don't diss tikz - it's how I produce all my diagrams these days!

    ReplyDelete
  2. i also installed ktikz (KDE-based), but can't get it work straight away, any clue?

    ReplyDelete
  3. Gee, no idea... I type my raw tikz code by hand and have never used GUI programs... :p

    ReplyDelete