乳胶箭头挂钩

乳胶箭头挂钩

有人能告诉我如何\hookuparrow在 Latex 中书写吗?我知道书写$\hookrightarrow$会给我们向右的箭头,但对于上下箭头则不然,也许我需要一些包?

答案1

\documentclass{article}
\usepackage{graphicx}
\newcommand{\hookuparrow}{\mathrel{\rotatebox[origin=c]{90}{$\hookrightarrow$}}}
\newcommand{\hookdownarrow}{\mathrel{\rotatebox[origin=c]{-90}{$\hookrightarrow$}}}
\begin{document}
\noindent
$a\hookrightarrow b$

\noindent
$a\hookuparrow b$

\noindent
$a\hookdownarrow b$
\end{document}

在此处输入图片描述

您可以根据需要使用tb来调整旋转的中心(原点) 。\rotatebox[origin=c]

如果想要另一侧的钩子,正如 Barabara Beeton 所说,你可以反射箭头:

\newcommand{\hookuparrow}{\mathrel{\rotatebox[origin=t]{-90}{\reflectbox{$\hookrightarrow$}}}}
\newcommand{\hookdownarrow}{\mathrel{\rotatebox[origin=t]{90}{\reflectbox{$\hookrightarrow$}}}}

或使用\hookleftarrow

\newcommand{\hookuparrow}{\mathrel{\rotatebox[origin=t]{270}{$\hookleftarrow$}}}
\newcommand{\hookdownarrow}{\mathrel{\rotatebox[origin=t]{90}{$\hookleftarrow$}}}

相关内容