This is a reply to my own mail, and a little more on topic this time. Below you'll find a description of how I finally got the exact figure I needed. I'm sure there are better ways. But this was the first that worked for me.
What I wanted to do: Integrate a figure created with XFig and containing LaTeX math code AND bitmap images into a PDF document using pdftex. So export as bitmap is not an option. How I did it: - Get compile and install a new version of pdftex (ftp://www.ctan.org/tex-archive/systems/pdftex/snapshots/20010417/pdftex-20010417.tgz) - Recreate pdftex format files with: fmtutil --byfmt pdftex fmtutil --byfmt pdflatex (I don't know what this does exactly, but pdftex won't work without) - Scale the figure in XFig to the size it should be in the final output - Export the figure from xfig to combined ps and latex. This gives two files: foo.pstex and foo.pstex_t - convert the postscript part to PDF: epstopdf foo.pstex - Copy foo.pstex_t to foo.pdf_t and edit foo.pdf_t to delete extension ".pstex" of the referenced file and to contain the path where foo.pdf can be relative to the main lyx file. - Include the foo.pdf_t in a figure float in Lyx: Insert > Include File, select foo.pdf_t, check "use input" - Center the figure: Select the "Input:foo.pdf_t"-box, Layout > Paragraph > center - Compile using pdflatex - To get a DVI or PS, include foo.pstex_t instead. And no, tex2pdf didn't work for me (problably not set up right here, but I don't have time to look into that now). Also, tex2pdf generates sytematically PDF files from my EPS's, even though some of them are bitmaps and I have the JPEG's in place (and pdflatex finds them). Sometimes the PDF's are smaller than the JPEG's (which quite surprised me), but most of the times they are bigger. Using the PDF's instead of JPEG's increased the total size of my file quite a bit. Jan The old message for reference: > Ok, this thread is a bit old and I'm being off-topic, but I do have a > question to add. I just ran into the same problem as V�ctor did, and would > like to avoid using bitmap files. In my case, I have a mix of > vector/bitmap graphic put together with xfig, and bitmapping the vector > stuff doesn't look nice (plus file size explodes). > > Dekel Tsur wrote: > > Also, the problem you had with the bitmap image when you converted them > > to PDF was due to your broken version of pdftex (probably 0.13d). > > Of course, even without bugs, the correct way to is not to convert to > > PDF, but to convert to png/jpeg. > > I checked and sure enough that's the version of pdftex I have installed. > So I tried to install a newer version but got stuck. Both the precompiled > Solaris version and the one I compiled from the sources give the > following error: > > This is pdfTeX, Version 3.14159-14h-released-20010417 (Web2C 7.3.3.1) > (Fatal format file error; I'm stymied) > > When I run it as "pdfinitex" I get: > This is pdfTeX, Version 3.14159-14h-released-20010417 (Web2C 7.3.3.1) (INITEX) > (./pdfproblem.tex > ! Undefined control sequence. > l.3 \documentclass > [french]{article} > > I think I did everything the way I should. Installed by replacing pdftex > and pdftex.pool by the new ones... I'm on Solaris 2.7, using gcc 2.95.3 > and gnu make etc. > > What format file is it complaining about? Any clues what I'm missing? > > Jan > >
