
私は pgf/TikZ を使用して次のブロック ダイアグラムを描画しようとしています。実際には、最初のブロックへの 2 つの入力を水平にすることに苦労しています。
pgf/TikZ を使用して上記の図を描く最適な方法は何ですか。
答え1
一つの可能性:
\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}