The Azimuth Project
delete 49

Page HomePage: * Demo of Instiki + TIKZ?

Page DEMO:

References

1 - Tikz-cd

1.2 - Inserting arrows

The arrow target can be specified by a direction parameter, which consists of a string of characters r, l,

d, u (standing for right, left, down and up). Labels can be placed on an arrow by means of the quotes syntax, described in detail in the pgf manual [3, §17.10.4]. Notice the use of “\phi” in the example below.

1.2.1

\begin{tikzcd} A \arrow[rd] \arrow[r, \phi] & B \ & C \end{tikzcd}


\begin{tikzcd}
A \arrow[rd] \arrow[r, "\phi"] & B \\
& C
\end{tikzcd}

1.2.2

\begin{tikzcd} A \arrow[r, \phi] \arrow[d, red] & B \arrow[d, \psi red] \ C \arrow[r, red, \eta blue] & D \end{tikzcd}


\begin{tikzcd}
A \arrow[r, "\phi"] \arrow[d, red]
& B \arrow[d, "\psi" red] \\
C \arrow[r, red, "\eta" blue]
& D
\end{tikzcd}

1.2.3

\begin{tikzcd} A \arrow[r, \phi near start, \psi, \eta near end] & B \end{tikzcd}


\begin{tikzcd}
A \arrow[r, "\phi" near start, "\psi"', "\eta" near end] & B
\end{tikzcd}

1.2.4

\begin{tikzcd} T \arrow[drr, bend left, x] \arrow[ddr, bend right, y] \arrow[dr, dotted, {(x,y)} description] & & \ & X \times_Z Y \arrow[r, p] \arrow[d, q] & X \arrow[d, f] \ & Y \arrow[r, g] & Z \end{tikzcd}


\begin{tikzcd}
T
\arrow[drr, bend left, "x"]
\arrow[ddr, bend right, "y"]
\arrow[dr, dotted, "{(x,y)}" description] & & \\
& X \times_Z Y \arrow[r, "p"] \arrow[d, "q"]
& X \arrow[d, "f"] \\
& Y \arrow[r, "g"]
& Z
\end{tikzcd}

1.2.5

\begin{tikzcd}[column sep=tiny] & \pi_1(U_1) \ar[dr] \ar[drr, j_1, bend left=20] & &[1.5em] \ \pi_1(U_1\cap U_2) \ar[ur, i_1] \ar[dr, i_2] & & \pi_1(U_1) \ast_{ \pi_1(U_1\cap U_2)} \pi_1(U_2) \ar[r, dashed, \simeq] & \pi_1(X) \ & \pi_1(U_2) \ar[ur]\ar[urr, j_2, bend right=20] & & \end{tikzcd}


\begin{tikzcd}[column sep=tiny]
& \pi_1(U_1) \ar[dr] \ar[drr, "j_1", bend left=20]
&
&[1.5em] \\
\pi_1(U_1\cap U_2) \ar[ur, "i_1"] \ar[dr, "i_2"']
&
& \pi_1(U_1) \ast_{ \pi_1(U_1\cap U_2)} \pi_1(U_2) \ar[r, dashed, "\simeq"]
& \pi_1(X) \\
& \pi_1(U_2) \ar[ur]\ar[urr, "j_2"', bend right=20]
&
&
\end{tikzcd}

2 - Tikz-Picture

Example from the Instiki documentation:

\begin{tikzpicture}[decoration={markings, mark=at position .5 with {\arrow{>}}}] \usetikzlibrary{arrows,shapes,decorations.markings} \begin{scope}[scale=2.0] \nodeBl,scale=.75 at (8,3) {}; \node[scale=1] at (8.7,2.9) {D3D3 brane}; \nodedraw,diamond,fill=yellow,scale=.3 at (7,0) {}; \drawdashed – (7,-.7); \nodedraw,diamond,fill=yellow,scale=.3 at (7.5,0) {}; \drawdashed – (7.5,-.7); \nodedraw,diamond,fill=yellow,scale=.3 at (8,0) {}; \drawdashed – (8,-.7); \nodedraw,diamond,fill=yellow,scale=.3 at (8.5,0) {}; \drawdashed – (8.5,-.7); \nodedraw,diamond,fill=yellow,scale=.3 at (9,0) {}; \drawdashed – (9,-.7); \nodedraw,circle,fill=aqua,scale=.3 at (9.5,0) {}; \drawdashed – (9.5,-.7); \nodedraw,regular polygon,regular polygon sides=5,fill=purple,scale=.3 at (10,0) {}; \drawdashed – (10,-.7); \nodedraw,regular polygon,regular polygon sides=5,fill=purple,scale=.3 at (10.5,0) {}; \drawdashed – (10.5,-.7); \draw (6.8,-.7) – (6.8,-.9) to (9.2,-.9) to (9.2,-.7); \draw (9.8,-.7) – (9.8,-.9) to (10.7,-.9) to (10.7,-.7); \draw->-=.75 to (10.2,.35); \draw->-=.75 to (10.2,.35); \node[scale=.6] at (9.9,.35) {(2,2)(2,2)}; \draw->-=.7 to (9.6,.7); \draw (10.2,.35) to (9.6,.7); \node[scale=.6] at (9.35,.9) {(4,0)(4,0)}; \draw->-=.5 to (A5); \draw (9.6,.7) to (9.1,.8) to (A5); \draw (9.1,.8) to out=170,in=280; \drawdashed to (8.1,2.5); \draw->-=.5 to (or1); \node[scale=.75] at (7.7,2.7) {(3,0)(3,0)}; %\draw (11.4,2.4) to out=180,in=90 to out=90,in=0 – cycle; \node[scale=.75] at (8,-1.1) {A-type}; \node[scale=.75] at (9.5,-1.1) {B-type}; \node[scale=.75] at (10.25,-1.1) {C-type}; \drawdashed to out=180,in=90 to out=270,in=180 to out=0,in=270 to out=90,in=0 – cycle; \node[scale=1] at (12,.6) {E 6E_6 singularity}; \end{scope} \end{tikzpicture}


\begin{tikzpicture}[decoration={markings,
mark=at position .5 with {\arrow{>}}}]
\usetikzlibrary{arrows,shapes,decorations.markings}
\begin{scope}[scale=2.0]
\node[Bl,scale=.75] (or1) at (8,3) {};
\node[scale=1] at (8.7,2.9) {$D3$ brane};
\node[draw,diamond,fill=yellow,scale=.3] (A1) at (7,0) {}; 
\draw[dashed] (A1) -- (7,-.7);
\node[draw,diamond,fill=yellow,scale=.3] (A2) at (7.5,0) {}; 
\draw[dashed] (A2) -- (7.5,-.7);
\node[draw,diamond,fill=yellow,scale=.3] (A3) at (8,0) {}; 
\draw[dashed] (A3) -- (8,-.7);
\node[draw,diamond,fill=yellow,scale=.3] (A4) at (8.5,0) {}; 
\draw[dashed] (A4) -- (8.5,-.7);
\node[draw,diamond,fill=yellow,scale=.3] (A5) at (9,0) {};
\draw[dashed] (A5) -- (9,-.7);
\node[draw,circle,fill=aqua,scale=.3] (B) at (9.5,0) {};
\draw[dashed] (B) -- (9.5,-.7);
\node[draw,regular polygon,regular polygon sides=5,fill=purple,scale=.3] (C1) at (10,0) {}; 
\draw[dashed] (C1) -- (10,-.7);
\node[draw,regular polygon,regular polygon sides=5,fill=purple,scale=.3] (C2) at (10.5,0) {};
\draw[dashed] (C2) -- (10.5,-.7);
\draw (6.8,-.7) -- (6.8,-.9) to (9.2,-.9) to (9.2,-.7);
\draw (9.8,-.7) -- (9.8,-.9) to (10.7,-.9) to (10.7,-.7);
\draw[->-=.75] (C2) to (10.2,.35);
\draw[->-=.75] (C1) to (10.2,.35);
\node[scale=.6] at (9.9,.35) {$(2,2)$};
\draw[->-=.7] (B) to (9.6,.7);
\draw (10.2,.35) to (9.6,.7);
\node[scale=.6] at (9.35,.9) {$(4,0)$};
\draw[->-=.5] (9.1,.8) to (A5);
\draw (9.6,.7) to (9.1,.8) to (A5);
\draw (9.1,.8) to [out=170,in=280] (8.3,1.45);
\draw[dashed] (8.3,1.45) to (8.1,2.5);
\draw[->-=.5] (8.1,2.5) to (or1);
\node[scale=.75] at (7.7,2.7) {$(3,0)$};
%\draw (11.4,2.4) to [out=180,in=90] (6.2,-.5) to [out=90,in=0] (or1) -- cycle;
\node[scale=.75] at (8,-1.1) {A-type};
\node[scale=.75] at (9.5,-1.1) {B-type};
\node[scale=.75] at (10.25,-1.1) {C-type};
\draw[dashed] (8.7,.6) to [out=180,in=90] (6.2,-.55) to [out=270,in=180] (8.7,-1.6) to [out=0,in=270] (11.2,-.55) to [out=90,in=0] (8.7,.6) -- cycle;
\node[scale=1] at (12,.6) {$E_6$ singularity};
\end{scope}
\end{tikzpicture}