2

Let us consider the following example:

\documentclass{book}
\usepackage[all]{xy}
\begin{document}
$\xymatrix{A\ar[rr] && B}$
\end{document}

This produces

enter image description here

but I want the following arrowhead style using xypic:

enter image description here

How can I do this?

6

You can obtain something like this

enter image description here

by defining a new direction arrow (requires amssymb)

\newdir{|>}{-<5pt,0pt>{\blacktriangleright}}

MWE:

\documentclass{book}
\usepackage{amssymb}
\usepackage[all]{xy}
\newdir{|>}{-<5pt,0pt>{\blacktriangleright}}

\begin{document}
$\xymatrix{A\ar@{-|>}[rr] && B}$
\end{document} 
  • May be \llap the \blacktriangleright? – Manuel Feb 5 '15 at 11:10
  • @Manuel Have you tried it with \llap? It doesn't look good. – karlkoeller Feb 5 '15 at 11:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.