我正在努力改变这张图片底部的交叉点。这是我的项目,截止日期是一小时,但我刚刚发现了这个错误!有人能帮忙把那个交叉点翻转成顶部的紫色线吗?我试过使用翻转交叉/.list={} 中的组合,但似乎都不起作用。这很紧急,任何帮助都将不胜感激!!
这是我的代码:
\documentclass[final]{beamer}
\usepackage[scale=1.24]{beamerposter}
\usepackage{graphicx,amssymb,amstext,amsmath}
\usepackage{tikz}
\usepackage{braids}
\usepackage{subcaption}
\usepackage{wrapfig}
\usepackage{caption}
\usetikzlibrary{decorations.pathreplacing,decorations.markings,hobby,knots,celtic,shapes.geometric,calc}
\begin{document}
\begin{tikzpicture}[scale=2.2,use Hobby shortcut, add arrow/.style={postaction={decorate}, decoration={
markings,
mark=at position 0.35 with {\arrow[line width=4pt]{>}}}}]
\begin{knot}[
clip width=5, consider self intersections=true,
ignore endpoint intersections=false,
flip crossing/.list={1,3},
rotate=180
]
\strand [line width=4pt, blue] (1.3,-1)
to [out=up, in=right] (0.7,1)
to [out=left, in=up] (-0.5,0)
to [out=down, in=left] (0,-.5)
[add arrow,blue]
to [out=right, in=down] (0.5,0)
to [out=up, in=down] (0.5,1.5)
to [out=up,in=right] (-1.3,2)
to [out=left, in=down] (-1.85,2.5);
\strand [line width=4pt, violet] (-1.85,-1)
to [out=up, in=left] (-1.2,-0.3)
to [out=right, in=left] (0,-1)
to [out=right, in=down] (0.7,-0.7)
to [out=up, in=right] (0,0)
to [out=left, in=down] (-1.1,1)
to [out=up, in=left] (0.5,1.5)
to [out=right, in=down](1.3,2.5);
\end{knot}
\path (0,-.7);
\end{tikzpicture}
\end{document}
答案1
draft mode=crossings
如果您用它来查看哪个索引指的是哪个交叉点(这里不需要辫子),这真的很容易。
\documentclass[final]{beamer}
\usepackage{tikz}
%\usepackage{braids}
\usetikzlibrary{decorations.pathreplacing,decorations.markings,hobby,knots,celtic,shapes.geometric,calc}
\begin{document}
\begin{frame}
\frametitle{Strand}
\begin{tikzpicture}[scale=2.2,use Hobby shortcut, add arrow/.style={postaction={decorate}, decoration={
markings,
mark=at position 0.35 with {\arrow[line width=4pt]{>}}}}]
\begin{knot}[%draft mode=crossings,
clip width=5, consider self intersections=true,
ignore endpoint intersections=false,
flip crossing/.list={1,2,3,7},
rotate=180
]
\strand [line width=4pt, blue] (1.3,-1)
to [out=up, in=right] (0.7,1)
to [out=left, in=up] (-0.5,0)
to [out=down, in=left] (0,-.5)
[add arrow,blue]
to [out=right, in=down] (0.5,0)
to [out=up, in=down] (0.5,1.5)
to [out=up,in=right] (-1.3,2)
to [out=left, in=down] (-1.85,2.5);
\strand [line width=4pt, violet] (-1.85,-1)
to [out=up, in=left] (-1.2,-0.3)
to [out=right, in=left] (0,-1)
to [out=right, in=down] (0.7,-0.7)
to [out=up, in=right] (0,0)
to [out=left, in=down] (-1.1,1)
to [out=up, in=left] (0.5,1.5)
to [out=right, in=down](1.3,2.5);
\end{knot}
\path (0,-.7);
\end{tikzpicture}
\end{frame}
\end{document}