Re: Bizarre file not found error using pdfpages

2010-04-04 Thread Richard Brown
Thanks for your very clear explanation, Paul: it enabled me to understand
the problem- which was that I had underscores in the pdf filename. So when
lyx mangled the file name (as you put it), it then couldn't read the
mangled filename back because my underscores and the mangling underscores
confused the issue. The file got lost.

Important lesson: don-t use underscores in names of files to be included.

Richard


Re: Bizarre file not found error using pdfpages

2010-04-04 Thread Richard Brown
Thanks for the pointer, Jurgen. I was using 1.6.4 and as a result of your
input, have today updated to 1.6.5. This has also solved a few other issues
I had with pdfpackages!

Richard


Re: Bizarre file not found error using pdfpages

2010-04-04 Thread Paul A. Rubin

On 4/4/2010 3:42 PM, Richard Brown wrote:

Thanks for your very clear explanation, Paul: it enabled me to understand
the problem- which was that I had underscores in the pdf filename. So when
lyx mangled the file name (as you put it), it then couldn't read the
mangled filename back because my underscores and the mangling underscores
confused the issue. The file got lost.

Important lesson: don-t use underscores in names of files to be included.



Odd; I don't have that problem here (but I'm on Win XP at the moment; my 
Linux machines are napping).  Could be a bug in 1.6.4 that was fixed in 
1.6.5, probably the one Jürgen mentioned.


At any rate, I think underscores in file names should not be a problem 
(including on Linux).


/Paul




Re: Bizarre file not found error using pdfpages

2010-04-04 Thread Venable
Jürgen Spitzmüller sp...@... writes:
 
 Which version of LyX exactly? LyX 1.6.5 included the following bug fix:
 
 - When using the PDF-Pages external inset, copy the included PDF file to
   the temporary directory, where LaTeX searches it (bug 6345).
 
 Jürgen
 
 

An alternate solution that I have found works for me is to export the LyX file
to LaTeX and then pdflatex using TeXworks.

HTH.

PS - LyX 1.6.5, MikTeX 2.8 (including TeXworks 0.3 r.514), Windows 7 Enterprise






Re: Bizarre file not found error using pdfpages

2010-04-04 Thread Richard Brown
Thanks for your very clear explanation, Paul: it enabled me to understand
the problem- which was that I had underscores in the pdf filename. So when
lyx mangled the file name (as you put it), it then couldn't read the
mangled filename back because my underscores and the mangling underscores
confused the issue. The file got lost.

Important lesson: don-t use underscores in names of files to be included.

Richard


Re: Bizarre file not found error using pdfpages

2010-04-04 Thread Richard Brown
Thanks for the pointer, Jurgen. I was using 1.6.4 and as a result of your
input, have today updated to 1.6.5. This has also solved a few other issues
I had with pdfpackages!

Richard


Re: Bizarre file not found error using pdfpages

2010-04-04 Thread Paul A. Rubin

On 4/4/2010 3:42 PM, Richard Brown wrote:

Thanks for your very clear explanation, Paul: it enabled me to understand
the problem- which was that I had underscores in the pdf filename. So when
lyx mangled the file name (as you put it), it then couldn't read the
mangled filename back because my underscores and the mangling underscores
confused the issue. The file got lost.

Important lesson: don-t use underscores in names of files to be included.



Odd; I don't have that problem here (but I'm on Win XP at the moment; my 
Linux machines are napping).  Could be a bug in 1.6.4 that was fixed in 
1.6.5, probably the one Jürgen mentioned.


At any rate, I think underscores in file names should not be a problem 
(including on Linux).


/Paul




Re: Bizarre file not found error using pdfpages

2010-04-04 Thread Venable
Jürgen Spitzmüller sp...@... writes:
 
 Which version of LyX exactly? LyX 1.6.5 included the following bug fix:
 
 - When using the PDF-Pages external inset, copy the included PDF file to
   the temporary directory, where LaTeX searches it (bug 6345).
 
 Jürgen
 
 

An alternate solution that I have found works for me is to export the LyX file
to LaTeX and then pdflatex using TeXworks.

HTH.

PS - LyX 1.6.5, MikTeX 2.8 (including TeXworks 0.3 r.514), Windows 7 Enterprise






Re: Bizarre file not found error using pdfpages

2010-04-04 Thread Richard Brown
Thanks for your very clear explanation, Paul: it enabled me to understand
the problem- which was that I had underscores in the pdf filename. So when
lyx "mangled" the file name (as you put it), it then couldn't read the
mangled filename back because my underscores and the mangling underscores
confused the issue. The file got lost.

Important lesson: don-t use underscores in names of files to be included.

Richard


Re: Bizarre file not found error using pdfpages

2010-04-04 Thread Richard Brown
Thanks for the pointer, Jurgen. I was using 1.6.4 and as a result of your
input, have today updated to 1.6.5. This has also solved a few other issues
I had with pdfpackages!

Richard


Re: Bizarre file not found error using pdfpages

2010-04-04 Thread Paul A. Rubin

On 4/4/2010 3:42 PM, Richard Brown wrote:

Thanks for your very clear explanation, Paul: it enabled me to understand
the problem- which was that I had underscores in the pdf filename. So when
lyx "mangled" the file name (as you put it), it then couldn't read the
mangled filename back because my underscores and the mangling underscores
confused the issue. The file got lost.

Important lesson: don-t use underscores in names of files to be included.



Odd; I don't have that problem here (but I'm on Win XP at the moment; my 
Linux machines are napping).  Could be a bug in 1.6.4 that was fixed in 
1.6.5, probably the one Jürgen mentioned.


At any rate, I think underscores in file names should not be a problem 
(including on Linux).


/Paul




Re: Bizarre file not found error using pdfpages

2010-04-04 Thread Venable
Jürgen Spitzmüller  writes:
> 
> Which version of LyX exactly? LyX 1.6.5 included the following bug fix:
> 
> - When using the PDF-Pages external inset, copy the included PDF file to
>   the temporary directory, where LaTeX searches it (bug 6345).
> 
> Jürgen
> 
> 

An alternate solution that I have found works for me is to export the LyX file
to LaTeX and then pdflatex using TeXworks.

HTH.

PS - LyX 1.6.5, MikTeX 2.8 (including TeXworks 0.3 r.514), Windows 7 Enterprise






Bizarre file not found error using pdfpages

2010-04-03 Thread Richard Brown
Using pdfpages to put a pdf doc into my komabook book (lyx 1.6 on Ubuntu
9.10), instead of inserting the file I get a bizarre file not found error,
which states

' Error: pdfpackages error- can't find file
10_home_richard_Desktop_book2_form'

The file it should find, but obviously doesn't, is
/./home/richard/Desktop/book2/form
but with the backslash changed for all those underscores I'm not surprised
the package can't find it. And what gives with the number 10?

Anyone any idea what's going on?

TIA
Richard


Re: Bizarre file not found error using pdfpages

2010-04-03 Thread Paul A. Rubin

On 4/3/2010 7:03 AM, Richard Brown wrote:

Using pdfpages to put a pdf doc into my komabook book (lyx 1.6 on Ubuntu
9.10), instead of inserting the file I get a bizarre file not found error,
which states

' Error: pdfpackages error- can't find file
10_home_richard_Desktop_book2_form'

The file it should find, but obviously doesn't, is
/./home/richard/Desktop/book2/form
but with the backslash changed for all those underscores I'm not surprised
the package can't find it. And what gives with the number 10?

Anyone any idea what's going on?



When LyX compiles a document, it creates a temporary directory 
(typically under /tmp on a Linux system), exports the necessary LaTeX 
file there, copies ancillary files (such as images) there, does any 
necessary format conversions of images there, then runs latex (or 
pdflatex, or whatever), bibtex (if needed) etc. in that temp directory. 
 Files copied from other directories have their names mangled to 
indicate the source path, with path separators changed to underscores. 
In mangling the file name, LyX prepends a number (not sure why; might be 
to avoid naming clashes).


So the mangled file name is in fact correct behavior. The question is 
why it's not found. If you repeat the process and open the LyX temp 
buffer (Tools  Preferences  Paths  Temporary directory will point you 
to the parent directory of the temporary buffer) in a file manager, you 
should find a copy of your PDF file there with the corresponding name. 
If not, then apparently LyX was unable to copy it there for some reason.


Did you use Insert  File  External material, with the PDFPages 
template selected, to insert the file?  Also, did you specify the path 
with that /. at the beginning (rather than /home/...)?


/Paul



Re: Bizarre file not found error using pdfpages

2010-04-03 Thread Jürgen Spitzmüller
Richard Brown wrote:
 Using pdfpages to put a pdf doc into my komabook book (lyx 1.6 on Ubuntu
 9.10), instead of inserting the file I get a bizarre file not found error,
 which states
 
 ' Error: pdfpackages error- can't find file
 10_home_richard_Desktop_book2_form'

Which version of LyX exactly? LyX 1.6.5 included the following bug fix:

- When using the PDF-Pages external inset, copy the included PDF file to
  the temporary directory, where LaTeX searches it (bug 6345).

Jürgen


Bizarre file not found error using pdfpages

2010-04-03 Thread Richard Brown
Using pdfpages to put a pdf doc into my komabook book (lyx 1.6 on Ubuntu
9.10), instead of inserting the file I get a bizarre file not found error,
which states

' Error: pdfpackages error- can't find file
10_home_richard_Desktop_book2_form'

The file it should find, but obviously doesn't, is
/./home/richard/Desktop/book2/form
but with the backslash changed for all those underscores I'm not surprised
the package can't find it. And what gives with the number 10?

Anyone any idea what's going on?

TIA
Richard


Re: Bizarre file not found error using pdfpages

2010-04-03 Thread Paul A. Rubin

On 4/3/2010 7:03 AM, Richard Brown wrote:

Using pdfpages to put a pdf doc into my komabook book (lyx 1.6 on Ubuntu
9.10), instead of inserting the file I get a bizarre file not found error,
which states

' Error: pdfpackages error- can't find file
10_home_richard_Desktop_book2_form'

The file it should find, but obviously doesn't, is
/./home/richard/Desktop/book2/form
but with the backslash changed for all those underscores I'm not surprised
the package can't find it. And what gives with the number 10?

Anyone any idea what's going on?



When LyX compiles a document, it creates a temporary directory 
(typically under /tmp on a Linux system), exports the necessary LaTeX 
file there, copies ancillary files (such as images) there, does any 
necessary format conversions of images there, then runs latex (or 
pdflatex, or whatever), bibtex (if needed) etc. in that temp directory. 
 Files copied from other directories have their names mangled to 
indicate the source path, with path separators changed to underscores. 
In mangling the file name, LyX prepends a number (not sure why; might be 
to avoid naming clashes).


So the mangled file name is in fact correct behavior. The question is 
why it's not found. If you repeat the process and open the LyX temp 
buffer (Tools  Preferences  Paths  Temporary directory will point you 
to the parent directory of the temporary buffer) in a file manager, you 
should find a copy of your PDF file there with the corresponding name. 
If not, then apparently LyX was unable to copy it there for some reason.


Did you use Insert  File  External material, with the PDFPages 
template selected, to insert the file?  Also, did you specify the path 
with that /. at the beginning (rather than /home/...)?


/Paul



Re: Bizarre file not found error using pdfpages

2010-04-03 Thread Jürgen Spitzmüller
Richard Brown wrote:
 Using pdfpages to put a pdf doc into my komabook book (lyx 1.6 on Ubuntu
 9.10), instead of inserting the file I get a bizarre file not found error,
 which states
 
 ' Error: pdfpackages error- can't find file
 10_home_richard_Desktop_book2_form'

Which version of LyX exactly? LyX 1.6.5 included the following bug fix:

- When using the PDF-Pages external inset, copy the included PDF file to
  the temporary directory, where LaTeX searches it (bug 6345).

Jürgen


Bizarre file not found error using pdfpages

2010-04-03 Thread Richard Brown
Using pdfpages to put a pdf doc into my komabook book (lyx 1.6 on Ubuntu
9.10), instead of inserting the file I get a bizarre file not found error,
which states

' Error: pdfpackages error- can't find file
10_home_richard_Desktop_book2_form'

The file it should find, but obviously doesn't, is
/./home/richard/Desktop/book2/form
but with the backslash changed for all those underscores I'm not surprised
the package can't find it. And what gives with the number 10?

Anyone any idea what's going on?

TIA
Richard


Re: Bizarre file not found error using pdfpages

2010-04-03 Thread Paul A. Rubin

On 4/3/2010 7:03 AM, Richard Brown wrote:

Using pdfpages to put a pdf doc into my komabook book (lyx 1.6 on Ubuntu
9.10), instead of inserting the file I get a bizarre file not found error,
which states

' Error: pdfpackages error- can't find file
10_home_richard_Desktop_book2_form'

The file it should find, but obviously doesn't, is
/./home/richard/Desktop/book2/form
but with the backslash changed for all those underscores I'm not surprised
the package can't find it. And what gives with the number 10?

Anyone any idea what's going on?



When LyX compiles a document, it creates a temporary directory 
(typically under /tmp on a Linux system), exports the necessary LaTeX 
file there, copies ancillary files (such as images) there, does any 
necessary format conversions of images there, then runs latex (or 
pdflatex, or whatever), bibtex (if needed) etc. in that temp directory. 
 Files copied from other directories have their names "mangled" to 
indicate the source path, with path separators changed to underscores. 
In mangling the file name, LyX prepends a number (not sure why; might be 
to avoid naming clashes).


So the mangled file name is in fact correct behavior. The question is 
why it's not found. If you repeat the process and open the LyX temp 
buffer (Tools > Preferences > Paths > Temporary directory will point you 
to the parent directory of the temporary buffer) in a file manager, you 
should find a copy of your PDF file there with the corresponding name. 
If not, then apparently LyX was unable to copy it there for some reason.


Did you use Insert > File > External material, with the PDFPages 
template selected, to insert the file?  Also, did you specify the path 
with that "/." at the beginning (rather than "/home/...")?


/Paul



Re: Bizarre file not found error using pdfpages

2010-04-03 Thread Jürgen Spitzmüller
Richard Brown wrote:
> Using pdfpages to put a pdf doc into my komabook book (lyx 1.6 on Ubuntu
> 9.10), instead of inserting the file I get a bizarre file not found error,
> which states
> 
> ' Error: pdfpackages error- can't find file
> 10_home_richard_Desktop_book2_form'

Which version of LyX exactly? LyX 1.6.5 included the following bug fix:

- When using the PDF-Pages external inset, copy the included PDF file to
  the temporary directory, where LaTeX searches it (bug 6345).

Jürgen