如何在节点内写入矩阵?

如何在节点内写入矩阵?

关于如何绘制此类图像,有什么建议吗?这个

答案1

只是为了好玩...我们可以把你的图像看作一个交换图。PS:结构

\usetikzlibrary{decorations.markings, arrows.meta}
\tikzset{
    marrow/.style={decoration={markings,mark=at position 0.55 with {\arrow{#1}}}, postaction=decorate}
}

取自tikz-cd 中的中间箭头由用户@Alenanno

\documentclass[a4paper,12pt]{article}
\usepackage{mathtools,amssymb}
\usepackage{tikz-cd}
\usetikzlibrary{decorations.markings, arrows.meta}
\tikzset{
    marrow/.style={decoration={markings,mark=at position 0.55 with {\arrow{#1}}}, postaction=decorate}
}
\begin{document}
\begin{tikzcd}[row sep=1pt, column sep=normal]
 & \left \{\begin{array}{cc}
x =  y \\
A =  B \end{array} \right.\\
\left \{\begin{array}{cc}
x =  y \\
A =  B \end{array} \right. \ar[rd, marrow=>,"f\neq 0"'{sloped, pos=0.5},no head] \ar[ru,marrow=>,"f=0"{sloped, pos=0.5},no head] &   \\
 & \left \{\begin{array}{cc}
x =  y \\
A =  B \end{array} \right.
\end{tikzcd}

\end{document}

在此处输入图片描述

相关内容