I wonder why is the textual "A" in \xymatrix{A \ar[r] & \txt{A}}
moved downwards. All I want is to have textual elements in xymatrix
with possibility of line breaks inside the element. I thought \txt
is for this but the positioning seems weird to me.
EDIT: Thank you for answers. I have found following solution: Just put there *\txt{}
instead of \txt{}
. Actually then there is no spacing around the text, so *+\txt{}
looks better. I just wonder if this is standard way to do it. It seems to me that there should be a standard way to do it, since it looks like standard demand to have textual multiline entries, but both your answers look like workarounds.
\txt
with one line argument is mysterious; with two or more lines it's basically vertically centered with respect to the arrow stem. – egreg Mar 1 '14 at 10:30*+\txt{}
, but the baseline is still weird. I've used\xymatrix
often in the past, but\txt
only for placing text over arrows. Probably it is not meant to be used in the way you do. – karlkoeller Mar 1 '14 at 11:23*+\txt{}
is the way it is supposed to be. – karlkoeller Mar 1 '14 at 15:42