Tell me more ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Arrows in xy-pic have narrow heads, but I need heavy tips for my graphs. I tried the follwoing arrow definition, but the tip of the arrow enters into the circle of graph node.

\documentclass{report}
\usepackage[all]{xy}

\newdir{|>}{%
!/4.5pt/@{|}*:(1,-.2)@^{>}*:(1,+.2)@_{>}}

\begin{document}
\[
\xygraph{
!{<0cm,0cm>;<2cm,0cm>:<0cm,2cm>::}
!{(0,0)}*+=[o]+[F]{1}="1"
!{(1,0)}*+=[o]+[F]{2}="2"
"1":@{|>}"2"
} 
\]
\end{document}

Would you please help me to avoid this problem?

How can I fill insdie the arrow tip? Or preferably get something like: Arrow tips

share|improve this question
Not a direct answer, but you can draw also XY-diagrams with tikz (eg: felixl.de/commu.pdf, or Better arrowheads in commutative diagrams – JLDiaz Dec 17 '12 at 10:39
Just an addition to JLDiaz comment: based on TikZ there's also the tikz-cd package. – Claudio Fiandrino Dec 17 '12 at 10:48
Thanks for links. Both stealth- and latex-style arrows in TikZ are great for my purpose. However, it is not convinient to reporoduce \xygraph{} drawings in TikZ that I am not familiar with. – Aydin Dec 17 '12 at 13:42

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.