# Compile Errors While Using XYMATRIX in Lyx 2.0.4 [closed]

While trying to write \ar@{.>}[r] in my Lyx 2.0.4, the software gives me a

"Latex error": "Xy-pic error: Illegal ation (macro:-> \x@protect {\protect {). "

What should I do in order to fix it?

-
While code snippets are useful in explanations, it is always best to compose a fully compilable MWE that illustrates the problem including the \documentclass and the appropriate packages so that those trying to help don't have to recreate it. – Peter Grill Dec 1 '12 at 9:29
@PeterGrill : How can I do it? – joshua Dec 1 '12 at 10:00
Compose a minimal example that recreates this problem. It should start with \documentclass include the appropriate packages, then \begin{document}, your code, and end with \end{document}. And with the line in question commented out it should compile. Please have a look at this link regarding regarding a MWE. – Peter Grill Dec 1 '12 at 10:10
Follow up to @PeterGrill's comment: while LyX removes you from the sourcecode, you can find it: Select View --> View source, and check the box for Complete source on the right side of the source panel. Create a empty document with just the xypic that gives the error, and then copy this complete source. – Torbjørn T. Dec 2 '12 at 7:37

## closed as too localized by Torbjørn T., Joseph Wright♦Jan 5 at 21:04

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, see the FAQ.