...and one more thing: don't forget to tick "Embed PDF & EPS images (EXPERIMENTAL)" when exporting the document to PDF, so that LaTeX code doesn't get rasterized, but exported as vector.