我一直在使用辫子包(https://www.ctan.org/pkg/braids) 来绘制辫子。一般来说,对我来说效果很好,但当涉及到辫子梳理和其他纯辫子的用途时,我希望保持所有发束(除了一根垂直的发束)。例如,我想画这样的东西:
辫子包的款式优雅,不过我能做的也就这些了
这并不那么清楚。
这是我的代码
\documentclass{article}
\usepackage{braids}
\begin{document}
\begin{center}
\begin{tikzpicture}
\braid[ number of strands=12,
border height=2pt,
style strands={2}{draw=none}, style strands={3}{draw=none}, style strands={8}{line width=2pt},style strands={10}{draw=none},style strands={11}{draw=none}] (braid) at (1,0), it's a name
a_7 a_6 a_5 a_5 a_6^{-1} a_7^{-1};
\fill[ black ] ( 2 , -3 ) circle (2 pt ) ;
\fill[ black ] ( 3 , -3 ) circle (2 pt ) ;
\fill[ black ] ( 10 , -3 ) circle (2 pt ) ;
\fill[ black ] ( 11 , -3 ) circle (2 pt ) ;
\node[ at=(braid-5-s), pin=north : $z_i$ ] {} ;
\node[ at=(braid-8-s), pin=north : $z_j$ ] {} ;
\end{tikzpicture}
\end{center}
\end{document}
顺便说一句,我想知道是否可以使用其他东西来代替 来避免 $z_i$ 和 $z_j$ 下方的垂直线pin
。
答案1
我想说的是,用基本的 Ti 来画这些东西并不是很困难钾Z 命令。
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{decorations.shapes}
\begin{document}
% from https://tex.stackexchange.com/a/52849/121799
\tikzset{decorate sep/.style 2 args=
{decorate,decoration={shape backgrounds,shape=circle,shape size=#1,shape sep=#2}}}
\begin{tikzpicture}
\draw[white,double=black,very thick,-] (-3,-2) -- (-3,0);
\draw[smooth,white,double=black,line width=1mm,-] plot[variable=\x,domain=-2:2] ({-3.5*exp(-1.4*\x*\x)},{\x});
\node[anchor=south] at (0,2.1) {$z_j^0$};
\foreach \x in {-7,-4,-2,-1,1,4}{
\draw[white,double=black,very thick,-] (\x,-2) -- (\x,2);
}
\draw[white,double=black,very thick,-] (-3,0) -- (-3,2);
\node[anchor=south] at (-3,2.1) {$z_i^0$};
\draw[decorate sep={1mm}{5mm},fill] (-6.5,0) -- (-4.5,0);
\draw[decorate sep={1mm}{5mm},fill] (1.5,0) -- (3.5,0);
\draw[-] (-8,2) -- (5,2);
\draw[-] (-8,-2) -- (5,-2);
\end{tikzpicture}
\end{document}