tex >> [XY-pic] Moving arrow label away from the arrow

by Filip Miletic » Wed, 08 Feb 2006 20:52:33 GMT

Greetings.

Using XY-pic one can place a label above an arrow as follows.

\xymatrix{ A \ar[r]^{c} & B }

This typesets 'c' above an arrow pointing from 'A' to 'B'. The label 'c'
is at some default distance from the arrow.

How can I typeset 'c' to be at some designated distance from the arrow.
For instance, how to set it 2cm away, perpendicular to the direction of
the arrow. The horizontal position of 'c' with respect to the labels 'A'
and 'B' should not change.

Thanks,
f


Similar Threads

1. Using XY-pic and Syntax packages together affects arrow index formatting in XY-pic

Greetings. I've just ferreted out a possible problem when using the
Syntax and XY-pic together in the same document.

As a minimal example consider typesetting the second axiom of category
theory, as given in the solution to Exercise 3, page 13 of the XY-pic
User's Guide:

\documentclass{article}
\usepackage{syntax}
\usepackage[all]{xy}
\begin{document}

 \xymatrix{
  A \ar[r]^f \ar[dr]_{f;g}
  & B \ar[d]^g \ar[dr]^{g;h} \\
  & C {\ar[r]_h} & D }

\end{document}

The expected output is given on Page 3 of the same document.

However, using Syntax together with XY-pic typesets the arrow labels
"f;g" and "h" as lower indices to "A" and "C" respectively, instead of
putting them below the appropriate arrows.

Commenting out the syntax package gives the result in accordance to what
XY-pic guide says.

This is just for the record, so that people would know (and someone
hopefully try to ammend this).

Greets,
f

2. Drawing arrows that hit arrows in xy-pic

3. XYpic's arrows and text's arrows in pdf

Hi. I'm sorry for my English.
I use MiKTeX 2.5. I have this problem. Using XYpic, I'd like to have
the same head for arrows in diagrams and arrows in text (\to, \mapsto,
etc.). So I have used \SelectTips{cm}{} that should set computer modern
for XYpic's arrows. If I compile in dvi (with latex), the heads are
equal, but if I compile in pdf (with pdflatex, but also with
latex+dvipdfm) the arrows in the text are smaller than XYpic's arrows
(also prettier, I think). So:
1) why is there this difference between dvi and pdf?
2) how can I have equal arrows?

Thank you very much,
Luigi



=== Example ===

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

\SelectTips{cm}{}

\begin{document}
Compile with pdflatex.

Arrows with small head: $\to$, $\mapsto$, etc.

Arrows with big head: $\xymatrix@1{A \ar[r] & B}$
\end{document}

===

4. having arrows hit circles correctly in XY-pic

5. non-jagged arrows in xy-pic with pdflatex?

hi,

i am drawing diagonal arrows using xy-pic with pdflatex, and they all
come out horribly jagged/crooked. i did some searching on this problems
and found that the recommendation was to add the 'ps' option to xy-pic.
i did so, and i have:

\usepackage[all,ps,arrow]{xy}
\xyoption{ps}

but the problem persists.  if i add \xyoption{dvips} in addition, then
i get warning "non-PDF special option used!" repeatedly and then no
arrows show up at all.

is there a way to fix this? or is there no way to use xy-pic with
pdflatex? i really want to avoid producing ps files, i want to compile
straight into pdf ideally, but if the only solution is to first produce
ps, then somehow convert to pdf, i'd be interested to know how that can
be done. 

thanks!

6. XYpic arrows, and placement

7. [XY-pic] Typesetting an entry label outside the box

Greetings all.

I'd appreciate an explanation how to typeset in XY-pic an xymatrix
entry, which has a (default) frame of some size (0.5cm say), whose label
is not typeset at the entry's center but rather somewhat to the side,
outside the frame itself?

Thanks,
f

8. [TikZ] Label over arrow and sign on arrowhead