4

When I use the MnSymbol package, I get the usual short arrows, but this is not the case for xypic diagrams. Having the following packages

\usepackage{xypic}
\usepackage[all,cmtip]{xy}
\usepackage{MnSymbol}

I have results like in this picture where the different arrow styles is shown:

enter image description here

Is there any way to fix this problem? Any suggestion is welcome

  • 1
    No, Xy-pic only gives the default (ugly) arrowheads or the cmtip ones. One might define other arrowheads, but … – egreg Feb 9 '15 at 16:23
4

Defining new arrow tips with Xy-pic is a task I'd not engage in.

You can (and should, in my opinion) switch to tikz-cd:

\documentclass{article}
\usepackage{MnSymbol}

\usepackage{tikz-cd}
\tikzcdset{arrow style=math font}

\begin{document}
$A \to B$

\begin{tikzcd}
A \arrow[r,"f"] \arrow[dr,dashed,swap,"g\circ f"] & B \arrow[d,"g"] \\
& C
\end{tikzcd}
\end{document}

enter image description here

  • Is it possible to make fine adjustments with tikz-cd? (E.g., raising the arrow just .1pt) – Manuel Feb 9 '15 at 16:55
  • @egreg Seems really the best choice, but I have some problems with tikz-cd: I get always the message ! Argument of \language@active@arg" has an extra }. What should I change? – Jjm Feb 9 '15 at 17:43
  • 1
    @Jjm Try adding \usetikzlibrary{babel} after \usepackage{tikz-cd} – egreg Feb 9 '15 at 17:54
  • @egreg Yes, it works! Now, only one question, just curious... the arrows seem somehow broken when viewed in pdf. I suppose that for a printed document it will be no problem, but for reading in the screen, it is a bit annoying. Is there any way to fix it? – Jjm Feb 9 '15 at 18:03
  • 1
    @Jjm I guess one has to fix the arrow stem; sorry, but it's beyond my knowledge of TikZ. – egreg Feb 9 '15 at 18:51

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.