多類別中的組合

多類別中的組合

我試圖弄清楚如何使用倫斯特的書“更高的操作,更高的類別”中使用的相同描述來繪製多個類別中的構圖。這是我想畫的:

在此輸入影像描述

我也做了類似的事情,但我做不到完全。這是我得到的

\documentclass{article}
\usepackage[all]{xy}
\begin{document}
    \xymatrix{
      a1 \ar@{-}[r] & \ar@{-}[dd] \ar@{-}[dr]  &            & \\
      a2 \ar@{-}[r] &                          & \ar@{-}[r] & a \\
      a3 \ar@{-}[r] & \ar@{-}[ur]              &            & 
    }
\end{document}

任何幫助將不勝感激。

答案1

在此輸入影像描述這是一張非常相似的圖片,可以進行相應的調整。在我的文檔中,所有線條都與三角形相鄰,但我不想包含所有序言;電線的位置是“手動”插入的,因此可以輕鬆更改。

\documentclass[11pt]{amsart}

\usepackage[a4paper,top=3cm,bottom=3cm,inner=3cm,outer=3cm]{geometry}
\usepackage{tikz}
\usetikzlibrary{positioning,decorations.markings,arrows.meta,calc,fit,quotes,cd,math,arrows,backgrounds,shapes.geometric}

\begin{document}


\begin{displaymath}
\begin{tikzpicture}[triangle/.style = {fill=gray!20, regular polygon, regular polygon sides=3}]
\path (0,0) node [triangle,draw,shape border rotate=-90,inner sep=0pt,label=178:$\vdots$] (a) {$\theta_n$} (0,4) node [triangle,draw,shape border rotate=-90,inner sep=0pt,label=178:$\vdots$] (b) {$\theta_1$} (3,2) node [triangle,draw,shape border rotate=-90,label=135:$a_1$,label=230:$a_n$,label=178:$\vdots$] (c) {$\theta$} (9,2) node [triangle,draw,shape border rotate=-90,inner sep=-25pt,label=178:$\vdots$] (d) {$\qquad\theta\circ(\theta_1,\ldots,\theta_n)$};
\draw [-] (a) .. controls +(right:2cm) and +(left:1cm).. (c.220);
\draw [-] (b) .. controls +(right:2cm) and +(left:1cm).. (c.140);
\draw [-] (d) to node [above] {$a$} (11.7,2);
\draw [-] (c) to node [above] {$a$} (4,2);
\draw [-] (7.2,3.5) to node [above] {$a_{11}$} (7.85,3.5);
\draw [-] (7.2,.5) to node [below] {$a_{nk_n}$} (7.85,.5);
\draw [-] (-.85,4.3) to node [above] {$a_{11}$} (-.3,4.3);
\draw [-] (-.85,3.6) to node [below] {$a_{1k_1}$} (-.3,3.6);
\draw [-] (-.85,0.3) to node [above] {$a_{n1}$} (-.3,0.3);
\draw [-] (-.85,-0.4) to node [below] {$a_{nk_n}$} (-.3,-0.4);
\node () at (5.5,2) {$\mapsto$};
\end{tikzpicture}
\end{displaymath}
\end{document}

相關內容