Dataset Viewer
id
stringlengths 18
28
| png
imagewidth (px) 384
384
| code
stringlengths 121
27k
|
|---|---|---|
example_70000_combination_1
|
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{arrows,automata,backgrounds,fit,shapes,decorations.pathreplacing}
\usepackage{pgfplots}
\begin{document}
\centering
\begin{tikzpicture}
\begin{axis}[
xlabel style={align=right},
xlabel=Output (MW),
ylabel=Input (\$/h),
unbounded coords=jump,
xtick={0,1,2,3,4,5,6,7,8,9},
xticklabel style={anchor=base,yshift=-\baselineskip},
ytick=\empty,
xtick=\empty,
clip=false,
extra x ticks={0,2,4,6,8,9},
extra x tick labels={,$P_{pz}^-$,$P_{pz}^+$,,,}
]
\addplot+[black,smooth,no markers] coordinates {
(0,0) (1,1) (2,4) (3,inf)
(4,16) (5,25) (6,36) (7,inf) (8,64) (9,81)
};
\draw[red!70!black,ultra thick]
({axis cs:0,0}|-{axis description cs:0,0}) -- ({axis cs:2,0}|-{axis description cs:0,0});
\draw[red!70!black,ultra thick]
({axis cs:4,0}|-{axis description cs:0,0}) -- ({axis cs:6,0}|-{axis description cs:0,0});
\draw[red!70!black,ultra thick]
({axis cs:8,0}|-{axis description cs:0,0}) -- ({axis cs:9,0}|-{axis description cs:0,0});
\end{axis}
\end{tikzpicture}
\end{document}
|
|
example_70000_main
|
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{arrows,automata,backgrounds,fit,shapes,decorations.pathreplacing}
\usepackage{pgfplots}
\begin{document}
\centering
\begin{tikzpicture}
\begin{axis}[
xlabel style={align=right},
xlabel=Output (MW),
ylabel=Input (\$/h),
unbounded coords=jump,
xtick={0,1,2,3,4,5,6,7,8,9},
xticklabel style={anchor=base,yshift=-\baselineskip},
ytick=\empty,
xtick=\empty,
clip=false,
extra x ticks={0,2,4,6,8,9},
extra x tick labels={,$P_{pz}^-$,$P_{pz}^+$,,,}
]
\addplot+[black,smooth,no markers] coordinates {
(0,0) (1,1) (2,4) (3,inf)
(4,16) (5,25) (6,36) (7,inf) (8,64) (9,81)
};
\draw[red!70!black,ultra thick]
({axis cs:0,0}|-{axis description cs:0,0}) -- ({axis cs:2,0}|-{axis description cs:0,0});
\draw[red!70!black,ultra thick]
({axis cs:4,0}|-{axis description cs:0,0}) -- ({axis cs:6,0}|-{axis description cs:0,0});
\draw[red!70!black,ultra thick]
({axis cs:8,0}|-{axis description cs:0,0}) -- ({axis cs:9,0}|-{axis description cs:0,0});
\end{axis}
\end{tikzpicture}
\end{document}
|
|
example_70001_combination_3
|
\documentclass{article}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
% Draw the triangle
\draw[fill=gray!10] (0, 0) coordinate (A)
-- node[left] {$3$\,cm} (0,5) coordinate (C)
-- node[above right] {$5$\,cm} (6,0) coordinate (B)
-- node[below] {$4$\,cm} (0, 0);
\draw (0,10pt) -- ++(10pt,0) -- ++(0,-10pt);
% Draw nodes
\node at (A)[anchor=north] {$A$};
\end{tikzpicture}
\end{document}
|
|
example_70001_combination_4
|
\documentclass{article}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
% Draw the triangle
\draw[fill=gray!10] (0, 0) coordinate (A)
-- node[left] {$3$\,cm} (0,5) coordinate (C)
-- node[above right] {$5$\,cm} (6,0) coordinate (B)
-- node[below] {$4$\,cm} (0, 0);
\draw (0,10pt) -- ++(10pt,0) -- ++(0,-10pt);
% Draw nodes
\node at (A)[anchor=north] {$A$};
\node at (B)[anchor=north] {$B$};
\end{tikzpicture}
\end{document}
|
|
example_70001_combination_5
|
\documentclass{article}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
% Draw the triangle
\draw[fill=gray!10] (0, 0) coordinate (A)
-- node[left] {$3$\,cm} (0,5) coordinate (C)
-- node[above right] {$5$\,cm} (6,0) coordinate (B)
-- node[below] {$4$\,cm} (0, 0);
\draw (0,10pt) -- ++(10pt,0) -- ++(0,-10pt);
% Draw nodes
\node at (A)[anchor=north] {$A$};
\node at (B)[anchor=north] {$B$};
\node at (C)[anchor=south] {$C$};
\end{tikzpicture}
\end{document}
|
|
example_70001_combination_2
|
\documentclass{article}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
% Draw the triangle
\draw[fill=gray!10] (0, 0) coordinate (A)
-- node[left] {$3$\,cm} (0,5) coordinate (C)
-- node[above right] {$5$\,cm} (6,0) coordinate (B)
-- node[below] {$4$\,cm} (0, 0);
\draw (0,10pt) -- ++(10pt,0) -- ++(0,-10pt);
\end{tikzpicture}
\end{document}
|
|
example_70001_combination_1
|
\documentclass{article}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
% Draw the triangle
\draw[fill=gray!10] (0, 0) coordinate (A)
-- node[left] {$3$\,cm} (0,5) coordinate (C)
-- node[above right] {$5$\,cm} (6,0) coordinate (B)
-- node[below] {$4$\,cm} (0, 0);
\end{tikzpicture}
\end{document}
|
|
example_70001_combination_6
|
\documentclass{article}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
% Draw the triangle
\draw[fill=gray!10] (0, 0) coordinate (A)
-- node[left] {$3$\,cm} (0,5) coordinate (C)
-- node[above right] {$5$\,cm} (6,0) coordinate (B)
-- node[below] {$4$\,cm} (0, 0);
\draw (0,10pt) -- ++(10pt,0) -- ++(0,-10pt);
% Draw nodes
\node at (A)[anchor=north] {$A$};
\node at (B)[anchor=north] {$B$};
\node at (C)[anchor=south] {$C$};
\end{tikzpicture}
\end{document}
|
|
example_70001_main
|
\documentclass{article}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
% Draw the triangle
\draw[fill=gray!10] (0, 0) coordinate (A)
-- node[left] {$3$\,cm} (0,5) coordinate (C)
-- node[above right] {$5$\,cm} (6,0) coordinate (B)
-- node[below] {$4$\,cm} (0, 0);
\draw (0,10pt) -- ++(10pt,0) -- ++(0,-10pt);
% Draw nodes
\node at (A)[anchor=north] {$A$};
\node at (B)[anchor=north] {$B$};
\node at (C)[anchor=south] {$C$};
\end{tikzpicture}
\end{document}
|
|
example_70002_combination_6
|
\documentclass{article}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\draw[fill=gray!10] (0, 4) coordinate (A)
-- node[above=4pt] {$4$\, cm} (3,4) coordinate (C)
-- node[right] {$8$\,cm} (3,0) coordinate (B)
-- node[left] {$x$\,cm} (0, 4);
\draw ([xshift=-10pt]C) -- ++(0,-10pt) -- ++(10pt,0);
\node at (A)[anchor=east] {$A$};
\node at (B)[anchor=north] {$B$};
\node at (C)[anchor=south] {$C$};
\end{tikzpicture}
\end{document}
|
|
example_70002_combination_1
|
\documentclass{article}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\draw[fill=gray!10] (0, 4) coordinate (A)
-- node[above=4pt] {$4$\, cm} (3,4) coordinate (C)
-- node[right] {$8$\,cm} (3,0) coordinate (B)
-- node[left] {$x$\,cm} (0, 4);
\end{tikzpicture}
\end{document}
|
|
example_70002_combination_4
|
\documentclass{article}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\draw[fill=gray!10] (0, 4) coordinate (A)
-- node[above=4pt] {$4$\, cm} (3,4) coordinate (C)
-- node[right] {$8$\,cm} (3,0) coordinate (B)
-- node[left] {$x$\,cm} (0, 4);
\draw ([xshift=-10pt]C) -- ++(0,-10pt) -- ++(10pt,0);
\node at (A)[anchor=east] {$A$};
\node at (B)[anchor=north] {$B$};
\end{tikzpicture}
\end{document}
|
|
example_70002_combination_3
|
\documentclass{article}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\draw[fill=gray!10] (0, 4) coordinate (A)
-- node[above=4pt] {$4$\, cm} (3,4) coordinate (C)
-- node[right] {$8$\,cm} (3,0) coordinate (B)
-- node[left] {$x$\,cm} (0, 4);
\draw ([xshift=-10pt]C) -- ++(0,-10pt) -- ++(10pt,0);
\node at (A)[anchor=east] {$A$};
\end{tikzpicture}
\end{document}
|
|
example_70002_combination_2
|
\documentclass{article}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\draw[fill=gray!10] (0, 4) coordinate (A)
-- node[above=4pt] {$4$\, cm} (3,4) coordinate (C)
-- node[right] {$8$\,cm} (3,0) coordinate (B)
-- node[left] {$x$\,cm} (0, 4);
\draw ([xshift=-10pt]C) -- ++(0,-10pt) -- ++(10pt,0);
\end{tikzpicture}
\end{document}
|
|
example_70002_combination_5
|
\documentclass{article}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\draw[fill=gray!10] (0, 4) coordinate (A)
-- node[above=4pt] {$4$\, cm} (3,4) coordinate (C)
-- node[right] {$8$\,cm} (3,0) coordinate (B)
-- node[left] {$x$\,cm} (0, 4);
\draw ([xshift=-10pt]C) -- ++(0,-10pt) -- ++(10pt,0);
\node at (A)[anchor=east] {$A$};
\node at (B)[anchor=north] {$B$};
\node at (C)[anchor=south] {$C$};
\end{tikzpicture}
\end{document}
|
|
example_70002_main
|
\documentclass{article}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\draw[fill=gray!10] (0, 4) coordinate (A)
-- node[above=4pt] {$4$\, cm} (3,4) coordinate (C)
-- node[right] {$8$\,cm} (3,0) coordinate (B)
-- node[left] {$x$\,cm} (0, 4);
\draw ([xshift=-10pt]C) -- ++(0,-10pt) -- ++(10pt,0);
\node at (A)[anchor=east] {$A$};
\node at (B)[anchor=north] {$B$};
\node at (C)[anchor=south] {$C$};
\end{tikzpicture}
\end{document}
|
|
example_70003_combination_1
|
\documentclass{article}
\usepackage{xcolor}
\usepackage{tikz}
\usepackage{pgfplots}
\newlength{\xdim}
\definecolor{findOptimalPartition}{HTML}{D7191C}
\definecolor{storeClusterComponent}{HTML}{FDAE61}
\definecolor{dbscan}{HTML}{ABDDA4}
\definecolor{constructCluster}{HTML}{2B83BA}
\begin{document}
\begin{figure}
\centering
\begin{tikzpicture}
\begin{axis}[
xbar stacked,
legend style={
legend columns=4,
at={(xticklabel cs:0.5)},
anchor=north,
draw=none
},
ytick=data,
axis y line*=none,
axis x line*=bottom,
tick label style={font=\footnotesize},
legend style={font=\footnotesize},
label style={font=\footnotesize},
xtick={0,100,200,300,400,500,600},
width=.9\textwidth,
bar width=6mm,
xlabel={Time in ms},
yticklabels={A, B, C, D, E, F},
xmin=0,
xmax=600,
area legend,
y=8mm,
enlarge y limits={abs=0.625},
]
\addplot[findOptimalPartition,fill=findOptimalPartition] coordinates
{(20,0) (108,1) (5,2) (3,3) (108,4) (20,5)};
\addplot[storeClusterComponent,fill=storeClusterComponent] coordinates
{(1.4,0) (2,1) (5,2) (3,3) (2,4) (1,5)};
\addplot[dbscan,fill=dbscan] coordinates
{(288,0) (358,1) (5,2) (3,3) (358,4) (288,5)};
\addplot[constructCluster,fill=constructCluster] coordinates
{(6,0) (54,1) (5,2) (3,3) (54,4) (6,5)};
\legend{S, T, Q, R}
\coordinate (A) at (200,0);% ******** start of changes ************
\coordinate (B) at (300,8mm);
\end{axis}
\end{tikzpicture}
\end{figure}
\end{document}
|
|
example_70003_combination_3
|
\documentclass{article}
\usepackage{xcolor}
\usepackage{tikz}
\usepackage{pgfplots}
\newlength{\xdim}
\definecolor{findOptimalPartition}{HTML}{D7191C}
\definecolor{storeClusterComponent}{HTML}{FDAE61}
\definecolor{dbscan}{HTML}{ABDDA4}
\definecolor{constructCluster}{HTML}{2B83BA}
\begin{document}
\begin{figure}
\centering
\begin{tikzpicture}
\begin{axis}[
xbar stacked,
legend style={
legend columns=4,
at={(xticklabel cs:0.5)},
anchor=north,
draw=none
},
ytick=data,
axis y line*=none,
axis x line*=bottom,
tick label style={font=\footnotesize},
legend style={font=\footnotesize},
label style={font=\footnotesize},
xtick={0,100,200,300,400,500,600},
width=.9\textwidth,
bar width=6mm,
xlabel={Time in ms},
yticklabels={A, B, C, D, E, F},
xmin=0,
xmax=600,
area legend,
y=8mm,
enlarge y limits={abs=0.625},
]
\addplot[findOptimalPartition,fill=findOptimalPartition] coordinates
{(20,0) (108,1) (5,2) (3,3) (108,4) (20,5)};
\addplot[storeClusterComponent,fill=storeClusterComponent] coordinates
{(1.4,0) (2,1) (5,2) (3,3) (2,4) (1,5)};
\addplot[dbscan,fill=dbscan] coordinates
{(288,0) (358,1) (5,2) (3,3) (358,4) (288,5)};
\addplot[constructCluster,fill=constructCluster] coordinates
{(6,0) (54,1) (5,2) (3,3) (54,4) (6,5)};
\legend{S, T, Q, R}
\coordinate (A) at (200,0);% ******** start of changes ************
\coordinate (B) at (300,8mm);
\end{axis}
\node at (A) {test};
\node at (B) {test 2};% ********* end of changes **********
\end{tikzpicture}
\end{figure}
\end{document}
|
|
example_70003_combination_2
|
\documentclass{article}
\usepackage{xcolor}
\usepackage{tikz}
\usepackage{pgfplots}
\newlength{\xdim}
\definecolor{findOptimalPartition}{HTML}{D7191C}
\definecolor{storeClusterComponent}{HTML}{FDAE61}
\definecolor{dbscan}{HTML}{ABDDA4}
\definecolor{constructCluster}{HTML}{2B83BA}
\begin{document}
\begin{figure}
\centering
\begin{tikzpicture}
\begin{axis}[
xbar stacked,
legend style={
legend columns=4,
at={(xticklabel cs:0.5)},
anchor=north,
draw=none
},
ytick=data,
axis y line*=none,
axis x line*=bottom,
tick label style={font=\footnotesize},
legend style={font=\footnotesize},
label style={font=\footnotesize},
xtick={0,100,200,300,400,500,600},
width=.9\textwidth,
bar width=6mm,
xlabel={Time in ms},
yticklabels={A, B, C, D, E, F},
xmin=0,
xmax=600,
area legend,
y=8mm,
enlarge y limits={abs=0.625},
]
\addplot[findOptimalPartition,fill=findOptimalPartition] coordinates
{(20,0) (108,1) (5,2) (3,3) (108,4) (20,5)};
\addplot[storeClusterComponent,fill=storeClusterComponent] coordinates
{(1.4,0) (2,1) (5,2) (3,3) (2,4) (1,5)};
\addplot[dbscan,fill=dbscan] coordinates
{(288,0) (358,1) (5,2) (3,3) (358,4) (288,5)};
\addplot[constructCluster,fill=constructCluster] coordinates
{(6,0) (54,1) (5,2) (3,3) (54,4) (6,5)};
\legend{S, T, Q, R}
\coordinate (A) at (200,0);% ******** start of changes ************
\coordinate (B) at (300,8mm);
\end{axis}
\node at (A) {test};
\end{tikzpicture}
\end{figure}
\end{document}
|
|
example_70003_main
|
\documentclass{article}
\usepackage{xcolor}
\usepackage{tikz}
\usepackage{pgfplots}
\newlength{\xdim}
\definecolor{findOptimalPartition}{HTML}{D7191C}
\definecolor{storeClusterComponent}{HTML}{FDAE61}
\definecolor{dbscan}{HTML}{ABDDA4}
\definecolor{constructCluster}{HTML}{2B83BA}
\begin{document}
\begin{figure}
\centering
\begin{tikzpicture}
\begin{axis}[
xbar stacked,
legend style={
legend columns=4,
at={(xticklabel cs:0.5)},
anchor=north,
draw=none
},
ytick=data,
axis y line*=none,
axis x line*=bottom,
tick label style={font=\footnotesize},
legend style={font=\footnotesize},
label style={font=\footnotesize},
xtick={0,100,200,300,400,500,600},
width=.9\textwidth,
bar width=6mm,
xlabel={Time in ms},
yticklabels={A, B, C, D, E, F},
xmin=0,
xmax=600,
area legend,
y=8mm,
enlarge y limits={abs=0.625},
]
\addplot[findOptimalPartition,fill=findOptimalPartition] coordinates
{(20,0) (108,1) (5,2) (3,3) (108,4) (20,5)};
\addplot[storeClusterComponent,fill=storeClusterComponent] coordinates
{(1.4,0) (2,1) (5,2) (3,3) (2,4) (1,5)};
\addplot[dbscan,fill=dbscan] coordinates
{(288,0) (358,1) (5,2) (3,3) (358,4) (288,5)};
\addplot[constructCluster,fill=constructCluster] coordinates
{(6,0) (54,1) (5,2) (3,3) (54,4) (6,5)};
\legend{S, T, Q, R}
\coordinate (A) at (200,0);% ******** start of changes ************
\coordinate (B) at (300,8mm);
\end{axis}
\node at (A) {test};
\node at (B) {test 2};% ********* end of changes **********
\end{tikzpicture}
\caption{X}
\label{fig:stats}
\end{figure}
\end{document}
|
|
example_70004_combination_1
|
\documentclass{article}%[border=5pt]{standalone}
\usepackage{tikz}
\begin{document}
OP's solution:
\begin{tikzpicture}
\clip (-1,-2) rectangle (2,2);
\end{tikzpicture}
\end{document}
|
|
example_70004_combination_4
|
\documentclass{article}%[border=5pt]{standalone}
\usepackage{tikz}
\begin{document}
OP's solution:
\begin{tikzpicture}
\clip (-1,-2) rectangle (2,2);
\draw [double,double distance=3pt]
plot [smooth cycle] coordinates{(-4,0) (0,0) (4,0)}
plot [smooth cycle] coordinates{(0,0) (0,1) (1,1) (1,-1) (0,-1)};
\end{tikzpicture}\par
Proposed solution
\begin{tikzpicture}
\clip (-1,-2) rectangle (2,2);
\draw [double,double distance=3pt]
plot [smooth cycle] coordinates{(-4,0) (0,0) (4,0)}
plot [smooth cycle] coordinates{(0,0) (0,1) (1,1) (1,-1) (0,-1)};
\begin{scope}
\clip [] (1,-0.2) rectangle (1.2,0.2);
\draw [double,double distance=3pt] plot [smooth cycle] coordinates{(0,0) (0,1) (1,1) (1,-1) (0,-1)};
\end{scope}
\end{tikzpicture}
\end{document}
|
|
example_70004_combination_2
|
\documentclass{article}%[border=5pt]{standalone}
\usepackage{tikz}
\begin{document}
OP's solution:
\begin{tikzpicture}
\clip (-1,-2) rectangle (2,2);
\draw [double,double distance=3pt]
plot [smooth cycle] coordinates{(-4,0) (0,0) (4,0)}
plot [smooth cycle] coordinates{(0,0) (0,1) (1,1) (1,-1) (0,-1)};
\end{tikzpicture}
\end{document}
|
|
example_70004_main
|
\documentclass{article}%[border=5pt]{standalone}
\usepackage{tikz}
\begin{document}
OP's solution:
\begin{tikzpicture}
\clip (-1,-2) rectangle (2,2);
\draw [double,double distance=3pt]
plot [smooth cycle] coordinates{(-4,0) (0,0) (4,0)}
plot [smooth cycle] coordinates{(0,0) (0,1) (1,1) (1,-1) (0,-1)};
\end{tikzpicture}\par
Proposed solution
\begin{tikzpicture}
\clip (-1,-2) rectangle (2,2);
\draw [double,double distance=3pt]
plot [smooth cycle] coordinates{(-4,0) (0,0) (4,0)}
plot [smooth cycle] coordinates{(0,0) (0,1) (1,1) (1,-1) (0,-1)};
\begin{scope}
\clip [] (1,-0.2) rectangle (1.2,0.2);
\draw [double,double distance=3pt] plot [smooth cycle] coordinates{(0,0) (0,1) (1,1) (1,-1) (0,-1)};
\end{scope}
\end{tikzpicture}
\end{document}
|
|
example_70005_combination_4
|
\documentclass[convert={density=300,size=640x480,outext=.png}]{standalone}
\usepackage[english]{babel}
\usepackage[latin1]{inputenc}
\usepackage{times}
\usepackage[T1]{fontenc}
\usepackage{tikz}
\usetikzlibrary{calc, matrix, positioning,backgrounds}
\begin{document}
\begin{tikzpicture}[
node distance=1cm and 0.5cm,
matrixlabel/.style={text depth=3pt,above},
matrixnodes/.style={inner sep=0pt,text width=.5cm,align=center,minimum height=.5cm}]
\matrix (center)
[matrix of nodes,
nodes={matrixnodes}]{
5 & 0 & 3 \\
3 & 4 & 5 \\
3 & 1 & 1 \\
};
\node [matrixlabel] at (center.north) {Center};
\matrix (right)
[matrix of nodes,
nodes={matrixnodes},
right=of center] {
|[red]| {3} & |[red]| 3 & |[red]| 1 \\
|[red]| 0 & |[red]| 2 & |[red]| 0 \\
|[red]| 1 & |[red]| 3 & |[red]| 4 \\
};
\node [matrixlabel] at (right.north) {Right};
\matrix (left)
[matrix of nodes,
nodes={matrixnodes},
left=of center] {
0 & 2 & 0 \\
3 & 7 & 3 \\
1 & 1 & 3 \\
};
\end{tikzpicture}
\end{document}
|
|
example_70005_combination_10
|
\documentclass[convert={density=300,size=640x480,outext=.png}]{standalone}
\usepackage[english]{babel}
\usepackage[latin1]{inputenc}
\usepackage{times}
\usepackage[T1]{fontenc}
\usepackage{tikz}
\usetikzlibrary{calc, matrix, positioning,backgrounds}
\begin{document}
\begin{tikzpicture}[
node distance=1cm and 0.5cm,
matrixlabel/.style={text depth=3pt,above},
matrixnodes/.style={inner sep=0pt,text width=.5cm,align=center,minimum height=.5cm}]
\matrix (center)
[matrix of nodes,
nodes={matrixnodes}]{
5 & 0 & 3 \\
3 & 4 & 5 \\
3 & 1 & 1 \\
};
\node [matrixlabel] at (center.north) {Center};
\matrix (right)
[matrix of nodes,
nodes={matrixnodes},
right=of center] {
|[red]| {3} & |[red]| 3 & |[red]| 1 \\
|[red]| 0 & |[red]| 2 & |[red]| 0 \\
|[red]| 1 & |[red]| 3 & |[red]| 4 \\
};
\node [matrixlabel] at (right.north) {Right};
\matrix (left)
[matrix of nodes,
nodes={matrixnodes},
left=of center] {
0 & 2 & 0 \\
3 & 7 & 3 \\
1 & 1 & 3 \\
};
\node [matrixlabel] at (left.north) {Left};
\matrix (template)
[matrix of nodes,
nodes={matrixnodes},
above=of left.north west,
anchor=south west] {
2 & 5 & 5 \\
4 & 0 & 7 \\
7 & 5 & 9 \\
};
\node[matrixlabel] at (template.north) {Template};
\matrix (search)
[matrix of nodes,
nodes={matrixnodes},
above=of right.north east,
anchor=south east] {
2 & 7 & |[red]| 5 & |[red]| 8 & |[red]| 6 \\
1 & 7 & |[red]| 4 & |[red]| 2 & |[red]| 7 \\
8 & 4 & |[red]| 6 & |[red]| 8 & |[red]| 5 \\
};
\node[matrixlabel] at (search.north) {Search Image};
\matrix (sad)
[matrix of nodes,
below=of center] {
20 & 25 & |[red]| 17 \\
};
\node[matrixlabel] at (sad.north) {SAD};
\begin{scope}[on background layer,lightgray]
\foreach \mat in {template, left, center, right} {
\foreach \i in {1,2,3} {
\draw (\mat-\i-1.west) -- (\mat-\i-3.east);
\draw (\mat-1-\i.north) -- (\mat-3-\i.south);
}
}
\foreach \i in {1,2,...,5}
\draw (search-1-\i.north) -- (search-3-\i.south);
\foreach \i in {1,2,3}
\draw (search-\i-1.west) -- (search-\i-5.east);
\end{scope}
\end{tikzpicture}
\end{document}
|
|
example_70005_combination_3
|
\documentclass[convert={density=300,size=640x480,outext=.png}]{standalone}
\usepackage[english]{babel}
\usepackage[latin1]{inputenc}
\usepackage{times}
\usepackage[T1]{fontenc}
\usepackage{tikz}
\usetikzlibrary{calc, matrix, positioning,backgrounds}
\begin{document}
\begin{tikzpicture}[
node distance=1cm and 0.5cm,
matrixlabel/.style={text depth=3pt,above},
matrixnodes/.style={inner sep=0pt,text width=.5cm,align=center,minimum height=.5cm}]
\matrix (center)
[matrix of nodes,
nodes={matrixnodes}]{
5 & 0 & 3 \\
3 & 4 & 5 \\
3 & 1 & 1 \\
};
\node [matrixlabel] at (center.north) {Center};
\matrix (right)
[matrix of nodes,
nodes={matrixnodes},
right=of center] {
|[red]| {3} & |[red]| 3 & |[red]| 1 \\
|[red]| 0 & |[red]| 2 & |[red]| 0 \\
|[red]| 1 & |[red]| 3 & |[red]| 4 \\
};
\end{tikzpicture}
\end{document}
|
|
example_70005_combination_2
|
\documentclass[convert={density=300,size=640x480,outext=.png}]{standalone}
\usepackage[english]{babel}
\usepackage[latin1]{inputenc}
\usepackage{times}
\usepackage[T1]{fontenc}
\usepackage{tikz}
\usetikzlibrary{calc, matrix, positioning,backgrounds}
\begin{document}
\begin{tikzpicture}[
node distance=1cm and 0.5cm,
matrixlabel/.style={text depth=3pt,above},
matrixnodes/.style={inner sep=0pt,text width=.5cm,align=center,minimum height=.5cm}]
\matrix (center)
[matrix of nodes,
nodes={matrixnodes}]{
5 & 0 & 3 \\
3 & 4 & 5 \\
3 & 1 & 1 \\
};
\node [matrixlabel] at (center.north) {Center};
\end{tikzpicture}
\end{document}
|
|
example_70005_combination_5
|
\documentclass[convert={density=300,size=640x480,outext=.png}]{standalone}
\usepackage[english]{babel}
\usepackage[latin1]{inputenc}
\usepackage{times}
\usepackage[T1]{fontenc}
\usepackage{tikz}
\usetikzlibrary{calc, matrix, positioning,backgrounds}
\begin{document}
\begin{tikzpicture}[
node distance=1cm and 0.5cm,
matrixlabel/.style={text depth=3pt,above},
matrixnodes/.style={inner sep=0pt,text width=.5cm,align=center,minimum height=.5cm}]
\matrix (center)
[matrix of nodes,
nodes={matrixnodes}]{
5 & 0 & 3 \\
3 & 4 & 5 \\
3 & 1 & 1 \\
};
\node [matrixlabel] at (center.north) {Center};
\matrix (right)
[matrix of nodes,
nodes={matrixnodes},
right=of center] {
|[red]| {3} & |[red]| 3 & |[red]| 1 \\
|[red]| 0 & |[red]| 2 & |[red]| 0 \\
|[red]| 1 & |[red]| 3 & |[red]| 4 \\
};
\node [matrixlabel] at (right.north) {Right};
\matrix (left)
[matrix of nodes,
nodes={matrixnodes},
left=of center] {
0 & 2 & 0 \\
3 & 7 & 3 \\
1 & 1 & 3 \\
};
\node [matrixlabel] at (left.north) {Left};
\matrix (template)
[matrix of nodes,
nodes={matrixnodes},
above=of left.north west,
anchor=south west] {
2 & 5 & 5 \\
4 & 0 & 7 \\
7 & 5 & 9 \\
};
\end{tikzpicture}
\end{document}
|
|
example_70005_combination_6
|
\documentclass[convert={density=300,size=640x480,outext=.png}]{standalone}
\usepackage[english]{babel}
\usepackage[latin1]{inputenc}
\usepackage{times}
\usepackage[T1]{fontenc}
\usepackage{tikz}
\usetikzlibrary{calc, matrix, positioning,backgrounds}
\begin{document}
\begin{tikzpicture}[
node distance=1cm and 0.5cm,
matrixlabel/.style={text depth=3pt,above},
matrixnodes/.style={inner sep=0pt,text width=.5cm,align=center,minimum height=.5cm}]
\matrix (center)
[matrix of nodes,
nodes={matrixnodes}]{
5 & 0 & 3 \\
3 & 4 & 5 \\
3 & 1 & 1 \\
};
\node [matrixlabel] at (center.north) {Center};
\matrix (right)
[matrix of nodes,
nodes={matrixnodes},
right=of center] {
|[red]| {3} & |[red]| 3 & |[red]| 1 \\
|[red]| 0 & |[red]| 2 & |[red]| 0 \\
|[red]| 1 & |[red]| 3 & |[red]| 4 \\
};
\node [matrixlabel] at (right.north) {Right};
\matrix (left)
[matrix of nodes,
nodes={matrixnodes},
left=of center] {
0 & 2 & 0 \\
3 & 7 & 3 \\
1 & 1 & 3 \\
};
\node [matrixlabel] at (left.north) {Left};
\matrix (template)
[matrix of nodes,
nodes={matrixnodes},
above=of left.north west,
anchor=south west] {
2 & 5 & 5 \\
4 & 0 & 7 \\
7 & 5 & 9 \\
};
\node[matrixlabel] at (template.north) {Template};
\end{tikzpicture}
\end{document}
|
|
example_70005_combination_1
|
\documentclass[convert={density=300,size=640x480,outext=.png}]{standalone}
\usepackage[english]{babel}
\usepackage[latin1]{inputenc}
\usepackage{times}
\usepackage[T1]{fontenc}
\usepackage{tikz}
\usetikzlibrary{calc, matrix, positioning,backgrounds}
\begin{document}
\begin{tikzpicture}[
node distance=1cm and 0.5cm,
matrixlabel/.style={text depth=3pt,above},
matrixnodes/.style={inner sep=0pt,text width=.5cm,align=center,minimum height=.5cm}]
\matrix (center)
[matrix of nodes,
nodes={matrixnodes}]{
5 & 0 & 3 \\
3 & 4 & 5 \\
3 & 1 & 1 \\
};
\end{tikzpicture}
\end{document}
|
|
example_70005_combination_8
|
\documentclass[convert={density=300,size=640x480,outext=.png}]{standalone}
\usepackage[english]{babel}
\usepackage[latin1]{inputenc}
\usepackage{times}
\usepackage[T1]{fontenc}
\usepackage{tikz}
\usetikzlibrary{calc, matrix, positioning,backgrounds}
\begin{document}
\begin{tikzpicture}[
node distance=1cm and 0.5cm,
matrixlabel/.style={text depth=3pt,above},
matrixnodes/.style={inner sep=0pt,text width=.5cm,align=center,minimum height=.5cm}]
\matrix (center)
[matrix of nodes,
nodes={matrixnodes}]{
5 & 0 & 3 \\
3 & 4 & 5 \\
3 & 1 & 1 \\
};
\node [matrixlabel] at (center.north) {Center};
\matrix (right)
[matrix of nodes,
nodes={matrixnodes},
right=of center] {
|[red]| {3} & |[red]| 3 & |[red]| 1 \\
|[red]| 0 & |[red]| 2 & |[red]| 0 \\
|[red]| 1 & |[red]| 3 & |[red]| 4 \\
};
\node [matrixlabel] at (right.north) {Right};
\matrix (left)
[matrix of nodes,
nodes={matrixnodes},
left=of center] {
0 & 2 & 0 \\
3 & 7 & 3 \\
1 & 1 & 3 \\
};
\node [matrixlabel] at (left.north) {Left};
\matrix (template)
[matrix of nodes,
nodes={matrixnodes},
above=of left.north west,
anchor=south west] {
2 & 5 & 5 \\
4 & 0 & 7 \\
7 & 5 & 9 \\
};
\node[matrixlabel] at (template.north) {Template};
\matrix (search)
[matrix of nodes,
nodes={matrixnodes},
above=of right.north east,
anchor=south east] {
2 & 7 & |[red]| 5 & |[red]| 8 & |[red]| 6 \\
1 & 7 & |[red]| 4 & |[red]| 2 & |[red]| 7 \\
8 & 4 & |[red]| 6 & |[red]| 8 & |[red]| 5 \\
};
\node[matrixlabel] at (search.north) {Search Image};
\end{tikzpicture}
\end{document}
|
|
example_70005_combination_9
|
\documentclass[convert={density=300,size=640x480,outext=.png}]{standalone}
\usepackage[english]{babel}
\usepackage[latin1]{inputenc}
\usepackage{times}
\usepackage[T1]{fontenc}
\usepackage{tikz}
\usetikzlibrary{calc, matrix, positioning,backgrounds}
\begin{document}
\begin{tikzpicture}[
node distance=1cm and 0.5cm,
matrixlabel/.style={text depth=3pt,above},
matrixnodes/.style={inner sep=0pt,text width=.5cm,align=center,minimum height=.5cm}]
\matrix (center)
[matrix of nodes,
nodes={matrixnodes}]{
5 & 0 & 3 \\
3 & 4 & 5 \\
3 & 1 & 1 \\
};
\node [matrixlabel] at (center.north) {Center};
\matrix (right)
[matrix of nodes,
nodes={matrixnodes},
right=of center] {
|[red]| {3} & |[red]| 3 & |[red]| 1 \\
|[red]| 0 & |[red]| 2 & |[red]| 0 \\
|[red]| 1 & |[red]| 3 & |[red]| 4 \\
};
\node [matrixlabel] at (right.north) {Right};
\matrix (left)
[matrix of nodes,
nodes={matrixnodes},
left=of center] {
0 & 2 & 0 \\
3 & 7 & 3 \\
1 & 1 & 3 \\
};
\node [matrixlabel] at (left.north) {Left};
\matrix (template)
[matrix of nodes,
nodes={matrixnodes},
above=of left.north west,
anchor=south west] {
2 & 5 & 5 \\
4 & 0 & 7 \\
7 & 5 & 9 \\
};
\node[matrixlabel] at (template.north) {Template};
\matrix (search)
[matrix of nodes,
nodes={matrixnodes},
above=of right.north east,
anchor=south east] {
2 & 7 & |[red]| 5 & |[red]| 8 & |[red]| 6 \\
1 & 7 & |[red]| 4 & |[red]| 2 & |[red]| 7 \\
8 & 4 & |[red]| 6 & |[red]| 8 & |[red]| 5 \\
};
\node[matrixlabel] at (search.north) {Search Image};
\matrix (sad)
[matrix of nodes,
below=of center] {
20 & 25 & |[red]| 17 \\
};
\node[matrixlabel] at (sad.north) {SAD};
\end{tikzpicture}
\end{document}
|
|
example_70005_combination_7
|
\documentclass[convert={density=300,size=640x480,outext=.png}]{standalone}
\usepackage[english]{babel}
\usepackage[latin1]{inputenc}
\usepackage{times}
\usepackage[T1]{fontenc}
\usepackage{tikz}
\usetikzlibrary{calc, matrix, positioning,backgrounds}
\begin{document}
\begin{tikzpicture}[
node distance=1cm and 0.5cm,
matrixlabel/.style={text depth=3pt,above},
matrixnodes/.style={inner sep=0pt,text width=.5cm,align=center,minimum height=.5cm}]
\matrix (center)
[matrix of nodes,
nodes={matrixnodes}]{
5 & 0 & 3 \\
3 & 4 & 5 \\
3 & 1 & 1 \\
};
\node [matrixlabel] at (center.north) {Center};
\matrix (right)
[matrix of nodes,
nodes={matrixnodes},
right=of center] {
|[red]| {3} & |[red]| 3 & |[red]| 1 \\
|[red]| 0 & |[red]| 2 & |[red]| 0 \\
|[red]| 1 & |[red]| 3 & |[red]| 4 \\
};
\node [matrixlabel] at (right.north) {Right};
\matrix (left)
[matrix of nodes,
nodes={matrixnodes},
left=of center] {
0 & 2 & 0 \\
3 & 7 & 3 \\
1 & 1 & 3 \\
};
\node [matrixlabel] at (left.north) {Left};
\matrix (template)
[matrix of nodes,
nodes={matrixnodes},
above=of left.north west,
anchor=south west] {
2 & 5 & 5 \\
4 & 0 & 7 \\
7 & 5 & 9 \\
};
\node[matrixlabel] at (template.north) {Template};
\matrix (search)
[matrix of nodes,
nodes={matrixnodes},
above=of right.north east,
anchor=south east] {
2 & 7 & |[red]| 5 & |[red]| 8 & |[red]| 6 \\
1 & 7 & |[red]| 4 & |[red]| 2 & |[red]| 7 \\
8 & 4 & |[red]| 6 & |[red]| 8 & |[red]| 5 \\
};
\end{tikzpicture}
\end{document}
|
|
example_70005_main
|
\documentclass[convert={density=300,size=640x480,outext=.png}]{standalone}
\usepackage[english]{babel}
\usepackage[latin1]{inputenc}
\usepackage{times}
\usepackage[T1]{fontenc}
\usepackage{tikz}
\usetikzlibrary{calc, matrix, positioning,backgrounds}
\begin{document}
\begin{tikzpicture}[
node distance=1cm and 0.5cm,
matrixlabel/.style={text depth=3pt,above},
matrixnodes/.style={inner sep=0pt,text width=.5cm,align=center,minimum height=.5cm}]
\matrix (center)
[matrix of nodes,
nodes={matrixnodes}]{
5 & 0 & 3 \\
3 & 4 & 5 \\
3 & 1 & 1 \\
};
\node [matrixlabel] at (center.north) {Center};
\matrix (right)
[matrix of nodes,
nodes={matrixnodes},
right=of center] {
|[red]| {3} & |[red]| 3 & |[red]| 1 \\
|[red]| 0 & |[red]| 2 & |[red]| 0 \\
|[red]| 1 & |[red]| 3 & |[red]| 4 \\
};
\node [matrixlabel] at (right.north) {Right};
\matrix (left)
[matrix of nodes,
nodes={matrixnodes},
left=of center] {
0 & 2 & 0 \\
3 & 7 & 3 \\
1 & 1 & 3 \\
};
\node [matrixlabel] at (left.north) {Left};
\matrix (template)
[matrix of nodes,
nodes={matrixnodes},
above=of left.north west,
anchor=south west] {
2 & 5 & 5 \\
4 & 0 & 7 \\
7 & 5 & 9 \\
};
\node[matrixlabel] at (template.north) {Template};
\matrix (search)
[matrix of nodes,
nodes={matrixnodes},
above=of right.north east,
anchor=south east] {
2 & 7 & |[red]| 5 & |[red]| 8 & |[red]| 6 \\
1 & 7 & |[red]| 4 & |[red]| 2 & |[red]| 7 \\
8 & 4 & |[red]| 6 & |[red]| 8 & |[red]| 5 \\
};
\node[matrixlabel] at (search.north) {Search Image};
\matrix (sad)
[matrix of nodes,
below=of center] {
20 & 25 & |[red]| 17 \\
};
\node[matrixlabel] at (sad.north) {SAD};
\begin{scope}[on background layer,lightgray]
\foreach \mat in {template, left, center, right} {
\foreach \i in {1,2,3} {
\draw (\mat-\i-1.west) -- (\mat-\i-3.east);
\draw (\mat-1-\i.north) -- (\mat-3-\i.south);
}
}
\foreach \i in {1,2,...,5}
\draw (search-1-\i.north) -- (search-3-\i.south);
\foreach \i in {1,2,3}
\draw (search-\i-1.west) -- (search-\i-5.east);
\end{scope}
\end{tikzpicture}
\end{document}
|
|
example_70006_main
|
\documentclass{article}
\usepackage{tikz}
\usepackage{graphicx}
\newcommand*{\MyScale}{1}%
\newcommand*{\MyPicture}{%
\begin{tikzpicture}[scale=\MyScale]
\draw [ultra thick, blue] (0,0) -- (4,0) -- (4,4) -- (0,4) -- (0,0);
\node at (2,2) {Some text};
\end{tikzpicture}%
}%
\newcommand*{\MyResizeBox}[2]{%
\sbox0{#2}%
\pgfmathsetmacro{\MyScale}{#1/\wd0}%
#2%
}%
\begin{document}
\begin{tabular}{p{5.0cm} p{4.0cm} p{4.0cm}}
Original & \verb|\resizebox| & \verb|\MyResizeBox| \\
\fbox{%
\begin{minipage}{3cm}
\MyPicture%
\end{minipage}%
}%
&
\fbox{%
\begin{minipage}{3cm}
\resizebox{3.0cm}{3.0cm}{\MyPicture}%
\end{minipage}%
}%
&
\fbox{%
\begin{minipage}{3cm}
\MyResizeBox{3.0cm}{\MyPicture}%
\end{minipage}%
} \\%
\end{tabular}
\end{document}
|
|
example_70007_combination_1
|
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{decorations.pathreplacing}
\begin{document}
\begin{tikzpicture}
% Draw the triangle
\draw[fill=gray!10] (0, 0) coordinate (A)
-- (0,5) coordinate (C)
-- (6,0) coordinate (B)
-- (0, 0);
\end{tikzpicture}
\end{document}
|
|
example_70007_combination_6
|
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{decorations.pathreplacing}
\begin{document}
\begin{tikzpicture}
% Draw the triangle
\draw[fill=gray!10] (0, 0) coordinate (A)
-- (0,5) coordinate (C)
-- (6,0) coordinate (B)
-- (0, 0);
\draw[decoration={brace,mirror,raise=2pt},decorate]
(A) -- node[below=4pt] {$4$\,cm} (B);
\draw[decoration={brace,mirror,raise=2pt},decorate]
(B) -- node[above=4pt,sloped] {$5$\,cm} (C);
\draw[decoration={brace,mirror,raise=2pt},decorate]
(C) -- node[left=4pt] {$3$\,cm} (A);
\draw (0,10pt) -- ++(10pt,0) -- ++(0,-10pt);
% Draw nodes
\node at (A)[anchor=north] {$A$};
\end{tikzpicture}
\end{document}
|
|
example_70007_combination_8
|
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{decorations.pathreplacing}
\begin{document}
\begin{tikzpicture}
% Draw the triangle
\draw[fill=gray!10] (0, 0) coordinate (A)
-- (0,5) coordinate (C)
-- (6,0) coordinate (B)
-- (0, 0);
\draw[decoration={brace,mirror,raise=2pt},decorate]
(A) -- node[below=4pt] {$4$\,cm} (B);
\draw[decoration={brace,mirror,raise=2pt},decorate]
(B) -- node[above=4pt,sloped] {$5$\,cm} (C);
\draw[decoration={brace,mirror,raise=2pt},decorate]
(C) -- node[left=4pt] {$3$\,cm} (A);
\draw (0,10pt) -- ++(10pt,0) -- ++(0,-10pt);
% Draw nodes
\node at (A)[anchor=north] {$A$};
\node at (B)[anchor=north] {$B$};
\node at (C)[anchor=south] {$C$};
\end{tikzpicture}
\end{document}
|
|
example_70007_combination_9
|
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{decorations.pathreplacing}
\begin{document}
\begin{tikzpicture}
% Draw the triangle
\draw[fill=gray!10] (0, 0) coordinate (A)
-- (0,5) coordinate (C)
-- (6,0) coordinate (B)
-- (0, 0);
\draw[decoration={brace,mirror,raise=2pt},decorate]
(A) -- node[below=4pt] {$4$\,cm} (B);
\draw[decoration={brace,mirror,raise=2pt},decorate]
(B) -- node[above=4pt,sloped] {$5$\,cm} (C);
\draw[decoration={brace,mirror,raise=2pt},decorate]
(C) -- node[left=4pt] {$3$\,cm} (A);
\draw (0,10pt) -- ++(10pt,0) -- ++(0,-10pt);
% Draw nodes
\node at (A)[anchor=north] {$A$};
\node at (B)[anchor=north] {$B$};
\node at (C)[anchor=south] {$C$};
\end{tikzpicture}
\end{document}
|
|
example_70007_combination_7
|
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{decorations.pathreplacing}
\begin{document}
\begin{tikzpicture}
% Draw the triangle
\draw[fill=gray!10] (0, 0) coordinate (A)
-- (0,5) coordinate (C)
-- (6,0) coordinate (B)
-- (0, 0);
\draw[decoration={brace,mirror,raise=2pt},decorate]
(A) -- node[below=4pt] {$4$\,cm} (B);
\draw[decoration={brace,mirror,raise=2pt},decorate]
(B) -- node[above=4pt,sloped] {$5$\,cm} (C);
\draw[decoration={brace,mirror,raise=2pt},decorate]
(C) -- node[left=4pt] {$3$\,cm} (A);
\draw (0,10pt) -- ++(10pt,0) -- ++(0,-10pt);
% Draw nodes
\node at (A)[anchor=north] {$A$};
\node at (B)[anchor=north] {$B$};
\end{tikzpicture}
\end{document}
|
|
example_70007_combination_3
|
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{decorations.pathreplacing}
\begin{document}
\begin{tikzpicture}
% Draw the triangle
\draw[fill=gray!10] (0, 0) coordinate (A)
-- (0,5) coordinate (C)
-- (6,0) coordinate (B)
-- (0, 0);
\draw[decoration={brace,mirror,raise=2pt},decorate]
(A) -- node[below=4pt] {$4$\,cm} (B);
\draw[decoration={brace,mirror,raise=2pt},decorate]
(B) -- node[above=4pt,sloped] {$5$\,cm} (C);
\end{tikzpicture}
\end{document}
|
|
example_70007_combination_4
|
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{decorations.pathreplacing}
\begin{document}
\begin{tikzpicture}
% Draw the triangle
\draw[fill=gray!10] (0, 0) coordinate (A)
-- (0,5) coordinate (C)
-- (6,0) coordinate (B)
-- (0, 0);
\draw[decoration={brace,mirror,raise=2pt},decorate]
(A) -- node[below=4pt] {$4$\,cm} (B);
\draw[decoration={brace,mirror,raise=2pt},decorate]
(B) -- node[above=4pt,sloped] {$5$\,cm} (C);
\draw[decoration={brace,mirror,raise=2pt},decorate]
(C) -- node[left=4pt] {$3$\,cm} (A);
\end{tikzpicture}
\end{document}
|
|
example_70007_combination_5
|
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{decorations.pathreplacing}
\begin{document}
\begin{tikzpicture}
% Draw the triangle
\draw[fill=gray!10] (0, 0) coordinate (A)
-- (0,5) coordinate (C)
-- (6,0) coordinate (B)
-- (0, 0);
\draw[decoration={brace,mirror,raise=2pt},decorate]
(A) -- node[below=4pt] {$4$\,cm} (B);
\draw[decoration={brace,mirror,raise=2pt},decorate]
(B) -- node[above=4pt,sloped] {$5$\,cm} (C);
\draw[decoration={brace,mirror,raise=2pt},decorate]
(C) -- node[left=4pt] {$3$\,cm} (A);
\draw (0,10pt) -- ++(10pt,0) -- ++(0,-10pt);
\end{tikzpicture}
\end{document}
|
|
example_70007_combination_2
|
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{decorations.pathreplacing}
\begin{document}
\begin{tikzpicture}
% Draw the triangle
\draw[fill=gray!10] (0, 0) coordinate (A)
-- (0,5) coordinate (C)
-- (6,0) coordinate (B)
-- (0, 0);
\draw[decoration={brace,mirror,raise=2pt},decorate]
(A) -- node[below=4pt] {$4$\,cm} (B);
\end{tikzpicture}
\end{document}
|
|
example_70007_main
|
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{decorations.pathreplacing}
\begin{document}
\begin{tikzpicture}
% Draw the triangle
\draw[fill=gray!10] (0, 0) coordinate (A)
-- (0,5) coordinate (C)
-- (6,0) coordinate (B)
-- (0, 0);
\draw[decoration={brace,mirror,raise=2pt},decorate]
(A) -- node[below=4pt] {$4$\,cm} (B);
\draw[decoration={brace,mirror,raise=2pt},decorate]
(B) -- node[above=4pt,sloped] {$5$\,cm} (C);
\draw[decoration={brace,mirror,raise=2pt},decorate]
(C) -- node[left=4pt] {$3$\,cm} (A);
\draw (0,10pt) -- ++(10pt,0) -- ++(0,-10pt);
% Draw nodes
\node at (A)[anchor=north] {$A$};
\node at (B)[anchor=north] {$B$};
\node at (C)[anchor=south] {$C$};
\end{tikzpicture}
\end{document}
|
|
example_70008_combination_1
|
\documentclass[tikz,border=5]{standalone}
\usetikzlibrary{decorations}
\newcount\pgfdecoratedinputsegmentcount
\pgfdeclaredecoration{polyline}{start}{
\state{start}[width=0pt,
next state=draw,
persistent precomputation={\pgfdecoratedinputsegmentcount=1}]{}
\state{draw}[width=\pgfdecoratedinputsegmentlength,
switch if less than=\pgfdecoratedinputsegmentlength+.1pt to final,
persistent postcomputation={\advance\pgfdecoratedinputsegmentcount by1}]
{
\pgfcoordinate{@1}{\pgfpointdecoratedinputsegmentfirst}%
\pgfcoordinate{@2}{\pgfpointdecoratedinputsegmentlast}%
\let\i=\pgfdecoratedinputsegmentcount%
\pgfmathsetmacro\i{int(\pgfkeysvalueof{/pgf/decoration/polyline style function})}%
\ifnum\pgfdecoratedinputsegmentcount=1\relax%
\path [/pgf/decoration/every polyline/.try,
/pgf/decoration/polyline 1/.try,
/pgf/decoration/polyline first/.try]
(@1) -- (@2) \pgfdecorationpolylinenodes;
\else%
\path [/pgf/decoration/every polyline/.try,
/pgf/decoration/polyline \i/.try]
(@1) -- (@2) \pgfdecorationpolylinenodes;
\fi%
}
\state{final}{
\pgfcoordinate{@1}{\pgfpointdecoratedinputsegmentfirst}%
\pgfcoordinate{@2}{\pgfpointdecoratedinputsegmentlast}%
\let\i=\pgfdecoratedinputsegmentcount%
\pgfmathsetmacro\i{int(\pgfkeysvalueof{/pgf/decoration/polyline style function})}%
\path [/pgf/decoration/every polyline/.try,
/pgf/decoration/polyline \i/.try,
/pgf/decoration/polyline last/.try]
(@1) -- (@2) \pgfdecorationpolylinenodes;
}
}
\pgfkeys{/pgf/decoration/.cd,
polyline style function/.initial=\i}
\tikzset{%
polyline nodes/.store in=\pgfdecorationpolylinenodes,
polyline nodes=,
}
\begin{document}
\begin{tikzpicture}[polyline label/.style={
circle, inner sep=1pt, font=\sffamily\footnotesize, fill=black!75, text=white,
}]
\path
[decoration={polyline,
polyline style function={mod(\i-1,7)+1},
polyline 1/.style={draw=red},
polyline 2/.style={draw=yellow},
polyline 3/.style={draw=pink},
polyline 4/.style={draw=green},
polyline 5/.style={draw=orange},
polyline 6/.style={draw=purple},
polyline 7/.style={draw=blue},
polyline last/.style={-stealth},
every polyline/.style={ultra thick,
polyline nodes={node [midway, transform shape, polyline label] {\i}}
}}, decorate]
(0,0) \foreach \i in {1,...,28}{
-- ++(rand*180-90:rnd*1+2)
};
\end{tikzpicture}
\end{document}
|
|
example_70008_combination_2
|
\documentclass[tikz,border=5]{standalone}
\usetikzlibrary{decorations}
\newcount\pgfdecoratedinputsegmentcount
\pgfdeclaredecoration{polyline}{start}{
\state{start}[width=0pt,
next state=draw,
persistent precomputation={\pgfdecoratedinputsegmentcount=1}]{}
\state{draw}[width=\pgfdecoratedinputsegmentlength,
switch if less than=\pgfdecoratedinputsegmentlength+.1pt to final,
persistent postcomputation={\advance\pgfdecoratedinputsegmentcount by1}]
{
\pgfcoordinate{@1}{\pgfpointdecoratedinputsegmentfirst}%
\pgfcoordinate{@2}{\pgfpointdecoratedinputsegmentlast}%
\let\i=\pgfdecoratedinputsegmentcount%
\pgfmathsetmacro\i{int(\pgfkeysvalueof{/pgf/decoration/polyline style function})}%
\ifnum\pgfdecoratedinputsegmentcount=1\relax%
\path [/pgf/decoration/every polyline/.try,
/pgf/decoration/polyline 1/.try,
/pgf/decoration/polyline first/.try]
(@1) -- (@2) \pgfdecorationpolylinenodes;
\else%
\path [/pgf/decoration/every polyline/.try,
/pgf/decoration/polyline \i/.try]
(@1) -- (@2) \pgfdecorationpolylinenodes;
\fi%
}
\state{final}{
\pgfcoordinate{@1}{\pgfpointdecoratedinputsegmentfirst}%
\pgfcoordinate{@2}{\pgfpointdecoratedinputsegmentlast}%
\let\i=\pgfdecoratedinputsegmentcount%
\pgfmathsetmacro\i{int(\pgfkeysvalueof{/pgf/decoration/polyline style function})}%
\path [/pgf/decoration/every polyline/.try,
/pgf/decoration/polyline \i/.try,
/pgf/decoration/polyline last/.try]
(@1) -- (@2) \pgfdecorationpolylinenodes;
}
}
\pgfkeys{/pgf/decoration/.cd,
polyline style function/.initial=\i}
\tikzset{%
polyline nodes/.store in=\pgfdecorationpolylinenodes,
polyline nodes=,
}
\begin{document}
\begin{tikzpicture}[polyline label/.style={
circle, inner sep=1pt, font=\sffamily\footnotesize, fill=black!75, text=white,
}]
\path
[decoration={polyline,
polyline style function={mod(\i-1,7)+1},
polyline 1/.style={draw=red},
polyline 2/.style={draw=yellow},
polyline 3/.style={draw=pink},
polyline 4/.style={draw=green},
polyline 5/.style={draw=orange},
polyline 6/.style={draw=purple},
polyline 7/.style={draw=blue},
polyline last/.style={-stealth},
every polyline/.style={ultra thick,
polyline nodes={node [midway, transform shape, polyline label] {\i}}
}}, decorate]
(0,0) \foreach \i in {1,...,28}{
-- ++(rand*180-90:rnd*1+2)
};
\end{tikzpicture}
\end{document}
|
|
example_70008_main
|
\documentclass[tikz,border=5]{standalone}
\usetikzlibrary{decorations}
\newcount\pgfdecoratedinputsegmentcount
\pgfdeclaredecoration{polyline}{start}{
\state{start}[width=0pt,
next state=draw,
persistent precomputation={\pgfdecoratedinputsegmentcount=1}]{}
\state{draw}[width=\pgfdecoratedinputsegmentlength,
switch if less than=\pgfdecoratedinputsegmentlength+.1pt to final,
persistent postcomputation={\advance\pgfdecoratedinputsegmentcount by1}]
{
\pgfcoordinate{@1}{\pgfpointdecoratedinputsegmentfirst}%
\pgfcoordinate{@2}{\pgfpointdecoratedinputsegmentlast}%
\let\i=\pgfdecoratedinputsegmentcount%
\pgfmathsetmacro\i{int(\pgfkeysvalueof{/pgf/decoration/polyline style function})}%
\ifnum\pgfdecoratedinputsegmentcount=1\relax%
\path [/pgf/decoration/every polyline/.try,
/pgf/decoration/polyline 1/.try,
/pgf/decoration/polyline first/.try]
(@1) -- (@2) \pgfdecorationpolylinenodes;
\else%
\path [/pgf/decoration/every polyline/.try,
/pgf/decoration/polyline \i/.try]
(@1) -- (@2) \pgfdecorationpolylinenodes;
\fi%
}
\state{final}{
\pgfcoordinate{@1}{\pgfpointdecoratedinputsegmentfirst}%
\pgfcoordinate{@2}{\pgfpointdecoratedinputsegmentlast}%
\let\i=\pgfdecoratedinputsegmentcount%
\pgfmathsetmacro\i{int(\pgfkeysvalueof{/pgf/decoration/polyline style function})}%
\path [/pgf/decoration/every polyline/.try,
/pgf/decoration/polyline \i/.try,
/pgf/decoration/polyline last/.try]
(@1) -- (@2) \pgfdecorationpolylinenodes;
}
}
\pgfkeys{/pgf/decoration/.cd,
polyline style function/.initial=\i}
\tikzset{%
polyline nodes/.store in=\pgfdecorationpolylinenodes,
polyline nodes=,
}
\begin{document}
\begin{tikzpicture}[polyline label/.style={
circle, inner sep=1pt, font=\sffamily\footnotesize, fill=black!75, text=white,
}]
\path
[decoration={polyline,
polyline style function={mod(\i-1,7)+1},
polyline 1/.style={draw=red},
polyline 2/.style={draw=yellow},
polyline 3/.style={draw=pink},
polyline 4/.style={draw=green},
polyline 5/.style={draw=orange},
polyline 6/.style={draw=purple},
polyline 7/.style={draw=blue},
polyline last/.style={-stealth},
every polyline/.style={ultra thick,
polyline nodes={node [midway, transform shape, polyline label] {\i}}
}}, decorate]
(0,0) \foreach \i in {1,...,28}{
-- ++(rand*180-90:rnd*1+2)
};
\end{tikzpicture}
\end{document}
|
|
example_70009_main
|
\documentclass[10pt]{article}
\RequirePackage{mathptmx}
\RequirePackage[scaled=.90]{helvet}
\RequirePackage{courier}
\usepackage[hmargin=1cm,bmargin=2cm,tmargin=2cm,centering]{geometry}
\usepackage{graphicx}
\usepackage{amssymb}
\usepackage{here}
\usepackage[rgb]{xcolor}
\usepackage{framed}
\usepackage{multicol}
\usepackage{wrapfig}
\usepackage{lipsum}
\usepackage[none]{hyphenat}
\usepackage{parskip}
\definecolor{boxgray}{rgb}{.55,.54,.54}
\definecolor{darkgreen}{rgb}{.1,.67,.29}
\usepackage{tikz}
\usepackage{tikzpagenodes}
\usepackage{atbegshi}
\newcommand\Header{%
\begin{tikzpicture}[remember picture,overlay]
\path [fill=boxgray]
([xshift=1cm]current page.north west) -- ([xshift=70mm]current page.north west) -- ([xshift=70mm]current page.south west) -- ([xshift=1cm]current page.south west) -- cycle;
\path [fill=darkgreen]
(current page.north west) -- (current page.north east) --
([yshift=-1.5cm]current page.north east|-current page text area.north east) .. controls (7,.5) ..
([yshift=-2.5cm]current page.north west|-current page text area.north west) -- cycle;
\node[font=\bfseries\color{white},anchor=east,
xshift=-1.5cm,yshift=-1.3cm] at (current page.north east)
{\fontsize{40}{60}\selectfont Lorem Ipsum};
\end{tikzpicture}%
}
\newcommand\Footer{%
\begin{tikzpicture}[remember picture,overlay]
\fill[darkgreen]
(current page.south west) -- (current page.south east) --
([yshift=-30pt]current page.south east|-current page text area.south east) --
([yshift=-30pt]current page.south west|-current page text area.south west) -- cycle;
\end{tikzpicture}%
}
\pagestyle{empty}
\AtBeginShipout{\Footer}
\AtBeginShipoutFirst{\Header\Footer}
\begin{document}
\vspace*{2cm}
\begin{minipage}[t]{60mm}
\centering
\begin{minipage}[t]{.95\linewidth}
\color{white}%
\textbf{\large In this issue}
\begin{itemize}
\parskip = 0pt
\item Text
\item Text
\item Text
\item Text
\item Text
\end{itemize}
\parskip = 4pt
\centerline {\rule{.75\linewidth}{.25pt}}
\textbf{Lorem Ipsum}
\parskip = 3pt
\lipsum[2]
\lipsum[4]
\end{minipage}
\end{minipage}\hfill
% main section
\begin{minipage}[t]{.675\linewidth}
\begin{center}
\textbf{\Large Lorem Ipsum}
\end{center}
\parskip = 5pt
\lipsum[1-4]
\end{minipage}
\begin{minipage}[t]{.65\linewidth}
\begin{center}
\textbf{\Large Lorem Ipsum}
\end{center}
\begin{multicols}{2}
\parskip = 5pt
\lipsum[1-3]
\end{multicols}
\framebox{
\begin{minipage}[t]{.99\linewidth}
\begin{center}
\textbf{\Large Lorem Ipsum}
\end{center}
\parskip = 0pt
Text
\parskip = 0pt
\end{minipage}}
\parskip=8pt
\end{minipage}\hfill
%rightsidebox
\begin{minipage}[t]{.30\linewidth}
\framebox{
\begin{minipage}[t]{1\linewidth}
\centering
\begin{minipage}[t]{.95\linewidth}
\large \textbf{Lorem Ipsum}
\parskip=5pt
\lipsum[1]
\end{minipage}
\end{minipage}}
\centering
\begin{minipage}[t]{.95\linewidth}
\parskip = 10pt
\ \\
\ \\
Text.\\
Text.\\
\end{minipage}
\end{minipage}
\vfill
%bottom box
\begin{minipage}[t]{.95\textwidth}
\framebox{
\begin{minipage}[t]{.99\linewidth}
\lipsum[2]
\end{minipage}}
\end{minipage}
\end{document}
|
|
example_70010_combination_3
|
\documentclass[tikz]{standalone}
\usetikzlibrary{shapes.geometric,calc}
\begin{document}
\begin{tikzpicture}
\node[diamond,draw,minimum size=2cm] (a) at (0,3) {};
\node[draw,minimum height=1.8cm,minimum width=2cm,anchor=west] (b) at ([xshift=1mm]a.center) {};
\draw[thick,dotted] ($(a.north)!0.8!(a.south)!0.3!(a.west)$) arc (-120:-330:4mm) -- ++(5mm,0)
coordinate (c);
\end{tikzpicture}
\end{document}
|
|
example_70010_combination_4
|
\documentclass[tikz]{standalone}
\usetikzlibrary{shapes.geometric,calc}
\begin{document}
\begin{tikzpicture}
\node[diamond,draw,minimum size=2cm] (a) at (0,3) {};
\node[draw,minimum height=1.8cm,minimum width=2cm,anchor=west] (b) at ([xshift=1mm]a.center) {};
\draw[thick,dotted] ($(a.north)!0.8!(a.south)!0.3!(a.west)$) arc (-120:-330:4mm) -- ++(5mm,0)
coordinate (c);
\draw[thick,dotted] ([shift={(-4mm,-1mm)}]c)--++(15mm,0) --+(0,5mm) ++(0,-5mm)--+(0,5mm);
\end{tikzpicture}
\end{document}
|
|
example_70010_combination_2
|
\documentclass[tikz]{standalone}
\usetikzlibrary{shapes.geometric,calc}
\begin{document}
\begin{tikzpicture}
\node[diamond,draw,minimum size=2cm] (a) at (0,3) {};
\node[draw,minimum height=1.8cm,minimum width=2cm,anchor=west] (b) at ([xshift=1mm]a.center) {};
\end{tikzpicture}
\end{document}
|
|
example_70010_combination_1
|
\documentclass[tikz]{standalone}
\usetikzlibrary{shapes.geometric,calc}
\begin{document}
\begin{tikzpicture}
\node[diamond,draw,minimum size=2cm] (a) at (0,3) {};
\end{tikzpicture}
\end{document}
|
|
example_70010_main
|
\documentclass[tikz]{standalone}
\usetikzlibrary{shapes.geometric,calc}
\begin{document}
\begin{tikzpicture}
\node[diamond,draw,minimum size=2cm] (a) at (0,3) {};
\node[draw,minimum height=1.8cm,minimum width=2cm,anchor=west] (b) at ([xshift=1mm]a.center) {};
\draw[thick,dotted] ($(a.north)!0.8!(a.south)!0.3!(a.west)$) arc (-120:-330:4mm) -- ++(5mm,0)
coordinate (c);
\draw[thick,dotted] ([shift={(-4mm,-1mm)}]c)--++(15mm,0) --+(0,5mm) ++(0,-5mm)--+(0,5mm);
\end{tikzpicture}
\end{document}
|
|
example_70011_combination_6
|
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{automata,arrows,calc}
\begin{document}
\begin{figure}
\hspace{-4cm}
\begin{tikzpicture}[
->,>=stealth',
shorten >=1pt,
auto,
node distance=5cm,
thick,
transform shape,
%main state/.style={}
%state/.style={font=\sffamily\Large\bfseries}
buffer/.style={rectangle,draw,minimum width=2cm,minimum height=1cm,align=center}
]
\xdef\Rad{7}
\node[state,initial,accepting,minimum size=2cm] (1) at (90:\Rad) {Idle};
\node[state] (2) at (30:\Rad) {Select Fuel};
\node[state] (3) at (-30:\Rad) {Payment};
\node[state] (4) at (90:.5*\Rad) {Account};
\node[state] (5) at (-30:.5*\Rad) {PIN};
\node[state] (6) at (-90:\Rad){Cash};
\node[state] (7) at (-150:.5*\Rad) {Verify};
\node[state] (8) at (-150:\Rad){Pump};
\node[state] (9) at (-210:\Rad) {Log};
\end{tikzpicture}
\end{figure}
\end{document}
|
|
example_70011_combination_1
|
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{automata,arrows,calc}
\begin{document}
\begin{figure}
\hspace{-4cm}
\begin{tikzpicture}[
->,>=stealth',
shorten >=1pt,
auto,
node distance=5cm,
thick,
transform shape,
%main state/.style={}
%state/.style={font=\sffamily\Large\bfseries}
buffer/.style={rectangle,draw,minimum width=2cm,minimum height=1cm,align=center}
]
\xdef\Rad{7}
\node[state,initial,accepting,minimum size=2cm] (1) at (90:\Rad) {Idle};
\node[state] (2) at (30:\Rad) {Select Fuel};
\end{tikzpicture}
\end{figure}
\end{document}
|
|
example_70011_combination_8
|
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{automata,arrows,calc}
\begin{document}
\begin{figure}
\hspace{-4cm}
\begin{tikzpicture}[
->,>=stealth',
shorten >=1pt,
auto,
node distance=5cm,
thick,
transform shape,
%main state/.style={}
%state/.style={font=\sffamily\Large\bfseries}
buffer/.style={rectangle,draw,minimum width=2cm,minimum height=1cm,align=center}
]
\xdef\Rad{7}
\node[state,initial,accepting,minimum size=2cm] (1) at (90:\Rad) {Idle};
\node[state] (2) at (30:\Rad) {Select Fuel};
\node[state] (3) at (-30:\Rad) {Payment};
\node[state] (4) at (90:.5*\Rad) {Account};
\node[state] (5) at (-30:.5*\Rad) {PIN};
\node[state] (6) at (-90:\Rad){Cash};
\node[state] (7) at (-150:.5*\Rad) {Verify};
\node[state] (8) at (-150:\Rad){Pump};
\node[state] (9) at (-210:\Rad) {Log};
% \node[buffer] (10) [left of=9]{buffer};
\tikzset{every node/.style={font=\sffamily\scriptsize}}
\path[draw]
(1) edge [bend left] node[above right,pos=.4] {PressStar/} (2)
(2) edge [bend left] node[right] {PressStar/} (3)
edge [loop above] node[above] {Press2/FuelSelect95} (2)
edge [loop left] node [below,yshift=-8pt] {Press1/FuelSelect92} (2)
edge [loop right] node [below,yshift=-8pt] {Press3/FuelSelectOC} (2)
(3) %edge [bend left] node[right] {ChooseAcc/} (4)
edge [bend left] node[left] {InstertCash/IncCash} (6)
(4) to[out=-80] node[left,text width=1.5cm] {NumberEnter6/\\StoreAccNo} (5)
%edge [bend left] node[right] {TimeOut15/} (1)
(5) edge [bend left] node[below] {NumberEnter4/StorePIN} (7)
%edge [bend left] node[above,yshift=36pt,xshift=-28pt] {TimeOut15/} (1)
(6) edge [loop below] node {InsertCash/IncCash} (6)
edge [bend left] node { } (8)
(7) %edge [bend left] node[right] {NotVerified/} (1)
edge [bend left] node[right,yshift=-5pt] {Verified/} (8)
(8) edge [bend left] node[text width=1.3cm] {LeftOL,\\ReachMaxFuel,\\TimeOut15/} (9)
(9) edge [bend left] node {PressStar/} (1);
\end{tikzpicture}
\end{figure}
\end{document}
|
|
example_70011_combination_9
|
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{automata,arrows,calc}
\begin{document}
\begin{figure}
\hspace{-4cm}
\begin{tikzpicture}[
->,>=stealth',
shorten >=1pt,
auto,
node distance=5cm,
thick,
transform shape,
%main state/.style={}
%state/.style={font=\sffamily\Large\bfseries}
buffer/.style={rectangle,draw,minimum width=2cm,minimum height=1cm,align=center}
]
\xdef\Rad{7}
\node[state,initial,accepting,minimum size=2cm] (1) at (90:\Rad) {Idle};
\node[state] (2) at (30:\Rad) {Select Fuel};
\node[state] (3) at (-30:\Rad) {Payment};
\node[state] (4) at (90:.5*\Rad) {Account};
\node[state] (5) at (-30:.5*\Rad) {PIN};
\node[state] (6) at (-90:\Rad){Cash};
\node[state] (7) at (-150:.5*\Rad) {Verify};
\node[state] (8) at (-150:\Rad){Pump};
\node[state] (9) at (-210:\Rad) {Log};
% \node[buffer] (10) [left of=9]{buffer};
\tikzset{every node/.style={font=\sffamily\scriptsize}}
\path[draw]
(1) edge [bend left] node[above right,pos=.4] {PressStar/} (2)
(2) edge [bend left] node[right] {PressStar/} (3)
edge [loop above] node[above] {Press2/FuelSelect95} (2)
edge [loop left] node [below,yshift=-8pt] {Press1/FuelSelect92} (2)
edge [loop right] node [below,yshift=-8pt] {Press3/FuelSelectOC} (2)
(3) %edge [bend left] node[right] {ChooseAcc/} (4)
edge [bend left] node[left] {InstertCash/IncCash} (6)
(4) to[out=-80] node[left,text width=1.5cm] {NumberEnter6/\\StoreAccNo} (5)
%edge [bend left] node[right] {TimeOut15/} (1)
(5) edge [bend left] node[below] {NumberEnter4/StorePIN} (7)
%edge [bend left] node[above,yshift=36pt,xshift=-28pt] {TimeOut15/} (1)
(6) edge [loop below] node {InsertCash/IncCash} (6)
edge [bend left] node { } (8)
(7) %edge [bend left] node[right] {NotVerified/} (1)
edge [bend left] node[right,yshift=-5pt] {Verified/} (8)
(8) edge [bend left] node[text width=1.3cm] {LeftOL,\\ReachMaxFuel,\\TimeOut15/} (9)
(9) edge [bend left] node {PressStar/} (1);
\draw (4) to[in=-120,out=120] node[right] {TimeOut15/} (1) ;
\draw (7) to[in=210,out=120] node[pos=.3] {NotVerified/} (1) ;
\end{tikzpicture}
\end{figure}
\end{document}
|
|
example_70011_combination_7
|
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{automata,arrows,calc}
\begin{document}
\begin{figure}
\hspace{-4cm}
\begin{tikzpicture}[
->,>=stealth',
shorten >=1pt,
auto,
node distance=5cm,
thick,
transform shape,
%main state/.style={}
%state/.style={font=\sffamily\Large\bfseries}
buffer/.style={rectangle,draw,minimum width=2cm,minimum height=1cm,align=center}
]
\xdef\Rad{7}
\node[state,initial,accepting,minimum size=2cm] (1) at (90:\Rad) {Idle};
\node[state] (2) at (30:\Rad) {Select Fuel};
\node[state] (3) at (-30:\Rad) {Payment};
\node[state] (4) at (90:.5*\Rad) {Account};
\node[state] (5) at (-30:.5*\Rad) {PIN};
\node[state] (6) at (-90:\Rad){Cash};
\node[state] (7) at (-150:.5*\Rad) {Verify};
\node[state] (8) at (-150:\Rad){Pump};
\node[state] (9) at (-210:\Rad) {Log};
% \node[buffer] (10) [left of=9]{buffer};
\end{tikzpicture}
\end{figure}
\end{document}
|
|
example_70011_combination_4
|
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{automata,arrows,calc}
\begin{document}
\begin{figure}
\hspace{-4cm}
\begin{tikzpicture}[
->,>=stealth',
shorten >=1pt,
auto,
node distance=5cm,
thick,
transform shape,
%main state/.style={}
%state/.style={font=\sffamily\Large\bfseries}
buffer/.style={rectangle,draw,minimum width=2cm,minimum height=1cm,align=center}
]
\xdef\Rad{7}
\node[state,initial,accepting,minimum size=2cm] (1) at (90:\Rad) {Idle};
\node[state] (2) at (30:\Rad) {Select Fuel};
\node[state] (3) at (-30:\Rad) {Payment};
\node[state] (4) at (90:.5*\Rad) {Account};
\node[state] (5) at (-30:.5*\Rad) {PIN};
\node[state] (6) at (-90:\Rad){Cash};
\node[state] (7) at (-150:.5*\Rad) {Verify};
\end{tikzpicture}
\end{figure}
\end{document}
|
|
example_70011_combination_3
|
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{automata,arrows,calc}
\begin{document}
\begin{figure}
\hspace{-4cm}
\begin{tikzpicture}[
->,>=stealth',
shorten >=1pt,
auto,
node distance=5cm,
thick,
transform shape,
%main state/.style={}
%state/.style={font=\sffamily\Large\bfseries}
buffer/.style={rectangle,draw,minimum width=2cm,minimum height=1cm,align=center}
]
\xdef\Rad{7}
\node[state,initial,accepting,minimum size=2cm] (1) at (90:\Rad) {Idle};
\node[state] (2) at (30:\Rad) {Select Fuel};
\node[state] (3) at (-30:\Rad) {Payment};
\node[state] (4) at (90:.5*\Rad) {Account};
\node[state] (5) at (-30:.5*\Rad) {PIN};
\end{tikzpicture}
\end{figure}
\end{document}
|
|
example_70011_combination_10
|
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{automata,arrows,calc}
\begin{document}
\begin{figure}
\hspace{-4cm}
\begin{tikzpicture}[
->,>=stealth',
shorten >=1pt,
auto,
node distance=5cm,
thick,
transform shape,
%main state/.style={}
%state/.style={font=\sffamily\Large\bfseries}
buffer/.style={rectangle,draw,minimum width=2cm,minimum height=1cm,align=center}
]
\xdef\Rad{7}
\node[state,initial,accepting,minimum size=2cm] (1) at (90:\Rad) {Idle};
\node[state] (2) at (30:\Rad) {Select Fuel};
\node[state] (3) at (-30:\Rad) {Payment};
\node[state] (4) at (90:.5*\Rad) {Account};
\node[state] (5) at (-30:.5*\Rad) {PIN};
\node[state] (6) at (-90:\Rad){Cash};
\node[state] (7) at (-150:.5*\Rad) {Verify};
\node[state] (8) at (-150:\Rad){Pump};
\node[state] (9) at (-210:\Rad) {Log};
% \node[buffer] (10) [left of=9]{buffer};
\tikzset{every node/.style={font=\sffamily\scriptsize}}
\path[draw]
(1) edge [bend left] node[above right,pos=.4] {PressStar/} (2)
(2) edge [bend left] node[right] {PressStar/} (3)
edge [loop above] node[above] {Press2/FuelSelect95} (2)
edge [loop left] node [below,yshift=-8pt] {Press1/FuelSelect92} (2)
edge [loop right] node [below,yshift=-8pt] {Press3/FuelSelectOC} (2)
(3) %edge [bend left] node[right] {ChooseAcc/} (4)
edge [bend left] node[left] {InstertCash/IncCash} (6)
(4) to[out=-80] node[left,text width=1.5cm] {NumberEnter6/\\StoreAccNo} (5)
%edge [bend left] node[right] {TimeOut15/} (1)
(5) edge [bend left] node[below] {NumberEnter4/StorePIN} (7)
%edge [bend left] node[above,yshift=36pt,xshift=-28pt] {TimeOut15/} (1)
(6) edge [loop below] node {InsertCash/IncCash} (6)
edge [bend left] node { } (8)
(7) %edge [bend left] node[right] {NotVerified/} (1)
edge [bend left] node[right,yshift=-5pt] {Verified/} (8)
(8) edge [bend left] node[text width=1.3cm] {LeftOL,\\ReachMaxFuel,\\TimeOut15/} (9)
(9) edge [bend left] node {PressStar/} (1);
\draw (4) to[in=-120,out=120] node[right] {TimeOut15/} (1) ;
\draw (7) to[in=210,out=120] node[pos=.3] {NotVerified/} (1) ;
\draw (5) to[in=220,out=180] node[pos=.55,left] {TimeOut15/} (1) ;
\draw (3) to[in=-60,out=100] node[right] {ChooseAcc/} (4) ;
\end{tikzpicture}
\end{figure}
\end{document}
|
|
example_70011_combination_2
|
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{automata,arrows,calc}
\begin{document}
\begin{figure}
\hspace{-4cm}
\begin{tikzpicture}[
->,>=stealth',
shorten >=1pt,
auto,
node distance=5cm,
thick,
transform shape,
%main state/.style={}
%state/.style={font=\sffamily\Large\bfseries}
buffer/.style={rectangle,draw,minimum width=2cm,minimum height=1cm,align=center}
]
\xdef\Rad{7}
\node[state,initial,accepting,minimum size=2cm] (1) at (90:\Rad) {Idle};
\node[state] (2) at (30:\Rad) {Select Fuel};
\node[state] (3) at (-30:\Rad) {Payment};
\end{tikzpicture}
\end{figure}
\end{document}
|
|
example_70011_combination_5
|
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{automata,arrows,calc}
\begin{document}
\begin{figure}
\hspace{-4cm}
\begin{tikzpicture}[
->,>=stealth',
shorten >=1pt,
auto,
node distance=5cm,
thick,
transform shape,
%main state/.style={}
%state/.style={font=\sffamily\Large\bfseries}
buffer/.style={rectangle,draw,minimum width=2cm,minimum height=1cm,align=center}
]
\xdef\Rad{7}
\node[state,initial,accepting,minimum size=2cm] (1) at (90:\Rad) {Idle};
\node[state] (2) at (30:\Rad) {Select Fuel};
\node[state] (3) at (-30:\Rad) {Payment};
\node[state] (4) at (90:.5*\Rad) {Account};
\node[state] (5) at (-30:.5*\Rad) {PIN};
\node[state] (6) at (-90:\Rad){Cash};
\node[state] (7) at (-150:.5*\Rad) {Verify};
\node[state] (8) at (-150:\Rad){Pump};
\end{tikzpicture}
\end{figure}
\end{document}
|
|
example_70011_main
|
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{automata,arrows,calc}
\begin{document}
\begin{figure}
\hspace{-4cm}
\begin{tikzpicture}[
->,>=stealth',
shorten >=1pt,
auto,
node distance=5cm,
thick,
transform shape,
%main state/.style={}
%state/.style={font=\sffamily\Large\bfseries}
buffer/.style={rectangle,draw,minimum width=2cm,minimum height=1cm,align=center}
]
\xdef\Rad{7}
\node[state,initial,accepting,minimum size=2cm] (1) at (90:\Rad) {Idle};
\node[state] (2) at (30:\Rad) {Select Fuel};
\node[state] (3) at (-30:\Rad) {Payment};
\node[state] (4) at (90:.5*\Rad) {Account};
\node[state] (5) at (-30:.5*\Rad) {PIN};
\node[state] (6) at (-90:\Rad){Cash};
\node[state] (7) at (-150:.5*\Rad) {Verify};
\node[state] (8) at (-150:\Rad){Pump};
\node[state] (9) at (-210:\Rad) {Log};
% \node[buffer] (10) [left of=9]{buffer};
\tikzset{every node/.style={font=\sffamily\scriptsize}}
\path[draw]
(1) edge [bend left] node[above right,pos=.4] {PressStar/} (2)
(2) edge [bend left] node[right] {PressStar/} (3)
edge [loop above] node[above] {Press2/FuelSelect95} (2)
edge [loop left] node [below,yshift=-8pt] {Press1/FuelSelect92} (2)
edge [loop right] node [below,yshift=-8pt] {Press3/FuelSelectOC} (2)
(3) %edge [bend left] node[right] {ChooseAcc/} (4)
edge [bend left] node[left] {InstertCash/IncCash} (6)
(4) to[out=-80] node[left,text width=1.5cm] {NumberEnter6/\\StoreAccNo} (5)
%edge [bend left] node[right] {TimeOut15/} (1)
(5) edge [bend left] node[below] {NumberEnter4/StorePIN} (7)
%edge [bend left] node[above,yshift=36pt,xshift=-28pt] {TimeOut15/} (1)
(6) edge [loop below] node {InsertCash/IncCash} (6)
edge [bend left] node { } (8)
(7) %edge [bend left] node[right] {NotVerified/} (1)
edge [bend left] node[right,yshift=-5pt] {Verified/} (8)
(8) edge [bend left] node[text width=1.3cm] {LeftOL,\\ReachMaxFuel,\\TimeOut15/} (9)
(9) edge [bend left] node {PressStar/} (1);
\draw (4) to[in=-120,out=120] node[right] {TimeOut15/} (1) ;
\draw (7) to[in=210,out=120] node[pos=.3] {NotVerified/} (1) ;
\draw (5) to[in=220,out=180] node[pos=.55,left] {TimeOut15/} (1) ;
\draw (3) to[in=-60,out=100] node[right] {ChooseAcc/} (4) ;
\end{tikzpicture}
\end{figure}
\end{document}
|
|
example_70012_combination_10
|
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{automata,arrows}
\begin{document}
\begin{figure}
\hspace{-3cm}
\begin{tikzpicture}[
->,>=stealth',
shorten >=1pt,
auto,
node distance=5cm,
thick,
transform shape,
%main state/.style={}
%state/.style={font=\sffamily\Large\bfseries}
buffer/.style={rectangle,draw,minimum width=2cm,minimum height=1cm,align=center}
]
\node[state,initial,accepting,minimum size=2cm] (1) {Idle};
\node[state] (2) [right of=1] {Select Fuel};
\node[state] (3) [right of=2] {Payment};
\node[state] (4) [below right of=3] {Account};
\node[state] (5) [below left of=4]{PIN};
\node[state] (6) [below of=3]{Cash};
\node[state] (7) [left of=5]{Verify};
\node[state] (8) [left of=6]{Pump};
\node[state] (9) [left of=8]{Log};
% \node[buffer] (10) [left of=9]{buffer};
\begin{pgfinterruptboundingbox}
\path[every node/.style={font=\sffamily\scriptsize}]
(1) edge [bend left] node[above] {PressStar/} (2)
(2) edge [bend left] node[above] {PressStar/} (3)
edge [loop above] node[above] {Press2/FuelSelect95} (2)
edge [loop left] node [below,yshift=-8pt] {Press1/FuelSelect92} (2)
edge [loop right] node [below,yshift=-8pt] {Press3/FuelSelectOC} (2)
(3) edge [bend left] node[right] {ChooseAcc/} (4)
edge [bend left] node[left] {InstertCash/IncCash} (6)
(4) edge [bend left] node[right] {NumberEnter6/StoreAccNo} (5)
edge [bend left=130,looseness=2] node[right] {TimeOut15/} (1)
(5) edge [bend left] node[below] {NumberEnter4/StorePIN} (7)
edge [bend left] node[above,yshift=36pt,xshift=-28pt] {TimeOut15/} (1)
(6) edge [loop below] node {InsertCash/IncCash} (6)
edge [bend left] node { } (8)
(7) edge [bend left] node[right] {NotVerified/} (1)
edge [bend left] node[right,yshift=-5pt] {Verified/} (8)
(8) edge [bend left] node {LeftOL,ReachMaxFuel,TimeOut15/} (9)
(9) edge [bend left] node {PressStar/} (1);
\end{pgfinterruptboundingbox}
\end{tikzpicture}
\end{figure}
\end{document}
|
|
example_70012_combination_9
|
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{automata,arrows}
\begin{document}
\begin{figure}
\hspace{-3cm}
\begin{tikzpicture}[
->,>=stealth',
shorten >=1pt,
auto,
node distance=5cm,
thick,
transform shape,
%main state/.style={}
%state/.style={font=\sffamily\Large\bfseries}
buffer/.style={rectangle,draw,minimum width=2cm,minimum height=1cm,align=center}
]
\node[state,initial,accepting,minimum size=2cm] (1) {Idle};
\node[state] (2) [right of=1] {Select Fuel};
\node[state] (3) [right of=2] {Payment};
\node[state] (4) [below right of=3] {Account};
\node[state] (5) [below left of=4]{PIN};
\node[state] (6) [below of=3]{Cash};
\node[state] (7) [left of=5]{Verify};
\node[state] (8) [left of=6]{Pump};
\node[state] (9) [left of=8]{Log};
% \node[buffer] (10) [left of=9]{buffer};
\end{tikzpicture}
\end{figure}
\end{document}
|
|
example_70012_combination_7
|
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{automata,arrows}
\begin{document}
\begin{figure}
\hspace{-3cm}
\begin{tikzpicture}[
->,>=stealth',
shorten >=1pt,
auto,
node distance=5cm,
thick,
transform shape,
%main state/.style={}
%state/.style={font=\sffamily\Large\bfseries}
buffer/.style={rectangle,draw,minimum width=2cm,minimum height=1cm,align=center}
]
\node[state,initial,accepting,minimum size=2cm] (1) {Idle};
\node[state] (2) [right of=1] {Select Fuel};
\node[state] (3) [right of=2] {Payment};
\node[state] (4) [below right of=3] {Account};
\node[state] (5) [below left of=4]{PIN};
\node[state] (6) [below of=3]{Cash};
\node[state] (7) [left of=5]{Verify};
\end{tikzpicture}
\end{figure}
\end{document}
|
|
example_70012_combination_6
|
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{automata,arrows}
\begin{document}
\begin{figure}
\hspace{-3cm}
\begin{tikzpicture}[
->,>=stealth',
shorten >=1pt,
auto,
node distance=5cm,
thick,
transform shape,
%main state/.style={}
%state/.style={font=\sffamily\Large\bfseries}
buffer/.style={rectangle,draw,minimum width=2cm,minimum height=1cm,align=center}
]
\node[state,initial,accepting,minimum size=2cm] (1) {Idle};
\node[state] (2) [right of=1] {Select Fuel};
\node[state] (3) [right of=2] {Payment};
\node[state] (4) [below right of=3] {Account};
\node[state] (5) [below left of=4]{PIN};
\node[state] (6) [below of=3]{Cash};
\end{tikzpicture}
\end{figure}
\end{document}
|
|
example_70012_combination_1
|
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{automata,arrows}
\begin{document}
\begin{figure}
\hspace{-3cm}
\begin{tikzpicture}[
->,>=stealth',
shorten >=1pt,
auto,
node distance=5cm,
thick,
transform shape,
%main state/.style={}
%state/.style={font=\sffamily\Large\bfseries}
buffer/.style={rectangle,draw,minimum width=2cm,minimum height=1cm,align=center}
]
\node[state,initial,accepting,minimum size=2cm] (1) {Idle};
\end{tikzpicture}
\end{figure}
\end{document}
|
|
example_70012_combination_8
|
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{automata,arrows}
\begin{document}
\begin{figure}
\hspace{-3cm}
\begin{tikzpicture}[
->,>=stealth',
shorten >=1pt,
auto,
node distance=5cm,
thick,
transform shape,
%main state/.style={}
%state/.style={font=\sffamily\Large\bfseries}
buffer/.style={rectangle,draw,minimum width=2cm,minimum height=1cm,align=center}
]
\node[state,initial,accepting,minimum size=2cm] (1) {Idle};
\node[state] (2) [right of=1] {Select Fuel};
\node[state] (3) [right of=2] {Payment};
\node[state] (4) [below right of=3] {Account};
\node[state] (5) [below left of=4]{PIN};
\node[state] (6) [below of=3]{Cash};
\node[state] (7) [left of=5]{Verify};
\node[state] (8) [left of=6]{Pump};
\node[state] (9) [left of=8]{Log};
\end{tikzpicture}
\end{figure}
\end{document}
|
|
example_70012_combination_2
|
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{automata,arrows}
\begin{document}
\begin{figure}
\hspace{-3cm}
\begin{tikzpicture}[
->,>=stealth',
shorten >=1pt,
auto,
node distance=5cm,
thick,
transform shape,
%main state/.style={}
%state/.style={font=\sffamily\Large\bfseries}
buffer/.style={rectangle,draw,minimum width=2cm,minimum height=1cm,align=center}
]
\node[state,initial,accepting,minimum size=2cm] (1) {Idle};
\node[state] (2) [right of=1] {Select Fuel};
\end{tikzpicture}
\end{figure}
\end{document}
|
|
example_70012_combination_5
|
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{automata,arrows}
\begin{document}
\begin{figure}
\hspace{-3cm}
\begin{tikzpicture}[
->,>=stealth',
shorten >=1pt,
auto,
node distance=5cm,
thick,
transform shape,
%main state/.style={}
%state/.style={font=\sffamily\Large\bfseries}
buffer/.style={rectangle,draw,minimum width=2cm,minimum height=1cm,align=center}
]
\node[state,initial,accepting,minimum size=2cm] (1) {Idle};
\node[state] (2) [right of=1] {Select Fuel};
\node[state] (3) [right of=2] {Payment};
\node[state] (4) [below right of=3] {Account};
\node[state] (5) [below left of=4]{PIN};
\end{tikzpicture}
\end{figure}
\end{document}
|
|
example_70012_combination_4
|
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{automata,arrows}
\begin{document}
\begin{figure}
\hspace{-3cm}
\begin{tikzpicture}[
->,>=stealth',
shorten >=1pt,
auto,
node distance=5cm,
thick,
transform shape,
%main state/.style={}
%state/.style={font=\sffamily\Large\bfseries}
buffer/.style={rectangle,draw,minimum width=2cm,minimum height=1cm,align=center}
]
\node[state,initial,accepting,minimum size=2cm] (1) {Idle};
\node[state] (2) [right of=1] {Select Fuel};
\node[state] (3) [right of=2] {Payment};
\node[state] (4) [below right of=3] {Account};
\end{tikzpicture}
\end{figure}
\end{document}
|
|
example_70012_combination_3
|
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{automata,arrows}
\begin{document}
\begin{figure}
\hspace{-3cm}
\begin{tikzpicture}[
->,>=stealth',
shorten >=1pt,
auto,
node distance=5cm,
thick,
transform shape,
%main state/.style={}
%state/.style={font=\sffamily\Large\bfseries}
buffer/.style={rectangle,draw,minimum width=2cm,minimum height=1cm,align=center}
]
\node[state,initial,accepting,minimum size=2cm] (1) {Idle};
\node[state] (2) [right of=1] {Select Fuel};
\node[state] (3) [right of=2] {Payment};
\end{tikzpicture}
\end{figure}
\end{document}
|
|
example_70012_main
|
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{automata,arrows}
\begin{document}
\begin{figure}
\hspace{-3cm}
\begin{tikzpicture}[
->,>=stealth',
shorten >=1pt,
auto,
node distance=5cm,
thick,
transform shape,
%main state/.style={}
%state/.style={font=\sffamily\Large\bfseries}
buffer/.style={rectangle,draw,minimum width=2cm,minimum height=1cm,align=center}
]
\node[state,initial,accepting,minimum size=2cm] (1) {Idle};
\node[state] (2) [right of=1] {Select Fuel};
\node[state] (3) [right of=2] {Payment};
\node[state] (4) [below right of=3] {Account};
\node[state] (5) [below left of=4]{PIN};
\node[state] (6) [below of=3]{Cash};
\node[state] (7) [left of=5]{Verify};
\node[state] (8) [left of=6]{Pump};
\node[state] (9) [left of=8]{Log};
% \node[buffer] (10) [left of=9]{buffer};
\begin{pgfinterruptboundingbox}
\path[every node/.style={font=\sffamily\scriptsize}]
(1) edge [bend left] node[above] {PressStar/} (2)
(2) edge [bend left] node[above] {PressStar/} (3)
edge [loop above] node[above] {Press2/FuelSelect95} (2)
edge [loop left] node [below,yshift=-8pt] {Press1/FuelSelect92} (2)
edge [loop right] node [below,yshift=-8pt] {Press3/FuelSelectOC} (2)
(3) edge [bend left] node[right] {ChooseAcc/} (4)
edge [bend left] node[left] {InstertCash/IncCash} (6)
(4) edge [bend left] node[right] {NumberEnter6/StoreAccNo} (5)
edge [bend left=130,looseness=2] node[right] {TimeOut15/} (1)
(5) edge [bend left] node[below] {NumberEnter4/StorePIN} (7)
edge [bend left] node[above,yshift=36pt,xshift=-28pt] {TimeOut15/} (1)
(6) edge [loop below] node {InsertCash/IncCash} (6)
edge [bend left] node { } (8)
(7) edge [bend left] node[right] {NotVerified/} (1)
edge [bend left] node[right,yshift=-5pt] {Verified/} (8)
(8) edge [bend left] node {LeftOL,ReachMaxFuel,TimeOut15/} (9)
(9) edge [bend left] node {PressStar/} (1);
\end{pgfinterruptboundingbox}
\end{tikzpicture}
\end{figure}
\end{document}
|
|
example_70013_main
|
\documentclass{article}
\usepackage[a6paper]{geometry}% just for the example
\usepackage{ifthen}
\usepackage[
scale=1,
opacity=1,
angle=0
]{background}
% command for modular arithmetic
\def\truncdiv#1#2{((#1-(#2-1)/2)/#2)}
\def\moduloop#1#2{(#1-\truncdiv{#1}{#2}*#2)}
\def\modulo#1#2{\number\numexpr\moduloop{#1}{#2}\relax}
% definitions of colors to be used
\definecolor{color1}{RGB}{11,64,176}% blue
\definecolor{color2}{RGB}{133,23,24}% red
\definecolor{color3}{RGB}{107,107,107}% red
% command for the footer
\newcommand\Footer{%
\begin{tikzpicture}[remember picture,overlay]
\fill[color1]
([yshift=20pt]current page.south west)
rectangle
(current page.south east);
\end{tikzpicture}%
}
% header for pages congrunent with 3 modulo 0
\newcommand\Headerz{%
\begin{tikzpicture}[remember picture,overlay]
\fill[color2]
(current page.north west) --
(current page.north east) --
(current page.east) --
([xshift=-50pt,yshift=-25pt]current page.north east) --
([yshift=-25pt]current page.north west) --
cycle;
\fill[color3]
(current page.east) --
([xshift=-50pt,yshift=20pt]current page.south east) --
([yshift=20pt]current page.south east) --
cycle;
\end{tikzpicture}%
}
% header for pages congrunent with 3 modulo 1
\newcommand\Headero{%
\begin{tikzpicture}[remember picture,overlay]
\fill[color2]
(current page.north west) --
(current page.north east) --
([yshift=-70pt]current page.north east)
to[out=160,in=20]
([yshift=-70pt]current page.north west) --
cycle;
\end{tikzpicture}%
}
% header for pages congrunent with 3 modulo 2
\newcommand\Headert{%
\begin{tikzpicture}[remember picture,overlay]
\fill[color2]
(current page.north west)
rectangle
([yshift=-25pt]current page.north east);
\end{tikzpicture}%
}
% include common footer
\backgroundsetup{contents=\Footer}
% add header depending on the value of the page modulo 3
\AddEverypageHook{%
\ifthenelse{\modulo{\value{page}}{3}=0}
{\backgroundsetup{contents={\Headerz}}}
{%
\ifthenelse{\modulo{\value{page}}{3}=1}
{\backgroundsetup{contents={\Headero}}}
{%
\ifthenelse{\modulo{\value{page}}{3}=2}
{\backgroundsetup{contents={\Headert}}}
{}
}%
}
\BgMaterial
}
\begin{document}
text\clearpage
text\clearpage
text\clearpage
text\clearpage
text\clearpage
text\clearpage
text\clearpage
text\clearpage
text\clearpage
text\clearpage
text\clearpage
text
\end{document}
|
|
example_70014_combination_1
|
\documentclass[tikz]{standalone}
\usepackage{ClearSans}
\usepackage[T1]{fontenc}
\usepackage{tikz}
%
\usetikzlibrary{fit,backgrounds}
%
\def\gamefont{\bfseries\sffamily}
%
\definecolor{grid color}{HTML}{BBADA0}
\definecolor{pixel 0}{HTML}{CCC0B3}
\definecolor{pixel 2}{HTML}{EEE4DA}
\definecolor{pixel 4}{HTML}{EDE0C8}
\definecolor{pixel 8}{HTML}{F2B179}
\definecolor{pixel 16}{HTML}{F59563}
\definecolor{pixel 32}{HTML}{F67C5F}
\definecolor{pixel 64}{HTML}{F65E3B}
\definecolor{pixel 128}{HTML}{EDCF72}
\definecolor{pixel 256}{HTML}{EDCC61}
\definecolor{pixel 512}{HTML}{EDC850}
\definecolor{pixel 1024}{HTML}{EDC53F}
\definecolor{pixel 2048}{HTML}{EDC22E}
\definecolor{pixel 4096}{HTML}{3E3933}
%
\definecolor{small color}{HTML}{776E65}
\definecolor{big color}{HTML}{F9F6F2}
%
\tikzset{
case 2048 base/.style={
minimum size=9mm,rounded corners=.3mm,text=#1,inner sep=0,line width=0,
},
%
case 2048 Large/.style={font=\Large\gamefont,case 2048 base=#1},
case 2048 large/.style={font=\large\gamefont,case 2048 base=#1},
case 2048 normal/.style={font=\normalsize\gamefont,case 2048 base=#1},
%
case 2048 0/.style={case 2048 Large=black,fill=pixel 0,node contents={}},
case 2048 2/.style={case 2048 Large=small color,fill=pixel 2,node contents={2}},
case 2048 4/.style={case 2048 Large=small color,fill=pixel 4,node contents={4}},
case 2048 8/.style={case 2048 Large=big color,fill=pixel 8,node contents={8}},
case 2048 16/.style={case 2048 Large=big color,fill=pixel 16,node contents={16}},
case 2048 32/.style={case 2048 Large=big color,fill=pixel 32,node contents={32}},
case 2048 64/.style={case 2048 Large=big color,fill=pixel 64,node contents={64}},
case 2048 128/.style={case 2048 large=big color,fill=pixel 128,node contents={128}},
case 2048 256/.style={case 2048 large=big color,fill=pixel 256,node contents={256}},
case 2048 512/.style={case 2048 large=big color,fill=pixel 512,node contents={512}},
case 2048 1024/.style={case 2048 normal=big color,fill=pixel 1024,node contents={1024}},
case 2048 2048/.style={case 2048 normal=big color,fill=pixel 2048,node contents={2048}},
case 2048 4096/.style={case 2048 normal=big color,fill=pixel 4096,node contents={4096}},
}
\begin{document}
\begin{tikzpicture}
\def\pixels{
{2,4,0,2048},
{8,0,2,4096},
{8,16,32,64},
{1024,512,256,128},
}
\foreach \line [count=\y] in \pixels {
\foreach \pix [count=\x] in \line {
\path (\x,-\y) node[name=c2048-\x-\y,case 2048 \pix];
}
}
\begin{scope}[on background layer]
\node[fill=grid color,fit=(c2048-1-1)(c2048-4-4),
inner sep=1mm,rounded corners=.3mm]{};
\end{scope}
\end{tikzpicture}
\end{document}
|
|
example_70014_main
|
\documentclass[tikz]{standalone}
\usepackage{ClearSans}
\usepackage[T1]{fontenc}
\usepackage{tikz}
%
\usetikzlibrary{fit,backgrounds}
%
\def\gamefont{\bfseries\sffamily}
%
\definecolor{grid color}{HTML}{BBADA0}
\definecolor{pixel 0}{HTML}{CCC0B3}
\definecolor{pixel 2}{HTML}{EEE4DA}
\definecolor{pixel 4}{HTML}{EDE0C8}
\definecolor{pixel 8}{HTML}{F2B179}
\definecolor{pixel 16}{HTML}{F59563}
\definecolor{pixel 32}{HTML}{F67C5F}
\definecolor{pixel 64}{HTML}{F65E3B}
\definecolor{pixel 128}{HTML}{EDCF72}
\definecolor{pixel 256}{HTML}{EDCC61}
\definecolor{pixel 512}{HTML}{EDC850}
\definecolor{pixel 1024}{HTML}{EDC53F}
\definecolor{pixel 2048}{HTML}{EDC22E}
\definecolor{pixel 4096}{HTML}{3E3933}
%
\definecolor{small color}{HTML}{776E65}
\definecolor{big color}{HTML}{F9F6F2}
%
\tikzset{
case 2048 base/.style={
minimum size=9mm,rounded corners=.3mm,text=#1,inner sep=0,line width=0,
},
%
case 2048 Large/.style={font=\Large\gamefont,case 2048 base=#1},
case 2048 large/.style={font=\large\gamefont,case 2048 base=#1},
case 2048 normal/.style={font=\normalsize\gamefont,case 2048 base=#1},
%
case 2048 0/.style={case 2048 Large=black,fill=pixel 0,node contents={}},
case 2048 2/.style={case 2048 Large=small color,fill=pixel 2,node contents={2}},
case 2048 4/.style={case 2048 Large=small color,fill=pixel 4,node contents={4}},
case 2048 8/.style={case 2048 Large=big color,fill=pixel 8,node contents={8}},
case 2048 16/.style={case 2048 Large=big color,fill=pixel 16,node contents={16}},
case 2048 32/.style={case 2048 Large=big color,fill=pixel 32,node contents={32}},
case 2048 64/.style={case 2048 Large=big color,fill=pixel 64,node contents={64}},
case 2048 128/.style={case 2048 large=big color,fill=pixel 128,node contents={128}},
case 2048 256/.style={case 2048 large=big color,fill=pixel 256,node contents={256}},
case 2048 512/.style={case 2048 large=big color,fill=pixel 512,node contents={512}},
case 2048 1024/.style={case 2048 normal=big color,fill=pixel 1024,node contents={1024}},
case 2048 2048/.style={case 2048 normal=big color,fill=pixel 2048,node contents={2048}},
case 2048 4096/.style={case 2048 normal=big color,fill=pixel 4096,node contents={4096}},
}
\begin{document}
\begin{tikzpicture}
\def\pixels{
{2,4,0,2048},
{8,0,2,4096},
{8,16,32,64},
{1024,512,256,128},
}
\foreach \line [count=\y] in \pixels {
\foreach \pix [count=\x] in \line {
\path (\x,-\y) node[name=c2048-\x-\y,case 2048 \pix];
}
}
\begin{scope}[on background layer]
\node[fill=grid color,fit=(c2048-1-1)(c2048-4-4),
inner sep=1mm,rounded corners=.3mm]{};
\end{scope}
\end{tikzpicture}
\end{document}
|
|
example_70015_combination_1
|
\documentclass[tikz,border=10pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{arrows,decorations.markings,plotmarks}
\begin{document}
\begin{tikzpicture}[
middlearrow/.style 2 args={
decoration={
markings,
mark=at position 0.5 with {\arrow{triangle 45}, \node[#1] {#2};}
},
postaction={decorate}
},
my mark/.style={
decoration={
markings,
mark=at position 0.5 with{\color{red}\pgfuseplotmark{x}},
},
postaction=decorate,
}
]
\draw[middlearrow={below}{+},my mark] (0,0) -- (1,0);
\end{tikzpicture}
\end{document}
|
|
example_70015_combination_2
|
\documentclass[tikz,border=10pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{arrows,decorations.markings,plotmarks}
\begin{document}
\begin{tikzpicture}[
middlearrow/.style 2 args={
decoration={
markings,
mark=at position 0.5 with {\arrow{triangle 45}, \node[#1] {#2};}
},
postaction={decorate}
},
my mark/.style={
decoration={
markings,
mark=at position 0.5 with{\color{red}\pgfuseplotmark{x}},
},
postaction=decorate,
}
]
\draw[middlearrow={below}{+},my mark] (0,0) -- (1,0);
\draw[middlearrow={below}{+},my mark] (0,-1) -- (2,-1);
\end{tikzpicture}
\end{document}
|
|
example_70015_combination_3
|
\documentclass[tikz,border=10pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{arrows,decorations.markings,plotmarks}
\begin{document}
\begin{tikzpicture}[
middlearrow/.style 2 args={
decoration={
markings,
mark=at position 0.5 with {\arrow{triangle 45}, \node[#1] {#2};}
},
postaction={decorate}
},
my mark/.style={
decoration={
markings,
mark=at position 0.5 with{\color{red}\pgfuseplotmark{x}},
},
postaction=decorate,
}
]
\draw[middlearrow={below}{+},my mark] (0,0) -- (1,0);
\draw[middlearrow={below}{+},my mark] (0,-1) -- (2,-1);
\draw[middlearrow={below}{+},my mark] (0,-2) -- (4,-2);
\end{tikzpicture}
\end{document}
|
|
example_70015_main
|
\documentclass[tikz,border=10pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{arrows,decorations.markings,plotmarks}
\begin{document}
\begin{tikzpicture}[
middlearrow/.style 2 args={
decoration={
markings,
mark=at position 0.5 with {\arrow{triangle 45}, \node[#1] {#2};}
},
postaction={decorate}
},
my mark/.style={
decoration={
markings,
mark=at position 0.5 with{\color{red}\pgfuseplotmark{x}},
},
postaction=decorate,
}
]
\draw[middlearrow={below}{+},my mark] (0,0) -- (1,0);
\draw[middlearrow={below}{+},my mark] (0,-1) -- (2,-1);
\draw[middlearrow={below}{+},my mark] (0,-2) -- (4,-2);
\end{tikzpicture}
\end{document}
|
|
example_70016_combination_2
|
\documentclass{standalone}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\clip (-1,-2) rectangle (2,2);
\draw [double,double distance=3pt]
plot [smooth cycle] coordinates{(0.5,0) (1,0) (4,0)};
\end{tikzpicture}
\end{document}
|
|
example_70016_combination_3
|
\documentclass{standalone}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\clip (-1,-2) rectangle (2,2);
\draw [double,double distance=3pt]
plot [smooth cycle] coordinates{(0.5,0) (1,0) (4,0)};
\draw [double,double distance=3pt]
plot [smooth cycle] coordinates{(-4,0) (0,0) (.5,0)}
plot [smooth cycle] coordinates{(0,0) (0,1) (1,1) (1,-1) (0,-1)};
\end{tikzpicture}
\end{document}
|
|
example_70016_combination_1
|
\documentclass{standalone}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\clip (-1,-2) rectangle (2,2);
\end{tikzpicture}
\end{document}
|
|
example_70016_main
|
\documentclass{standalone}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\clip (-1,-2) rectangle (2,2);
\draw [double,double distance=3pt]
plot [smooth cycle] coordinates{(0.5,0) (1,0) (4,0)};
\draw [double,double distance=3pt]
plot [smooth cycle] coordinates{(-4,0) (0,0) (.5,0)}
plot [smooth cycle] coordinates{(0,0) (0,1) (1,1) (1,-1) (0,-1)};
\end{tikzpicture}
\end{document}
|
|
example_70017_combination_1
|
\documentclass[tikz,border=10pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{arrows,decorations.markings,plotmarks}
\begin{document}
\begin{tikzpicture}[
middlearrow/.style 2 args={
decoration={
markings,
mark=at position 0.5 with {\arrow[xshift=3.333pt]{triangle 45}, \node[#1] {#2};}
},
postaction={decorate}
},
]
\draw[middlearrow={below}{+}] (0,0) -- (1,0);
\end{tikzpicture}
\end{document}
|
|
example_70017_combination_2
|
\documentclass[tikz,border=10pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{arrows,decorations.markings,plotmarks}
\begin{document}
\begin{tikzpicture}[
middlearrow/.style 2 args={
decoration={
markings,
mark=at position 0.5 with {\arrow[xshift=3.333pt]{triangle 45}, \node[#1] {#2};}
},
postaction={decorate}
},
]
\draw[middlearrow={below}{+}] (0,0) -- (1,0);
\draw[middlearrow={below}{+}] (0,-1) -- (2,-1);
\end{tikzpicture}
\end{document}
|
|
example_70017_combination_3
|
\documentclass[tikz,border=10pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{arrows,decorations.markings,plotmarks}
\begin{document}
\begin{tikzpicture}[
middlearrow/.style 2 args={
decoration={
markings,
mark=at position 0.5 with {\arrow[xshift=3.333pt]{triangle 45}, \node[#1] {#2};}
},
postaction={decorate}
},
]
\draw[middlearrow={below}{+}] (0,0) -- (1,0);
\draw[middlearrow={below}{+}] (0,-1) -- (2,-1);
\draw[middlearrow={below}{+}] (0,-2) -- (4,-2);
\end{tikzpicture}
\end{document}
|
|
example_70017_main
|
\documentclass[tikz,border=10pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{arrows,decorations.markings,plotmarks}
\begin{document}
\begin{tikzpicture}[
middlearrow/.style 2 args={
decoration={
markings,
mark=at position 0.5 with {\arrow[xshift=3.333pt]{triangle 45}, \node[#1] {#2};}
},
postaction={decorate}
},
]
\draw[middlearrow={below}{+}] (0,0) -- (1,0);
\draw[middlearrow={below}{+}] (0,-1) -- (2,-1);
\draw[middlearrow={below}{+}] (0,-2) -- (4,-2);
\end{tikzpicture}
\end{document}
|
|
example_70018_combination_2
|
\documentclass{article}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\node[draw] (A) {$t$};
\node[draw] at (2,0) (B) {$t_{l_{m}}$};
\end{tikzpicture}
\end{document}
|
|
example_70018_combination_3
|
\documentclass{article}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\node[draw] (A) {$t$};
\node[draw] at (2,0) (B) {$t_{l_{m}}$};
\draw[red] (A.south east) -- (B.south west);
\end{tikzpicture}
\end{document}
|
|
example_70018_combination_4
|
\documentclass{article}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\node[draw] (A) {$t$};
\node[draw] at (2,0) (B) {$t_{l_{m}}$};
\draw[red] (A.south east) -- (B.south west);
\begin{scope}[xshift=3cm]
\node[draw,text depth=0.35ex] (A) {$t$};
\node[draw,text depth=0.35ex] at (2,0) (B) {$t_{l_{m}}$};
\draw (A.south east) -- (B.south west);
\end{scope}
\end{tikzpicture}
\end{document}
|
|
example_70018_combination_1
|
\documentclass{article}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\node[draw] (A) {$t$};
\end{tikzpicture}
\end{document}
|
|
example_70018_main
|
\documentclass{article}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\node[draw] (A) {$t$};
\node[draw] at (2,0) (B) {$t_{l_{m}}$};
\draw[red] (A.south east) -- (B.south west);
\begin{scope}[xshift=3cm]
\node[draw,text depth=0.35ex] (A) {$t$};
\node[draw,text depth=0.35ex] at (2,0) (B) {$t_{l_{m}}$};
\draw (A.south east) -- (B.south west);
\end{scope}
\end{tikzpicture}
\end{document}
|
|
example_70019_combination_1
|
\documentclass{article}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\node[anchor=south] (A) {\Huge A};
\end{tikzpicture}
\end{document}
|
|
example_70019_combination_2
|
\documentclass{article}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\node[anchor=south] (A) {\Huge A};
\node[anchor=south] at (2,0) (B) {B};
\end{tikzpicture}
\end{document}
|
|
example_70019_combination_5
|
\documentclass{article}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\node[anchor=south] (A) {\Huge A};
\node[anchor=south] at (2,0) (B) {B};
\draw[red] (A) -- (B);
\draw (A) -- (B.west|-A);
\draw (A.east|-B.west) -- (B.west);
\end{tikzpicture}
\end{document}
|
End of preview. Expand
in Data Studio
README.md exists but content is empty.
- Downloads last month
- 10