# Increase the thickness of an arrow in xy and tikz-cd package

We start from these simples MWE. The first is done with xy package, with your tips:

\documentclass[a4paper,12pt]{article}
\usepackage[all]{xy}
\begin{document}
\xymatrix{A \ar[r]& B}
\end{document}


and with the same tips of tikz-cd,

\documentclass[a4paper,12pt]{article}
\usepackage[all,cmtip]{xy}
\begin{document}
\xymatrix{A \ar[r]& B}
\end{document}


The code with tikz-cd is:

\documentclass[a4paper,12pt]{article}
\usepackage{tikz-cd}
\begin{document}
\begin{tikzcd}
A \arrow[r] & B
\end{tikzcd}
\end{document}


How can I increase the thickness of an arrow in xy? I've read the basic xy guide but couldn't find anything. With tikz-cd package there is a command called \tikzcdset. How is it possible to set it to have such an arrow as the picture below?

Follow-up 2021-6-4: I have found the solution of my problem (using dvips), but my code not works.

\documentclass[a4paper,12pt]{article}
\usepackage{color}
\usepackage{dvips,color,matrix,arrow,all,cmtip}{xy}
\begin{document}
$\xymatrix{ A\ar@*{\color{black}}@*{[|<5pt>]}[rrr] &&& B}$
\end{document}


LaTeX Error: File dvips.sty' not found. [...ackage{dvips,color,matrix,arrow,all,cmtip}{]


Is it possibile to reopen my question?

• with xy you are using a font for the arrowhead, with tikz you are drawing it. Obviously you have more options if drawing the shape than selecting a character from a font. – David Carlisle May 9 at 15:09
• (+1): I’m voting to close this question because solved in the comments, hope that's ok! – Dr. Manuel Kuehner May 23 at 17:42
• @Dr.ManuelKuehner Hi, I think that the solution exist. I have done an edit but the new code actually not work. Bye :-) – Sebastiano Jun 3 at 22:09
• Waiting for reopening: \ar@*{[|<5pt>]}@[green][r] will produce an arrow with 5pt thickness and colored green. But you need to compile with latex+dvips+ps2pdf. – egreg Jun 3 at 22:26
• What about trying with \usepackage[dvips,color,matrix,arrow,all,cmtip]{xy}? – Werner Jun 3 at 23:28

You can increase the width of the arrows, but this is only available with the dvips driver.

I think it might be extended to the PDF driver, but it seems that development of Xy-pic has been stopped for several years.

% arara: latex
% arara: dvips
% arara: ps2pdf

\documentclass[a4paper,12pt]{article}
\usepackage{color}
\usepackage[dvips,color,all,cmtip]{xy}
\UseCrayolaColors

\begin{document}
$\xymatrix@C+2pc{ A\ar@*{[|<5pt>]}@[ForestGreen][r] & B \\ A\ar@*{[|(10)]}@[Dandelion][r] & B }$
\end{document}
`