否定 tikzcd 中的波浪箭头

否定 tikzcd 中的波浪箭头

我正在尝试否定 tikzcd 中的(某些)波浪箭头。我尝试过“/”标记等。我既可以不否定相应的波浪箭头,也可以否定普通箭头,但否定波浪箭头。我想要的正是下面的代码所产生的结果,只是否定了从 r 到 q 的弧形波浪箭头。

\documentclass[tikz,convert=false]{standalone}
\usepackage{tikz-cd}
\usetikzlibrary{graphs,decorations.pathmorphing,decorations.markings}
\begin{document}
\begin{tikzcd}[row sep=tiny]
& & & q \\
& & p \arrow[ur, rightsquigarrow] & \\
& r \arrow[ur] \arrow[bend left=50, rightsquigarrow, to=1-4] & & \\
\top \arrow[ur] & & &
\end{tikzcd}
\end{document}

答案1

欢迎来到 TeX.SE。使用这个旧的回答您可以使用 创建一个否定符号"/"{anchor=center,sloped}

在此处输入图片描述

%% Compile and read me!
\documentclass[a4paper,12pt]{article}
\usepackage{tikz-cd,amssymb}
\usetikzlibrary{graphs,decorations.pathmorphing,decorations.markings}
\begin{document}
     \begin{tikzcd}[row sep=tiny]
& & & q \\
& & p \arrow[ur, rightsquigarrow] & \\
& r \arrow[ur] \arrow[bend left=50, "/"{anchor=center,sloped}, rightsquigarrow, to=1-4] & & \\
\top \arrow[ur] & & &
\end{tikzcd}
\end{document}

相关内容