我想重现下图,因为其中一个含义是错误的,我想添加一些含义,看看是否可以在图中不出现两次某些术语(即“stetig”)。
我尝试使用 Tikz-cd。
我的问题:我如何全局定义所有箭头应为 Rightarrow 类型并且所有术语都在 parboxes 中?
梅威瑟:
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{tikz,mathtools}
\usetikzlibary{cd}
\begin{document}
\begin{tikzpicture}[baseline= (a).base]
\node[scale=.8] (a) at (0,0){
\begin{tikzcd}
\parbox{2cm}{\centering linear und kompakt} \arrow[r, Rightarrow] & \textrm{verstärkt stetig} \arrow[dl, Rightarrow] \arrow[d, Rightarrow] \arrow[r, Rightarrow, " V \textrm{ refl.}"] & \textrm{kompakt} \arrow[dl, Rightarrow] \arrow[dr, Rightarrow, bend left = 17] \\
\textrm{pseudomonoton} & \textrm{stetig} \arrow[dd, Rightarrow]& \parbox{2cm}{\centering \textsc{Lipschitz}-stetig} \arrow[l, Rightarrow] \arrow[r, Rightarrow] & \textrm{beschränkt} \arrow[ddl, Rightarrow] \\
\parbox{2cm}{\centering monoton und radialstetig} \arrow[u, Rightarrow] \arrow[dr, Rightarrow, "V \textrm{ refl.}"] & & \parbox{2cm}{\centering linear und monoton} \arrow[ul, Rightarrow] \\
\textrm{stetig} \arrow[dr, Rightarrow] & \textrm{demistetig} \arrow[d, Rightarrow, "V \textrm{ refl.}"]\arrow[r, Rightarrow] & \parbox{2cm}{\centering lokal beschränkt} & \\
\textrm{radialstetig} & \arrow[l, Rightarrow]\textrm{hemistetig} & \parbox{2cm}{\centering pseudomonoton und lokal beschränkt} \arrow[lu, Rightarrow] \\
\textrm{\textsc{Lipschitz}-stetig} \arrow[ru, Rightarrow] & \parbox{2cm}{\centering linear und beschränkt} \arrow[u, Rightarrow]
\end{tikzcd}};
\end{tikzpicture}
\end{document}
奖励:如果可能的话,我想消除结合两个术语的条目(如“pseudomonoton und lokal beschränkt”),并将它们作为单独的术语,并使箭头合并,如所述这里。
答案1
几乎你的每一个子问题都可以通过以下方式解决every
:
- 可以通过提供适当的选项
\parbox
来代替 es :(是 的简写),这也已在 leandriis 的精彩答案中使用,并且免除了您手动切换到文本模式。every node
nodes={text width=2cm,align=center}
nodes
every node/.append style
math mode=false
Rightarrow
通过说可以将箭头制成s 形every arrow/.append style={Rightarrow}
。- 通过添加带有 的箭头可以避免“stetig”节点的重复
crossing over
。
除此之外,您的方法嵌套tikzpicture
了,所以我删除了环境方法。
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{tikz,mathtools}
\usetikzlibrary{cd}
\begin{document}
\begin{tikzcd}[cells={nodes={text width=2cm,align=center}},
math mode=false,every arrow/.append style={Rightarrow},
every label/.append style={font=\normalsize}]
linear und kompakt \arrow[r] &
verst\"arkt stetig \arrow[dl] \arrow[d] \arrow[r, " $V$ refl."] &
kompakt \arrow[dl,Rightarrow] \arrow[dr, bend left = 17] \\
pseudomonoton &
stetig \arrow[dd,Rightarrow]
\arrow[ddd,crossing over,out=-50,in=30,shift left=2] &
\textsc{Lipschitz-stetig} \arrow[l,Rightarrow] \arrow[r] &
beschr\"ankt \arrow[ddl] \\
monoton und radialstetig \arrow[u] \arrow[dr, "$V$ refl."] & &
linear und monoton \arrow[ul] \\
%stetig \arrow[dr]
& demistetig \arrow[d, "$V$ refl."']\arrow[r] &
lokal beschr\"ankt & \\
radialstetig & \arrow[l] hemistetig &
pseudomonoton und lokal beschr\"ankt \arrow[lu] \\
Lipschitz-stetig \arrow[ru] & linear und beschr\"ankt \arrow[u]
\end{tikzcd}
\end{document}
或者使用\scriptsize
标签字体。
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{tikz,mathtools}
\usetikzlibrary{cd}
\begin{document}
\begin{tikzcd}[cells={nodes={text width=2cm,align=center}},
math mode=false,every arrow/.append style={Rightarrow},
every label/.append style={font=\scriptsize}]
linear und kompakt \arrow[r] &
verst\"arkt stetig \arrow[dl] \arrow[d] \arrow[r, " $V$ refl."] &
kompakt \arrow[dl,Rightarrow] \arrow[dr, bend left = 17] \\
pseudomonoton &
stetig \arrow[dd,Rightarrow]
\arrow[ddd,crossing over,out=-50,in=30,shift left=2] &
\textsc{Lipschitz-stetig} \arrow[l,Rightarrow] \arrow[r] &
beschr\"ankt \arrow[ddl] \\
monoton und radialstetig \arrow[u] \arrow[dr, "$V$ refl."] & &
linear und monoton \arrow[ul] \\
%stetig \arrow[dr]
& demistetig \arrow[d, "$V$ refl."']\arrow[r] &
lokal beschr\"ankt & \\
radialstetig & \arrow[l] hemistetig &
pseudomonoton und lokal beschr\"ankt \arrow[lu] \\
Lipschitz-stetig \arrow[ru] & linear und beschr\"ankt \arrow[u]
\end{tikzcd}
\end{document}
为了缩放图表,您可以使用scale diagram
下面定义的键。
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{tikz,mathtools}
\usetikzlibrary{cd} %,every label/.append style
\tikzcdset{scale diagram/.style={column sep=#1*2.4em,row sep=#1*1.8em,
nodes={scale=#1,transform shape}}}
\begin{document}
\begin{tikzcd}[scale diagram=0.7,cells={nodes={text width=2cm,align=center}},
math mode=false,every arrow/.append style={Rightarrow},
every label/.append style={font=\scriptsize},]
linear und kompakt \arrow[r] &
verst\"arkt stetig \arrow[dl] \arrow[d] \arrow[r, " $V$ refl."] &
kompakt \arrow[dl,Rightarrow] \arrow[dr, bend left = 17] \\
pseudomonoton &
stetig \arrow[dd,Rightarrow]
\arrow[ddd,crossing over,out=-50,in=30,shift left=2] &
\textsc{Lipschitz-stetig} \arrow[l,Rightarrow] \arrow[r] &
beschr\"ankt \arrow[ddl] \\
monoton und radialstetig \arrow[u] \arrow[dr, "$V$ refl."] & &
linear und monoton \arrow[ul] \\
%stetig \arrow[dr]
& demistetig \arrow[d, "$V$ refl."']\arrow[r] &
lokal beschr\"ankt & \\
radialstetig & \arrow[l] hemistetig &
pseudomonoton und lokal beschr\"ankt \arrow[lu] \\
Lipschitz-stetig \arrow[ru] & linear und beschr\"ankt \arrow[u]
\end{tikzcd}
\end{document}
您可能还希望交叉箭头位于顶部并带有光环。
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{tikz,mathtools}
\usetikzlibrary{cd}
\tikzcdset{scale diagram/.style={column sep=#1*2.4em,row sep=#1*1.8em,
nodes={scale=#1,transform shape}}}
\begin{document}
\begin{tikzcd}[scale diagram=0.7,cells={nodes={text width=2cm,align=center}},
math mode=false,every arrow/.append style={Rightarrow},
every label/.append style={font=\scriptsize},
execute at end picture={%\typeout{pft\tikzcdmatrixname}
\draw[/tikz/commutative diagrams/Rightarrow,
preaction={draw=white,line width=2mm}]
([xshift=-1.75em]\tikzcdmatrixname-2-2.south east) to[bend left=40]
([xshift=-0.5em]\tikzcdmatrixname-5-2.north east);}]
linear und kompakt \arrow[r] &
verst\"arkt stetig \arrow[dl] \arrow[d] \arrow[r, " $V$ refl."] &
kompakt \arrow[dl,Rightarrow] \arrow[dr, bend left = 17] \\
pseudomonoton &
stetig \arrow[dd,Rightarrow] &
\textsc{Lipschitz-stetig} \arrow[l,Rightarrow] \arrow[r] &
beschr\"ankt \arrow[ddl] \\
monoton und radialstetig \arrow[u] \arrow[dr, "$V$ refl."] & &
linear und monoton \arrow[ul] \\
%stetig \arrow[dr]
& demistetig \arrow[d, "$V$ refl."']\arrow[r] &
lokal beschr\"ankt & \\
radialstetig & \arrow[l] hemistetig &
pseudomonoton und lokal beschr\"ankt \arrow[lu] \\
Lipschitz-stetig \arrow[ru] & linear und beschr\"ankt \arrow[u]
\end{tikzcd}
\end{document}
答案2
以下内容可以作为起点:
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{positioning}
\begin{document}
\begin{tikzpicture}[every node/.style={rectangle,draw=none,align=center}]
\node(linkomp){linear und\\ kompakt};
\node(verststet)[right=1.5cm of linkomp]{verstärkt\\ stetig} edge [<-](linkomp);
\node(kom)[right= 1.5cm of verststet]{kompakt} edge [<-] node[above=5pt,name=CA] {V refl.} (verststet);
\node(pseudomon)[below=0.5cm of linkomp]{pseudomonoton}edge [<-] (verststet);
\end{tikzpicture}
\end{document}
答案3
托盘如下:
\documentclass{article}
\usepackage{tikz-cd}
\usepackage{mathtools}
\usepackage{makecell}
\begin{document}
\begin{tikzcd}[every cell/.append style={anchor=center,align=center,
font=\linespread{0.84}\selectfont,
inner sep=2pt},
column sep=large
]
\makecell{linear und\\ kompakt} \ar[r, Rightarrow]
& \makecell{verstärkt\\ stetig}
\ar[d, Rightarrow]
\ar[r, Rightarrow, "V\text{ refl.}"]
& \makecell{kompakt} \ar[dl, Rightarrow] \\
& \textrm{stetig} &
\end{tikzcd}
\end{document}