4

In the following example, I find that the u and w are vertically too far from the arrow: is there any way so that

\documentclass[10pt]{article}
\usepackage[all]{xy}

\begin{document}

\xymatrix{E \ar[r]^-*+{u}
        \ar@{->>}[d]^-*+{v} &E \ar@{->>}[d]^-*+{v}\\
                  E/F \ar@{.>}[r]^-*+{w}& E/F}


\end{document}

thanks for your answer

  • Welcome to TeX.SX! You can have a look at our starter guide to familiarize yourself further with our format. – karlkoeller Feb 20 '14 at 8:54
7

You can adjust the spacing replacing, for example,

^-*+{u}

with (adjust 1pt to your needs):

^*-<1pt>{u}

MWE

\documentclass[10pt]{article}
\usepackage[all]{xy}

\begin{document}

\xymatrix{E \ar[r]^*-<1pt>{u}
        \ar@{->>}[d]^-*+{v} &E \ar@{->>}[d]^-*+{v}\\
                  E/F \ar@{.>}[r]^*-<1pt>{w}& E/F}


\end{document} 

enter image description here

Remember that you can set a global value for all arrows by adding @L=dimen after \xymatrix.

For example

\documentclass[10pt]{article}
\usepackage[all]{xy}

\begin{document}

\xymatrix@L=-.5pt{E \ar[r]^-*+{u}
        \ar@{->>}[d]^-*+{v} &E \ar@{->>}[d]^-*+{v}\\
                  E/F \ar@{.>}[r]^-*+{w}& E/F}


\end{document} 

gives

enter image description here

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.