Am 13.09.2010 14:44, schrieb [email protected]:

I am using Linux (Debian squeeze) with texlive,  with the most recent versions 
of pdfpages and pdftex.def installed into my  local texmf tree.

What is the exact error message you get if you use a relative path, for example 
by having the
included PDF in the same folder as your LyX file?

Having the pdf file in the same folder as my lyx file does not help, I still get the same 
error ("Cannot find file: 0_home_mateo_test").

If you have the file in the same folder as the LyX file, specify only a relative name so that you only get (assuming your file has the name "article.pdf):

\includepdf[pages=-]{article}

Knowing that lyx uses a temporary subdirectory where it actually creates its 
temporary files for building the final pdf document, I looked at what was in 
this directory (e.g., /tmp/lyx_tmpdir.MT9164/lyx_tmpbuf0/) and I did not see 
any file named 0_home_mateo_test.pdf. I then simply copied my test.pdf file 
into this temporary directory and renamed it to what pdfpages is looking for 
(i.e., 0_home_mateo_test.pdf). Now, from within lyx I clicked on pdflatex 
preview and it worked fine, producing my document with my test.pdf file (first 
page) included correctly.

Conclusion: lyx is not copying the required PDF file into its temporary 
directory.

I also found that the new file name that lyx generates is limited to 100 
characters.

I guess that this is the reason for your problems. Can you please report this as bug to our bug database:
http://www.lyx.org/trac/wiki/BugTrackerHome

regards Uwe

Reply via email to