TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to draw the following block diagram using pgf/TikZ. Actually I am struck at getting the two inputs to the first block horizontal.

block diagram

What is the best way to draw the above diagram using pgf/TikZ.

share|improve this question

One possibility:

\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{positioning}

\begin{document}

\begin{tikzpicture}[box/.style={draw,rounded corners,text width=2.5cm,align=center}]
\node[box] (a) {Psychoacustic Model};
\node[left=of a.170,font=\bfseries] (aux1) {Reference};
\node[left=of a.190,font=\bfseries] (aux2) {Degraded};
\node[box,right=of a] (b) {Cognitive Model};
\node[right=of b,font=\bfseries] (c) {Score};
\draw[->] (aux1) -- (a.170);
\draw[->] (aux2) -- (a.190);
\draw[->] (a) -- (b);
\draw[->] (b) -- (c);
\end{tikzpicture}

\end{document}

enter image description here

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.