我想使用 Braids 包并在它的一些绘图中添加评估或共同评估图(我在一个刚性类别中工作)这是我迄今为止的 MWE
\documentclass{amsart}
\usepackage{lmodern}
\usepackage[T1]{fontenc}
\batchmode
\usepackage{tikz}
\usetikzlibrary{calc, positioning, braids}
\errorstopmode
\begin{document}
\centering
\def\nstrands{3}
\begin{tikzpicture}
\pic[local bounding box=my braid, braid/.cd,
number of strands = \nstrands, % number of strands
thick,
name prefix=braid]
{braid={s_2, s_1, s_2}}; %the generators
\draw[thick] % draws the top/bottom bars
([xshift=-1ex]my braid.north west) -- ([xshift=1ex]my braid.north east)
([xshift=-1ex]my braid.south west) -- ([xshift=1ex]my braid.south east);
%([xshift=1ex, yshift=4ex]my braid.north east) --;
% labels the top bar
\foreach \n in {1,...,\nstrands}{
\node at (braid-\n-s)[yshift = 0.3cm] {\n};
}
% labels the bottom bar
\foreach \n in {1,...,\nstrands}{
\node at (braid-\n-e)[yshift = -0.3cm] {\n};
}
\end{tikzpicture}
\end{document}
我真正想要的是将辫子 1 和辫子 2 之间的右下角交叉点替换为类似$\bigcup$
(共同评估图)的图形,或者将辫子 2 和辫子 3 之间的右上角交叉点替换为类似 的图形$\bigcap$
。这可能吗?
编辑这里有一张小图,说明我想要的是能够用 $\bigcup$ 或 $\bigcap$ 形状替换一些交叉点
答案1
这看上去像你想要的吗?
\documentclass{amsart}
% \url{https://tex.stackexchange.com/q/578846/86}
\usepackage{lmodern}
\usepackage[T1]{fontenc}
\batchmode
\usepackage{tikz}
\usetikzlibrary{calc, positioning, braids}
\errorstopmode
\begin{document}
\centering
\def\nstrands{3}
\begin{tikzpicture}
\pic[local bounding box=my braid, braid/.cd,
number of strands = \nstrands, % number of strands
thick,
name prefix=braid]
{braid={s_2, s_1, s_2}}; %the generators
\draw[thick] % draws the top/bottom bars
([xshift=-1ex]my braid.north west) -- ([xshift=1ex]my braid.north east)
([xshift=-1ex]my braid.south west) -- ([xshift=1ex]my braid.south east);
%([xshift=1ex, yshift=4ex]my braid.north east) --;
% labels the top bar
\foreach \n in {1,...,\nstrands}{
\node at (braid-\n-s)[yshift = 0.3cm] {\n};
}
% labels the bottom bar
\foreach \n in {1,...,\nstrands}{
\node at (braid-\n-e)[yshift = -0.3cm] {\n};
}
\node[fill=white, circle] at ($(braid-1-2)!.5!(braid-1-3)$) {\(\bigcup\)};
\node[fill=white, circle] at ($(braid-2-0)!.5!(braid-2-1)$) {\(\bigcap\)};
\end{tikzpicture}
\end{document}
表格的坐标位于第 和第 交叉点之间的<prefix>-X-Y
线上。使用,我们可以使用这些来定位交叉点本身,因为它正好位于这些交叉点的中间。通过填充节点,我们可以有效地擦除交叉点本身并将其替换为您想要的符号。X
Y
Y+1
calc