2

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}

enter image description here

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}

enter image description here

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?

enter image description here

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

enter image description here

\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?

12
  • 2
    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. May 9, 2021 at 15:09
  • 4
    (+1): I’m voting to close this question because solved in the comments, hope that's ok! May 23, 2021 at 17:42
  • 1
    @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, 2021 at 22:09
  • 1
    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, 2021 at 22:26
  • 2
    What about trying with \usepackage[dvips,color,matrix,arrow,all,cmtip]{xy}?
    – Werner
    Jun 3, 2021 at 23:28

1 Answer 1

2

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}

enter image description here

0

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .