|
\documentclass{article}
|
|
\usepackage{tikz}
|
|
\usetikzlibrary{shapes,arrows}
|
|
\usepackage{graphicx}
|
|
|
|
|
|
\begin{document}
|
|
|
|
% 1:
|
|
\tikzstyle{block} = [draw, fill=gray!20, rectangle,
|
|
minimum height=3em, minimum width=6em]
|
|
\tikzstyle{sum} = [draw, fill=gray!20, circle, node distance=1cm]
|
|
\tikzstyle{input} = [coordinate]
|
|
\tikzstyle{output} = [coordinate]
|
|
\tikzstyle{pinstyle} = [pin edge={to-,thin,black}]
|
|
|
|
% The block diagram code is probably more verbose than necessary
|
|
\begin{tikzpicture}[auto, node distance=2cm,>=latex']
|
|
%2: We start by placing the blocks
|
|
\node [input, name=input] {};
|
|
\node [sum, right of=input] (sum) {};
|
|
\node [block, right of=sum] (controller) {Texto};
|
|
\node [block, right of=controller] (element) {Some};
|
|
\end{tikzpicture}
|
|
|
|
|
|
\end{document}
|