I created a block diagram but I don't know how to adjust some of the distances.
\documentclass[tikz, convert = false]{standalone}
\usepackage[utf8]{inputenx}% http://ctan.org/pkg/inputenx
% Euler for math | Palatino for rm | Helvetica for ss | Courier for tt
\renewcommand{\rmdefault}{ppl}% rm
\linespread{1.05}% Palatino needs more leading
\usepackage[scaled]{helvet}% ss // http://ctan.org/pkg/helvet
\usepackage{courier}% tt // http://ctan.org/pkg/courier
\usepackage{eulervm} % http://ctan.org/pkg/eulervm
% a better implementation of the euler package (not in gwTeX)
\normalfont%
\usepackage[T1]{fontenc}% http://ctan.org/pkg/fontenc
\usepackage{textcomp}% http://ctan.org/pkg/textcomp
\usetikzlibrary{shapes, arrows}
\begin{document}
\tikzstyle{block} = [draw, rectangle, minimum height = 2em, minimum width = 3em]
\tikzstyle{sum} = [draw, circle, node distance = 1.25cm]
\tikzstyle{input} = [coordinate]
\tikzstyle{output} = [coordinate]
\begin{tikzpicture}[auto, node distance = 2cm]
\node[input, name = input] {};
\node[sum, right of = input] (sum) {};
\node[sum, right of = sum] (s2) {};
\node[block, right of = s2, font = \scriptsize] (G) {$\frac{K}{Js + a}$};
\node[block, right of = G, font = \scriptsize] (H) {$\frac{1}{s}$};
\node[block, below of = G, font = \scriptsize] (F) {$K_f$};
\draw[-latex] (G) -- node[name = u] {} (H);
\draw[-latex] (u) |- (F);
\draw[-latex] (F) -| node[pos = 0.99] {$-$} node[pos = 1.105] {$+$} (s2);
\node[output, right of = H] (Y) {};
\draw[-latex] (input) -- node[font = \scriptsize] {$X$} (sum);
\draw[-latex] (sum) -- (s2);
\draw[-latex] (s2) -- (G);
\coordinate[below of = F, name = empty] {};
\draw[-latex] (H) -- node[name = Y, font = \scriptsize] {$Y$} (Y);
\draw (Y) |- (empty);
\draw[-latex] (empty) -| node[pos = 0.99] {$-$} node[pos = 1.05] {$+$} (sum);
\end{tikzpicture}
\end{document}
The code above produces

- I would like to decrease the distance between the feedback loop and K_f since there is a lot of wasted space.
- How can I center block G between s2 and H?





node distanceif you want to change the spacing between nodes. – Paul Gessler Mar 30 '14 at 02:13