# arrows with xy package

I am trying, using the xy package, to make an arrow of the form {>->} with orientation "up-right" via $\xymatrix@1{\ar@{>->}[ur]& }$, but it is not operating. Would you please help me?

If you want to have an arrow pointing to the up right, you need at least two rows of matrix cells. I just added an empty row above and it works. I also inserted an example with for demonstration. Different to xymatrix, you can't point to empty cells here. That's why I introduced the \null command, which is just an empty dummy.

% arara: pdflatex

\documentclass{article}
\usepackage[all,cmtip]{xy}
\usepackage{tikz-cd}

\begin{document}
$\xymatrix@1{ & \\ \ar@{>->}[ur] & }$
$\begin{tikzcd}%[row sep=..., column sep=...] & if you want to adapt size and angle & \null \\ \ar[>->]{ur} & \end{tikzcd}$
\end{document}


A short arrow can be obtained with xy rather than \xymatrix:

\documentclass{article}
\usepackage{amsmath}
\usepackage[all,cmtip]{xy}

\newcommand{\nenearrow}{\mathrel{\donenearrow}}
\newcommand{\donenearrow}{%
\kern 1mm
\begin{xy} (-1,-1)="a",(2,2)="b" \ar@{>->} "a";"b" \end{xy}%
}

\begin{document}

$A \nenearrow B$

\end{document}