Error using -pdfpages- package with ERT and relative paths

2010-04-03 Thread Venable
Dear LyX users,

I am having some trouble using the -pdfpages- package to insert some
external PDFs into my LyX document.

Everything works fine when I use the Insert - File - External Material
menu option. However, for transparency and ease of reading, I would
prefer to use ERT and the -includepdf- command.

I am able to use the \includepdf command writing directly in LaTeX as
long as I specify the absolute path of the pdf to be included, e.g.
\includepdf{c:/research/dummy.pdf}
or
\includepdf{c:/research/dummy}
(whether the pdf extension is specified does not seem to matter)

For collaboration and for cross-project re-use, it would be very
useful if it were not necessary to specify the absolute path, but use
relative paths instead. For example, if the LyX document were in the
c:/research/ folder, it would be preferable to use just
\includepdf{dummy}

However, this does not seem to be possible.(1) As an example, I
imported the example tex file provided in the pdfpages documentation
(2) into LyX and attempted to export to PDF.

With File - Export - pdflatex, no pdf is created. When I click View
PDF, I get the following error message:

File does not exist:
C:/Users/MyName/AppData/Local/Temp/lyx_tempdir.Hp5404/lyx_tmpbuf1/pdf-ex.pdf

Does anyone have a suggestion on how to fix this?

Many thanks in advance.

PS

(1) This is a bit surprising, given that this (includepdf with only a
relative path) is what is created in LaTeX using the Include External
Document menu option and exporting to Plain TeX.

(2) Available at http://www-hep2.fzu.cz/tex/texmf-dist/doc/latex/pdfpages/

In fact, this is what is created using the Include External Document
menu option and exported to Plain TeX.


Re: Error using pdfpages package with ERT and relative paths

2010-04-03 Thread Venable

Venable venabl...@... writes:

 


Apologies for the near-repeat of the previous post. I googled the heck of this
problem and it seems yesterday's posts had not been captured yet.





Error using -pdfpages- package with ERT and relative paths

2010-04-03 Thread Venable
Dear LyX users,

I am having some trouble using the -pdfpages- package to insert some
external PDFs into my LyX document.

Everything works fine when I use the Insert - File - External Material
menu option. However, for transparency and ease of reading, I would
prefer to use ERT and the -includepdf- command.

I am able to use the \includepdf command writing directly in LaTeX as
long as I specify the absolute path of the pdf to be included, e.g.
\includepdf{c:/research/dummy.pdf}
or
\includepdf{c:/research/dummy}
(whether the pdf extension is specified does not seem to matter)

For collaboration and for cross-project re-use, it would be very
useful if it were not necessary to specify the absolute path, but use
relative paths instead. For example, if the LyX document were in the
c:/research/ folder, it would be preferable to use just
\includepdf{dummy}

However, this does not seem to be possible.(1) As an example, I
imported the example tex file provided in the pdfpages documentation
(2) into LyX and attempted to export to PDF.

With File - Export - pdflatex, no pdf is created. When I click View
PDF, I get the following error message:

File does not exist:
C:/Users/MyName/AppData/Local/Temp/lyx_tempdir.Hp5404/lyx_tmpbuf1/pdf-ex.pdf

Does anyone have a suggestion on how to fix this?

Many thanks in advance.

PS

(1) This is a bit surprising, given that this (includepdf with only a
relative path) is what is created in LaTeX using the Include External
Document menu option and exporting to Plain TeX.

(2) Available at http://www-hep2.fzu.cz/tex/texmf-dist/doc/latex/pdfpages/

In fact, this is what is created using the Include External Document
menu option and exported to Plain TeX.


Re: Error using pdfpages package with ERT and relative paths

2010-04-03 Thread Venable

Venable venabl...@... writes:

 


Apologies for the near-repeat of the previous post. I googled the heck of this
problem and it seems yesterday's posts had not been captured yet.





Error using -pdfpages- package with ERT and relative paths

2010-04-03 Thread Venable
Dear LyX users,

I am having some trouble using the -pdfpages- package to insert some
external PDFs into my LyX document.

Everything works fine when I use the Insert - File - External Material
menu option. However, for transparency and ease of reading, I would
prefer to use ERT and the -includepdf- command.

I am able to use the \includepdf command writing directly in LaTeX as
long as I specify the absolute path of the pdf to be included, e.g.
\includepdf{c:/research/dummy.pdf}
or
\includepdf{c:/research/dummy}
(whether the pdf extension is specified does not seem to matter)

For collaboration and for cross-project re-use, it would be very
useful if it were not necessary to specify the absolute path, but use
relative paths instead. For example, if the LyX document were in the
c:/research/ folder, it would be preferable to use just
\includepdf{dummy}

However, this does not seem to be possible.(1) As an example, I
imported the example tex file provided in the pdfpages documentation
(2) into LyX and attempted to export to PDF.

With File - Export - pdflatex, no pdf is created. When I click View
PDF, I get the following error message:

File does not exist:
C:/Users/MyName/AppData/Local/Temp/lyx_tempdir.Hp5404/lyx_tmpbuf1/pdf-ex.pdf

Does anyone have a suggestion on how to fix this?

Many thanks in advance.

PS

(1) This is a bit surprising, given that this (includepdf with only a
relative path) is what is created in LaTeX using the Include External
Document menu option and exporting to Plain TeX.

(2) Available at http://www-hep2.fzu.cz/tex/texmf-dist/doc/latex/pdfpages/

In fact, this is what is created using the Include External Document
menu option and exported to Plain TeX.


Re: Error using pdfpages package with ERT and relative paths

2010-04-03 Thread Venable

Venable  writes:

> 


Apologies for the near-repeat of the previous post. I googled the heck of this
problem and it seems yesterday's posts had not been captured yet.