On 25/08/2011 7:16 AM, Eisa Ayed wrote:
Forgive my ignorance, how can I convert my xymatrix to .eps?

I found the following way:
1.for each xymatrix create a separate lyx file.
2. export each file to .tex
3. run latex fileName
4. run dvips -E -o fileName.eps fileName.dvi

I found this tedious if I have 10 xymatrix figures, is there another/simpler 
way?

Also after inserting the figures, each figure takes the whole page for 
displaying, how can I crop the figure?

Thank you for your patience,
~Eisa


Hi,

Sorry for the late reply. You are right that it can be tedious, but you could set up a script to automate it. You can use only one LyX file, in fact, by using the latex package called preview. Here's how:

In your document preamble:

\usepackage[active,pdftex,tightpage]{preview}
\PreviewMacro[!]{\xymatrix}

Then when you export to pdf, you get each xymatrix figure on its own page. Then use pdftk to extract each page (burst the pdf).

--
Julien

Reply via email to