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.

What's wrong with the following?

\documentclass{amsart}
\usepackage[all]{xy}
\begin{document}
\xymatrix{
        \text{Long string of text that causes an error during the compilation of this document} \\
        X
}
\end{document}

Strangely if there's no second row it compiles fine.

share|improve this question
    
Welcome to TeX.sx! –  Peter Jansson Mar 3 '13 at 6:36

1 Answer 1

It seems to be a deficiency of xypic, this problem with simple but wide matrix cells. As a workaround, you could reduce the width as xy sees it, if the other parts of the matrix wouldn't be affected, such as with \makebox:

\xymatrix{
        \makebox[.8\textwidth][l]{Long string of  that causes an error during the 
                                  compilation of this document}\\% not any more
        X
}
share|improve this answer

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.