在底部安装一个小菱形,并在其上放置一个圆形子弹

在底部安装一个小菱形,并在其上放置一个圆形子弹

我想将一个底部带有圆形项目符号的小菱形(通过添加第二个箭头)附加到下图中:

\documentclass{article}
    \usepackage{amsmath}
    \usepackage{tikz-cd}
    \usetikzlibrary{shapes.geometric}
    \begin{document}
 \[
      \begin{tikzcd}[sep = 2em,
        /tikz/rhombus/.style={shape=diamond,draw,minimum size=2em},
        execute at end picture={
          \draw [densely dashed] (foo.north west) -- (foo.north east);
          \draw [densely dashed] (foo.south west) -- (foo.south east);
        }
        ]
     |[rhombus,draw,minimum size=3em, alias=foo]|{}\arrow[r,shorten >=0.5em,shorten <=0.5em] & 
     |[rhombus,append after command={\pgfextra{\let\myln\tikzlastnode}
     (\myln.north) node[anchor=south,rhombus] {}
     (\myln.south) node[anchor=north,rhombus] {}}]|{}\\
    \end{tikzcd}
    \]
\end{document}

任何帮助将不胜感激!

答案1

纯粹猜测……

在此处输入图片描述

\documentclass{article}
\usepackage{tikz-cd}
\usetikzlibrary{arrows.meta,
                shapes.geometric}
\begin{document}
\[
        \begin{tikzcd}[sep = 2em,
     every arrow/.append style = {-{Straight Barb[scale=0.8]}},
      shorten <>/.style = {shorten >=#1,shorten <=#1},
       /tikz/dot/.style = {circle, fill, inner sep=2pt, node contents={}},
   /tikz/rhombus/.style = {diamond, draw, minimum size=#1, outer sep=0pt},
 /tikz/rhombus/.default = 2em,
 execute at end picture = {\draw [dash pattern=on 2pt off 1pt] 
                            (foo.north west) -- (foo.north east)
                            (foo.south west) -- (foo.south east);
                          }
                    ]
|[rhombus=3em, alias=foo]|{} \rar[shorten <>=1ex] 
    & |[rhombus,append after command={\pgfextra{\let\LN\tikzlastnode}
            (\LN.north) node[rhombus,above] {}
            (\LN.south) node[rhombus,below] {}
                                     }]|{}  \rar[shorten <>=1ex] 
        & |[rhombus,append after command={\pgfextra{\let\LN\tikzlastnode}
            (\LN.south) node[dot]
                                     }]|{}
        \end{tikzcd}
\]
\end{document}

相关内容