如何缩放多个 tikz 图像,使它们显示相同的大小

如何缩放多个 tikz 图像,使它们显示相同的大小

鉴于三幅图像

图1:

\documentclass[crop, tikz]{standalone}

\usetikzlibrary{arrows,%
    positioning,%
    shapes}

\begin{document}
    
    \begin{tikzpicture}[auto, node distance = 1cm, thick,
        every node/.style = {rectangle, rounded corners, draw, text width = 2cm, black, align = center, minimum height = 1cm}]
        
        \node (MD) {Managing Directors};
        
        \node[below=of MD] (Design) {Design};
        \node[left=of Design] (Project) {Project};
        \node[left=of Project] (Sales) {Sales};
        \node[right=of Design] (Production) {Production};
        \node[right=of Production] (Service) {Service};
        
        \draw (MD) -- (Design);
        
        \coordinate[below  = 0.5cm of MD] (Connection);
        
        \draw (Connection) -| (Sales);
        
        \draw (Connection) -| (Service);
        
        \coordinate[above  = 0.5cm of Project] (ConnectionProject);
        
        \draw (ConnectionProject) -- (Project);
        
        \coordinate[above  = 0.5cm of Production] (ConnectionProduction);
        
        \draw (ConnectionProduction) -- (Production);
        
    \end{tikzpicture}
    
\end{document}

图2:

\documentclass[crop, tikz]{standalone}

\usetikzlibrary{arrows,%
    positioning,%
    shapes}
\tikzset{%
    Block/.style ={rectangle, rounded corners, draw, text width = 2cm, align = center, minimum height = 1cm}}

\begin{document}
    
    \begin{tikzpicture}[auto, node distance = 1cm, thick]
        
        \node[Block] (MD) {Managing Directors};
        
        \node[Block, below=of MD] (Project) {Project};
        
        \node[Block, below=of Project] (IT) {IT};
        
        \draw[-latex'] (Project) -- (MD);
        
        \draw[dashed] (Project) -- (IT);
        
    \end{tikzpicture}
    
\end{document}

和图3:

\documentclass[crop, tikz]{standalone}

\usetikzlibrary{arrows,%
    positioning,%
    shapes}
\tikzset{%
    Block/.style ={rectangle, rounded corners, draw, text width = 2.5cm, align = center, minimum height = 1.5cm}}

\begin{document}
    
    \begin{tikzpicture}[auto, node distance = 1cm, thick]
        
        \node[Block] (KP) {process};
        
        \node[Block, below=of KP] (VA) {sales};
        
        \node[Block, below left=of VA] (EL) {delivery};
        
        \node[Block, below right=of VA] (UeL) {examination};
        
        \draw[-latex'] (KP) -- (VA);
        
        \coordinate[below=0.25cm of VA] (Connection);
        
        \draw (VA) -- (Connection);
        
        \draw[-latex'] (Connection) -| (EL);
        
        \draw[-latex'] (Connection) -| (UeL);
        
        \draw[-latex'] (EL) -- (UeL) node [midway, above] {manual};
        
        \coordinate[below=3cm of VA] (Connection2);
        
        \draw[dashed, -latex'] (EL) |- (Connection2) -| (UeL);
        
        \node[below=3cm of VA, above] (digital) {digital};
        
    \end{tikzpicture}
    
\end{document}

我怎样才能将它们添加到文档中以使它们看起来具有相同的大小(所有三个图像中所有节点的相同大小是节点宽度),因为我无法将它们全部设置为原始大小,因为 Img1 太宽,需要缩小:

\documentclass{scrreprt}

\usepackage{graphicx}

\begin{document}
    
    \begin{figure}[htb]
        \centering
        \includegraphics[width=\textwidth]{Img1.pdf}
    \end{figure}
    
    \begin{figure}[htb]
        \centering
        \includegraphics{Img2.pdf}
    \end{figure}
    
    \begin{figure}[htb]
        \centering
        \includegraphics{Img3.pdf}
    \end{figure}
    
\end{document}

例如,是否有可能了解 Img1 的缩放因子并使用它分别缩放 Img2 和 Img3?

相关内容