我的身材有两个问题。我的身材是这样的:
我希望不是只有一个数字,而是三个数字连成一排(见红色圆圈)。我还尝试在圆圈下方添加箭头:“减法否定”和“满足”,如下图红色所示:
我的序言如下:
\documentclass[margin=10pt]{standalone}
\usepackage[lf]{MinionPro}
\usepackage{tikz-cd}
\usetikzlibrary{shapes.geometric}
\begin{document}
\begin{tikzcd}[cells={nodes={%
,ellipse
,minimum width=4.5cm
,minimum height=1.5cm
,draw
,align=center
}}
,every arrow/.append style={-LaTeX, >=LaTeX}
,row sep=2cm
,column sep=2cm
]
Mindset
\arrow{dr}[swap]{37,2}
\arrow{drr}{39,2}
&[-4cm] & \\
& \begin{tabular}{@{}c@{}}Subtractive\\ disconfirmation\end{tabular} \arrow{r}{40,4} & Satisfy\\
\begin{tabular}{@{}c@{}}General\\ behaviour\end{tabular}
\arrow{ur}{17,2}
\arrow{urr}[swap]{50,1}
& &
\end{tikzcd}
\end{document}
我将非常感激任何帮助!
答案1
代码:
\documentclass[margin=10pt]{standalone}
\usepackage{tikz-cd}
\usetikzlibrary{shapes.geometric}
\begin{document}
\begin{tikzcd}[cells={nodes={%
,ellipse
,minimum width=4.5cm
,minimum height=1.5cm
,draw
,align=center
}}
,every arrow/.append style={-LaTeX, >=LaTeX}
,row sep=2cm
,column sep=2cm,
execute at end picture={
\draw[red]
(satisfy.south) --
++(0pt,-5cm)
node[below,text=black,font=\scriptsize] {$\begin{array}{c} 39,2 \\ 12,6 \\ 3,35\end{array}$};
\draw[red]
(subtractive.south) --
++(0pt,-5cm)
node[below,text=black,font=\scriptsize] {$\begin{array}{c} 39,2 \\ 12,6 \\ 3,35\end{array}$};
}
]
Mindset
\arrow{dr}[swap]{37,2}
\arrow{drr}{\begin{array}{c} 39,2 \\ 12,6 \\ 3,35\end{array}}
&[-4cm] & \\
& |[alias=subtractive]|\begin{tabular}{@{}c@{}}Subtractive\\ disconfirmation\end{tabular} \arrow{r}{40,4} & |[alias=satisfy]|Satisfy\\
\begin{tabular}{@{}c@{}}General\\ behaviour\end{tabular}
\arrow{ur}{17,2}
\arrow{urr}[swap]{50,1}
& &
\end{tikzcd}
\end{document}
解释
为了获得多行标签,我只需使用
array
。为了绘制箭头,我使用
alias
键来命名“Satisfy”和“Subtractive”节点,并使用execute at end picture
末尾\draw
有两个节点的线条来显示所需的文本。
答案2
\documentclass[margin=10pt]{standalone}
%\usepackage[lf]{MinionPro}
\usepackage{tikz-cd}
\usetikzlibrary{shapes.geometric}
\usepackage{stackengine}
\begin{document}
\begin{tikzcd}[cells={nodes={%
,ellipse
,minimum width=4.5cm
,minimum height=1.5cm
,draw
,align=center
}}
,every arrow/.append style={-LaTeX, >=LaTeX}
,row sep=2cm
,column sep=2cm
]
Mindset
\arrow{dr}[swap]{\Shortstack[c]{37,2 BBB CCC}}%<---
\arrow{drr}{39,2}
&[-4cm] & \\
& \begin{tabular}{@{}c@{}}Subtractive\\ disconfirmation\end{tabular} \arrow{r}{40,4} & Satisfy\\
\begin{tabular}{@{}c@{}}General\\ behaviour\end{tabular}
\arrow{ur}{17,2}
\arrow{urr}[swap]{50,1}
& &
\end{tikzcd}
\end{document}