![使用 tikz-cd 的箭尾样式](https://linux22.com/image/397267/%E4%BD%BF%E7%94%A8%20tikz-cd%20%E7%9A%84%E7%AE%AD%E5%B0%BE%E6%A0%B7%E5%BC%8F.png)
对于我的tikz-cd
图表,我试图定义一个尾部带有十字的箭头。我觉得这应该很容易,但还没有找到一种简单的方法来实现这一点。
答案1
您可以使用Rays
Tiarrows.meta
钾Z 库:
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{cd, arrows.meta}
% '+' arrow tip
%
% You may declare the '+' arrow tip centrally here if you wish, or in a
% particular 'tikzpicture' environment as shown below.
% Thanks to Håkon Marthinsen for this arrow tip specifiation
% (<https://tex.stackexchange.com/a/340406/73317>).
%
%\tikzset{+ /.tip = {Bar[sep=1.5pt 2,width=3pt 4]_[sep=0]}}
\begin{document}
\begin{tikzcd}
A \arrow[rd] \arrow[r, {Rays[]}->, "\phi"] & B \\
& C
\end{tikzcd}
\begin{tikzcd}
A \arrow[rd] \arrow[r, {Rays[n=8]}->, "\phi"] & B \\
& C
\end{tikzcd}
% '+' arrow tip from <https://tex.stackexchange.com/a/340406/73317>
\begin{tikzcd}[+ /.tip = {Bar[sep=1.5pt 2,width=3pt 4]_[sep=0]}]
A \arrow[rd] \arrow[r, +->, "\phi"] & B \\
& C
\end{tikzcd}
\end{document}