软件包 tikz 错误:我没有找到 tikz 库‘braids’

软件包 tikz 错误:我没有找到 tikz 库‘braids’

以下是我所拥有的。我尝试按照braids软件包文档使用 Latex 绘制辫子。但我找不到tikzbraids

\documentclass{amsart}
\usepackage{tikz,braids,pgfplots}
\usetikzlibrary{braids}


\begin{document}



\begin{center}
\begin{tikzpicture}
\pic[
rotate=90,
braid/.cd,
everystrand/.style={ultrathick},
strand1/.style={red},
strand2/.style={green},
strand3/.style={blue},
] {braid={s_1s_2^{−1}s_1s_2^{−1}s_1s_2^{−1}}};
\end{tikzpicture}
\end{center}



\end{document}

答案1

使用 TL2020-2021 进行编译

\documentclass{amsart}
\usepackage{tikz}
%\usepackage{braids} % https://ctan.org/pkg/braids?lang=en
\usetikzlibrary{braids}

\begin{document}

\begin{center}
\begin{tikzpicture}
\pic[
rotate=90,
braid/.cd,
every strand/.style={ultra thick}, %Note: <<== empty space
strand 1/.style={red}, %Note: <<== empty space
strand 2/.style={green}, %Note: <<== empty space
strand 3/.style={blue}, %Note: <<== empty space
] {braid={s_1 s_2^{-1} s_1 s_2^{-1} s_1 s_2^{-1}}}; %Note: dash for -1
\end{tikzpicture}
\end{center}

\end{document}

相关内容