Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I have the following simple diagram:

\[
\xymatrix{
A \ar[r]\ar[d] & B\ar[d] \\
C \ar[r]        & Dxxx = Exxx = Fxxx}
\]

which will be typeset so that B will have a down arrow, possibly pointing to the Exxx part, as the Dxxx = Exxx = Fxxx node is really long. However, I want to typeset it so that it has the same structure (arrow length, node positioning) as

\[
\xymatrix{
A \ar[r]\ar[d] & B\ar[d] \\
C \ar[r]        & D}
\]

with the extra xxx = Exxx = Fxxx part following D in the last node.

How do I do that? I remember seeing this in some guide but cannot find it.

share|improve this question
add comment

1 Answer

up vote 2 down vote accepted

You can shift a node to the right by enclosing it in braces and preceding it with *+[r]. Thus, if you type

\[
\xymatrix{
A \ar[r]\ar[d] & B\ar[d] \\
C \ar[r]        & *+[r]{Dxxx = Exxx = Fxxx}}
\]

then you'll get

enter image description here

This is described in section 8.3 of the amslatex-primer at http://www.ctan.org/pkg/amslatex-primer

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.