
我在這裡找到如何進行調解:使用 LaTeX 顯示中介分析(也許是 TikZ-pfg?)
我想保留像我所展示的調解那樣放置價值觀的可能性。
非常感謝。
編輯:我重用了連結中給定的程式碼,但沒有設法使箭頭在變數 a (時間壓力)和 b (家庭衝突)之間移動。我考慮過在 a 和 b 之間添加一個不可見的變數 c ,這樣我就可以從 m 到 c 創建一個節點,但隨後它會添加一個正方形或圓形,我更喜歡一條直線。然後我嘗試將它與我發現的這個調節模型混合起來主持人圖 Tikz 但據我了解,它使用另一個包(我不知道你是否可以混合使用它們),並且你必須選擇(使用邊緣標籤={coordinatepos=0.8}])帶有箭頭的鏈接的位置,但如果我這樣做,它也會影響從a 到m 的起點(不再是從a.east 開始)。我瀏覽了 tikzpgfmanual.pdf 並找到了其他方法,但我無法將其與我最初討論的中介模板混合...
非常感謝您的幫助
答案1
這應該可以解決你的問題。下次,請按照 @SebGlav 的建議添加 MWE。
\documentclass[tikz,border=4]{standalone}
\usetikzlibrary{arrows.meta}
\usetikzlibrary{calc}
\usetikzlibrary{positioning}
\begin{document}
\begin{tikzpicture}[
node distance=2cm,
every node/.style={
inner ysep=0.5pt,
font=\sffamily
}
]
\node (m) {Psychological detachment};
\node[below left=of m] (a) {Time pressure};
\node[below right=of m] (b) {Home conflict};
\draw[<->,>=Latex] (b) -- (a.east) -- (m.south west);
\draw[-Latex] (m) -- ($(a)!.5!(b)!.15!(m)$);
\end{tikzpicture}
\end{document}