화살표 상자 정렬

화살표 상자 정렬

아래 그림에서 "화살표 상자"를 수직으로 정렬해야 하나요? 그래서 두 가지 질문이 있습니다.

  1. 적용된 스타일의 "내부 셉" 레지스터 값과 경계 및 연결 선 두께 레지스터 값을 읽는 방법은 무엇입니까?
  2. "화살표 상자"의 화살표 끝과 뾰족한 선 가장자리 사이의 거리를 전체적으로 조정하는 방법이 있습니까?

코드 실행 결과

MWE:

\documentclass{standalone}
\usepackage[utf8]{inputenc}
\usepackage{pgfplots}
\usetikzlibrary{plotmarks}
\usetikzlibrary{arrows.meta,bending}
\usetikzlibrary{shapes}
\usetikzlibrary{positioning}

\usetikzlibrary{backgrounds}            %| for arangement objects on layers
\pgfdeclarelayer{myback}                %|
\pgfsetlayers{background,myback,main}   %|

\begin{document}
\def\mtw{3.0}       % box width
\def\pal{2.5}       % perturbation arrow length
\def\ptw{4.0}       % side box width

\begin{tikzpicture}[
    line join=round,
    every node/.style={font=\footnotesize,align=center},
    process/.style={text width=\mtw cm,fill=white,draw},
    perturbation/.style={draw,right=1pt,arrow box,arrow box arrows={west:\pal cm},thin,text width=\ptw cm},
    node distance=8ex,
    flux/.style={very thick,-{Stealth[flex=1.2]}}
    ]

    \node (n1) at (0,0) [anchor=south,process] {initial conditions};
    \node (n2) [below=of n1,process] {first stage of the process};
    \pgfmathparse{(\pal cm-0.5*\mtw cm)}        % shorter arrow length
    %\pgfmathparse{(\pal cm-0.5*\mtw cm-0.3333em)}  % shorter arrow length; 0.3333em is "inner sep" value
    %\pgfmathparse{(\pal cm-0.5*\mtw cm-\mydist cm)}    % shorter arrow length; how to put into \mydist "inner sep" and line widths?
    \edef\pas{\pgfmathresult pt}
    \begin{pgfonlayer}{myback}
        \node [perturbation,right=1pt of n1.east,arrow box arrows={west:\pas}]
              {perturbations of initial conditions};
        \draw [flux] (n1) -- (n2)
              node [midway,perturbation] {perturbations of external conditions};
    \end{pgfonlayer}
\end{tikzpicture}
\end{document}

관련 정보