Hi there,<br><br>in my TeX-document, I would like to include a diagram in which there is underlined text. I also want this diagram to be centered. So far I used xy-pic very nicely and centered all diagrams, using \[ and \]. However, underlining in combination with \CompileMatrices seems to cause problems.<br>

<br>I made up a sample-file which fails with the error message "You can't use `spacefactor' in math mode \xy@{}{\leave@}", marking line 13:<br><br><blockquote style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;" class="gmail_quote">

\documentclass{scrreprt}<br>\usepackage[matrix]{xy}<br><br>\CompileMatrices<br><br>\begin{document}<br><br>\[<br>\begin{xy}<br>\xymatrix{<br>  \underline{bla}<br>}<br>\end{xy}<br>\]<br><br>\end{document}<br></blockquote>
<br>
Do you know whether I have done something wrong? Is there a known workaround?<br><br>Thanks in advance,<br><br>Arne Schröder<br>