I'm using LyX and I want to color my \xymatrix arrows (\ar@[blue][dr]). With every LaTeX editor it looks preety easy, but with LyX I'm unable to add packages like that. I'v already tried to add color with PackageOption (like that), and to add the \usepackage{color}, \usepackage{xcolor} and \usepackage[color,matrix,arrow]{xypic} packages at LaTeX premable setting window.

Thanks alot.

1 Answer 1


The solution:

Under Document -> Settings -> LaTeX Preamble -> Add the line \usepackage{color}. Then, compile the document using pdflatex. That's it :)

To color an arrow: \ar@{-}@[blue][dr]. Have fun:

K10 coloring

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .