我想创建一个名为的新 latex 命令右箭头,即 a \longtwoheadrightarrow
,但不使用tikz/tikzcd and/or xypic
。
可以吗?非常感谢
PS:我尝试过这些
\newcommand{\SpecialArrow}[2]{\joinrel{#1}{\!\!\!\!#2}}
%\newcommand{\Surjrightarrow}{\SpecialArrow{\longrightarrow}{\to}}
%\DeclareRobustCommand\Surjrightarrow{\relbar\joinrel\twoheadrightarrow}
\newcommand{\Bijrightarrow}{\SpecialArrow{\lhook}{\:\:\Surjrightarrow}}
\newcommand{\Surjrightarrow}{\longrightarrow\mathrel{\mspace{-21mu}}\rightarrow}
但效果不太好。我的目标也是创造一个比杰赖特阿罗喜欢。再次感谢
答案1
像这样吗?
\documentclass{article}
\usepackage{stix2}
\newcommand*{\Surjrightarrow}{%
\mathrel{\ooalign{$\longrightarrow$\cr$\mkern 8.5mu\rightarrow$}}%
}
\newcommand*{\Bijrightarrow}{%
\lhook\joinrel\Surjrightarrow%
}
\begin{document}
\(A \twoheadrightarrow B\)
\(A \longrightarrow B\)
\(A \Surjrightarrow B\)
\(A \Bijrightarrow B\)
\end{document}