pgf/TikZ 中具有兩個輸入的區塊

pgf/TikZ 中具有兩個輸入的區塊

我正在嘗試使用 pgf/TikZ 繪製以下框圖。實際上,我對將第一個區塊的兩個輸入水平化感到震驚。

框圖

使用 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}

在此輸入影像描述

相關內容