Take the 2-minute tour ×
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 following 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
1  
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
    
Perhaps this answer would give you ideas: tex.stackexchange.com/questions/113437/stealth-arrow-in-math/…. There, a "stealth arrow" was added to the pre-existing font. Perhaps the stealth arrows would be an improvement, or if still not adequate, the answer might give direction on how to do this for another font set. –  Steven B. Segletes May 21 '13 at 11:45
add comment

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.