Skip to content

Instantly share code, notes, and snippets.

@swaroopjcse
Last active August 29, 2015 14:21
Show Gist options
  • Save swaroopjcse/7be9be953354311033a5 to your computer and use it in GitHub Desktop.
Save swaroopjcse/7be9be953354311033a5 to your computer and use it in GitHub Desktop.
Useful tikz commands
%\usepackage{tikz}
%\usetikzlibrary{shapes.geometric, arrows}
\tikzstyle{stage} = [rectangle, rounded corners, minimum height=2cm,text centered, text width=15cm, draw=black, fill=orange!30]
\tikzstyle{label} = [rectangle, text width=15cm, minimum height=1cm, text centered, font=\small]
\tikzstyle{arr} = [draw, -latex', very thick, rounded corners=15mm]
\tikzstyle{line} = [draw, very thick, rounded corners=15mm]
\begin{tikzpicture}[node distance=4cm]
\node (group) [stage] {Group Formation Round};
\node (hetero) [label, below of=group] {heterogenous groups of students based on their responses};
\node (discussion) [stage, below of=hetero, node distance=6cm] {Discussion Rounds};
\node (critical) [label, right of=discussion, node distance=16cm] {critical evaluation of each other's posts};
\node (conflicts) [label, below of=discussion, node distance=6cm] {conflicts resolved or refuted through peer discussions};
\node (quiz) [stage, below of=conflicts] {Quiz Round};
\node (justification) [label, below of=quiz] {justification of the answer};
\node (summary) [stage, below of=justification] {Summary Round};
\draw [line] (group) -- (hetero) -- (discussion) [arr];
\draw [line] ([xshift=5cm]discussion.south) -- ++(0, -2.4) -| (critical.south);
\draw [arr] (critical.north) -- ++(0, 2) -| ([xshift=5cm]discussion.north);
\draw [line] (discussion) -- (conflicts) -- (quiz) [arr];
\draw [line] (quiz) -- (justification) -- (summary) [arr];
\end{tikzpicture}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment