Re: Lyx doesn't compile but Export Tex then pdfLatex does

2015-07-15 Thread Gilles Moyse
Thank you Scott for your answer. Indeed, I forgot to remove the code from
the preamble, sorry for that. Moreover, since you told me that ERT and
relative paths could be the key, I removed the \includegraphicsand
replaced them include the graphics with its Lyx version through Insert /
Graphics, and it worked under Windows.

To conclude, relative paths in ERT work correctly with Linux, not with
Windows, which is somewhat related to the bug
http://www.lyx.org/trac/ticket/1751

Gilles


___
Gilles Moyse
Mobile : +33 6 38 03 71 63

On 14 July 2015 at 23:47, Scott Kostyshak skost...@lyx.org wrote:

 On Tue, Jul 14, 2015 at 11:11 AM, Gilles Moyse gilles.mo...@gmail.com
 wrote:
 
  Dear all,
 
  I ran into a strange problem today. A Beamer file I often use for my
  presentation does not compile any more on my Windows machine since Lyx
  (v2.1.3) says it cannot find the graphic files I use for the logo. Moving
  them to the .lyx file directory doe not fix the problem, but commenting
 the
  \logo instruction does.
 
  The strange thing is that the same file compiles correctly on my Linux
  machine with Lyx 2.1.3  at the lab.
 
  The even stranger thing is that using File / Export / Latex (pfdLatex)
 on my
  Windows machine and then running pdfLatex test.tex works correctly!
 
  It must be a silly mistake but I cannot find it. I attached the files
 needed
  to replay :
 
  Test.lyx file working correctly on my Linux machine, not on my Windows
 one
  Test.tex generated from .lyx on my Windows machine
  Test.pdf generated from .tex
  upmc.pdf and lip6.pdf are the 2 graphics file not found when compiling
 from
  Lyx on my Windows machine - they must be located relatively to the lyx
 file
  in a subdirectory called res

 Hi Giles,

 I did not try your example because it is far from a minimal example
 (see http://wiki.lyx.org/FAQ/MinimalExample). However, I see that you
 use ERT. In this case, you must give the full path to the files,
 because LyX does not know about them and thus won't copy them to the
 temporary directory.

 Does using the full path to all files work? If not, can you please
 create a minimal example as I reference above?

 Best,

 Scott



Re: Lyx doesn't compile but Export Tex then pdfLatex does

2015-07-15 Thread Enrico Forestieri
Gilles Moyse writes:

 Thank you Scott for your answer. Indeed, I forgot to remove the code
 from the preamble, sorry for that. Moreover, since you told me that ERT
 and relative paths could be the key, I removed the \includegraphicsand
 replaced them include the graphics with its Lyx version through Insert /
 Graphics, and it worked under Windows.
 
 To conclude, relative paths in ERT work correctly with Linux, not with
 Windows, which is somewhat related to the bug 
 http://www.lyx.org/trac/ticket/1751

I rather think that you are hit by http://www.lyx.org/trac/ticket/9453
which should be fixed in lyx 2.1.4.

-- 
Enrico



Re: Lyx doesn't compile but Export Tex then pdfLatex does

2015-07-15 Thread Enrico Forestieri
Gilles Moyse writes:

 Thank you Scott for your answer. Indeed, I forgot to remove the code
 from the preamble, sorry for that. Moreover, since you told me that ERT
 and relative paths could be the key, I removed the \includegraphicsand
 replaced them include the graphics with its Lyx version through Insert /
 Graphics, and it worked under Windows.
 
 To conclude, relative paths in ERT work correctly with Linux, not with
 Windows, which is somewhat related to the bug 
 http://www.lyx.org/trac/ticket/1751

I rather think that you are hit by http://www.lyx.org/trac/ticket/9453
which should be fixed in lyx 2.1.4.

-- 
Enrico



Re: Lyx doesn't compile but Export Tex then pdfLatex does

2015-07-15 Thread Gilles Moyse
Thank you Scott for your answer. Indeed, I forgot to remove the code from
the preamble, sorry for that. Moreover, since you told me that ERT and
relative paths could be the key, I removed the \includegraphicsand
replaced them include the graphics with its Lyx version through Insert /
Graphics, and it worked under Windows.

To conclude, relative paths in ERT work correctly with Linux, not with
Windows, which is somewhat related to the bug
http://www.lyx.org/trac/ticket/1751

Gilles


___
Gilles Moyse
Mobile : +33 6 38 03 71 63

On 14 July 2015 at 23:47, Scott Kostyshak skost...@lyx.org wrote:

 On Tue, Jul 14, 2015 at 11:11 AM, Gilles Moyse gilles.mo...@gmail.com
 wrote:
 
  Dear all,
 
  I ran into a strange problem today. A Beamer file I often use for my
  presentation does not compile any more on my Windows machine since Lyx
  (v2.1.3) says it cannot find the graphic files I use for the logo. Moving
  them to the .lyx file directory doe not fix the problem, but commenting
 the
  \logo instruction does.
 
  The strange thing is that the same file compiles correctly on my Linux
  machine with Lyx 2.1.3  at the lab.
 
  The even stranger thing is that using File / Export / Latex (pfdLatex)
 on my
  Windows machine and then running pdfLatex test.tex works correctly!
 
  It must be a silly mistake but I cannot find it. I attached the files
 needed
  to replay :
 
  Test.lyx file working correctly on my Linux machine, not on my Windows
 one
  Test.tex generated from .lyx on my Windows machine
  Test.pdf generated from .tex
  upmc.pdf and lip6.pdf are the 2 graphics file not found when compiling
 from
  Lyx on my Windows machine - they must be located relatively to the lyx
 file
  in a subdirectory called res

 Hi Giles,

 I did not try your example because it is far from a minimal example
 (see http://wiki.lyx.org/FAQ/MinimalExample). However, I see that you
 use ERT. In this case, you must give the full path to the files,
 because LyX does not know about them and thus won't copy them to the
 temporary directory.

 Does using the full path to all files work? If not, can you please
 create a minimal example as I reference above?

 Best,

 Scott



Re: Lyx doesn't compile but Export Tex then pdfLatex does

2015-07-15 Thread Gilles Moyse
Thank you Scott for your answer. Indeed, I forgot to remove the code from
the preamble, sorry for that. Moreover, since you told me that ERT and
relative paths could be the key, I removed the "\includegraphics"and
replaced them include the graphics with its Lyx version through Insert /
Graphics, and it worked under Windows.

To conclude, relative paths in ERT work correctly with Linux, not with
Windows, which is somewhat related to the bug
http://www.lyx.org/trac/ticket/1751

Gilles


___
Gilles Moyse
Mobile : +33 6 38 03 71 63

On 14 July 2015 at 23:47, Scott Kostyshak  wrote:

> On Tue, Jul 14, 2015 at 11:11 AM, Gilles Moyse 
> wrote:
> >
> > Dear all,
> >
> > I ran into a strange problem today. A Beamer file I often use for my
> > presentation does not compile any more on my Windows machine since Lyx
> > (v2.1.3) says it cannot find the graphic files I use for the logo. Moving
> > them to the .lyx file directory doe not fix the problem, but commenting
> the
> > \logo instruction does.
> >
> > The strange thing is that the same file compiles correctly on my Linux
> > machine with Lyx 2.1.3  at the lab.
> >
> > The even stranger thing is that using File / Export / Latex (pfdLatex)
> on my
> > Windows machine and then running "pdfLatex test.tex" works correctly!
> >
> > It must be a silly mistake but I cannot find it. I attached the files
> needed
> > to replay :
> >
> > Test.lyx file working correctly on my Linux machine, not on my Windows
> one
> > Test.tex generated from .lyx on my Windows machine
> > Test.pdf generated from .tex
> > upmc.pdf and lip6.pdf are the 2 graphics file not found when compiling
> from
> > Lyx on my Windows machine - they must be located relatively to the lyx
> file
> > in a subdirectory called "res"
>
> Hi Giles,
>
> I did not try your example because it is far from a minimal example
> (see http://wiki.lyx.org/FAQ/MinimalExample). However, I see that you
> use ERT. In this case, you must give the full path to the files,
> because LyX does not know about them and thus won't copy them to the
> temporary directory.
>
> Does using the full path to all files work? If not, can you please
> create a minimal example as I reference above?
>
> Best,
>
> Scott
>


Re: Lyx doesn't compile but Export Tex then pdfLatex does

2015-07-15 Thread Enrico Forestieri
Gilles Moyse writes:

> Thank you Scott for your answer. Indeed, I forgot to remove the code
> from the preamble, sorry for that. Moreover, since you told me that ERT
> and relative paths could be the key, I removed the "\includegraphics"and
> replaced them include the graphics with its Lyx version through Insert /
> Graphics, and it worked under Windows.
> 
> To conclude, relative paths in ERT work correctly with Linux, not with
> Windows, which is somewhat related to the bug 
> http://www.lyx.org/trac/ticket/1751

I rather think that you are hit by http://www.lyx.org/trac/ticket/9453
which should be fixed in lyx 2.1.4.

-- 
Enrico



Re: Lyx doesn't compile but Export Tex then pdfLatex does

2015-07-14 Thread Rich Shepard

On Tue, 14 Jul 2015, Gilles Moyse wrote:


I ran into a strange problem today. A Beamer file I often use for my
presentation does not compile any more on my Windows machine since Lyx
(v2.1.3) says it cannot find the graphic files I use for the logo. Moving
them to the .lyx file directory doe not fix the problem, but commenting
the \logo instruction does.



The even stranger thing is that using File / Export / Latex (pfdLatex) on
my Windows machine and then running pdfLatex test.tex works correctly!


Gilles,

  I know less than nothing about windoze since I stopped using it in 1997.
But, I can report that lyx/beamer documents on linux, lyx/knitr documents,
and PSTricks graphics all compile using pdflatex when they will not preview
using dvips.

  This makes sense when we think about it: if the documents are intended to
result in PDF files, then the driver should be pdxlinux. But, the preview
using ctrl-p is in PostScript, not PDF format and other than regular
text/graphics documents in LyX might not properly display.

  Avoid the preview and look only at the pdxlatex-compiled output.

Rich


Re: Lyx doesn't compile but Export Tex then pdfLatex does

2015-07-14 Thread Scott Kostyshak
On Tue, Jul 14, 2015 at 11:11 AM, Gilles Moyse gilles.mo...@gmail.com wrote:

 Dear all,

 I ran into a strange problem today. A Beamer file I often use for my
 presentation does not compile any more on my Windows machine since Lyx
 (v2.1.3) says it cannot find the graphic files I use for the logo. Moving
 them to the .lyx file directory doe not fix the problem, but commenting the
 \logo instruction does.

 The strange thing is that the same file compiles correctly on my Linux
 machine with Lyx 2.1.3  at the lab.

 The even stranger thing is that using File / Export / Latex (pfdLatex) on my
 Windows machine and then running pdfLatex test.tex works correctly!

 It must be a silly mistake but I cannot find it. I attached the files needed
 to replay :

 Test.lyx file working correctly on my Linux machine, not on my Windows one
 Test.tex generated from .lyx on my Windows machine
 Test.pdf generated from .tex
 upmc.pdf and lip6.pdf are the 2 graphics file not found when compiling from
 Lyx on my Windows machine - they must be located relatively to the lyx file
 in a subdirectory called res

Hi Giles,

I did not try your example because it is far from a minimal example
(see http://wiki.lyx.org/FAQ/MinimalExample). However, I see that you
use ERT. In this case, you must give the full path to the files,
because LyX does not know about them and thus won't copy them to the
temporary directory.

Does using the full path to all files work? If not, can you please
create a minimal example as I reference above?

Best,

Scott


Re: Lyx doesn't compile but Export Tex then pdfLatex does

2015-07-14 Thread Rich Shepard

On Tue, 14 Jul 2015, Gilles Moyse wrote:


I ran into a strange problem today. A Beamer file I often use for my
presentation does not compile any more on my Windows machine since Lyx
(v2.1.3) says it cannot find the graphic files I use for the logo. Moving
them to the .lyx file directory doe not fix the problem, but commenting
the \logo instruction does.



The even stranger thing is that using File / Export / Latex (pfdLatex) on
my Windows machine and then running pdfLatex test.tex works correctly!


Gilles,

  I know less than nothing about windoze since I stopped using it in 1997.
But, I can report that lyx/beamer documents on linux, lyx/knitr documents,
and PSTricks graphics all compile using pdflatex when they will not preview
using dvips.

  This makes sense when we think about it: if the documents are intended to
result in PDF files, then the driver should be pdxlinux. But, the preview
using ctrl-p is in PostScript, not PDF format and other than regular
text/graphics documents in LyX might not properly display.

  Avoid the preview and look only at the pdxlatex-compiled output.

Rich


Re: Lyx doesn't compile but Export Tex then pdfLatex does

2015-07-14 Thread Scott Kostyshak
On Tue, Jul 14, 2015 at 11:11 AM, Gilles Moyse gilles.mo...@gmail.com wrote:

 Dear all,

 I ran into a strange problem today. A Beamer file I often use for my
 presentation does not compile any more on my Windows machine since Lyx
 (v2.1.3) says it cannot find the graphic files I use for the logo. Moving
 them to the .lyx file directory doe not fix the problem, but commenting the
 \logo instruction does.

 The strange thing is that the same file compiles correctly on my Linux
 machine with Lyx 2.1.3  at the lab.

 The even stranger thing is that using File / Export / Latex (pfdLatex) on my
 Windows machine and then running pdfLatex test.tex works correctly!

 It must be a silly mistake but I cannot find it. I attached the files needed
 to replay :

 Test.lyx file working correctly on my Linux machine, not on my Windows one
 Test.tex generated from .lyx on my Windows machine
 Test.pdf generated from .tex
 upmc.pdf and lip6.pdf are the 2 graphics file not found when compiling from
 Lyx on my Windows machine - they must be located relatively to the lyx file
 in a subdirectory called res

Hi Giles,

I did not try your example because it is far from a minimal example
(see http://wiki.lyx.org/FAQ/MinimalExample). However, I see that you
use ERT. In this case, you must give the full path to the files,
because LyX does not know about them and thus won't copy them to the
temporary directory.

Does using the full path to all files work? If not, can you please
create a minimal example as I reference above?

Best,

Scott


Re: Lyx doesn't compile but Export Tex then pdfLatex does

2015-07-14 Thread Rich Shepard

On Tue, 14 Jul 2015, Gilles Moyse wrote:


I ran into a strange problem today. A Beamer file I often use for my
presentation does not compile any more on my Windows machine since Lyx
(v2.1.3) says it cannot find the graphic files I use for the logo. Moving
them to the .lyx file directory doe not fix the problem, but commenting
the \logo instruction does.



The even stranger thing is that using File / Export / Latex (pfdLatex) on
my Windows machine and then running "pdfLatex test.tex" works correctly!


Gilles,

  I know less than nothing about windoze since I stopped using it in 1997.
But, I can report that lyx/beamer documents on linux, lyx/knitr documents,
and PSTricks graphics all compile using pdflatex when they will not preview
using dvips.

  This makes sense when we think about it: if the documents are intended to
result in PDF files, then the driver should be pdxlinux. But, the preview
using ctrl-p is in PostScript, not PDF format and other than regular
text/graphics documents in LyX might not properly display.

  Avoid the preview and look only at the pdxlatex-compiled output.

Rich


Re: Lyx doesn't compile but Export Tex then pdfLatex does

2015-07-14 Thread Scott Kostyshak
On Tue, Jul 14, 2015 at 11:11 AM, Gilles Moyse  wrote:
>
> Dear all,
>
> I ran into a strange problem today. A Beamer file I often use for my
> presentation does not compile any more on my Windows machine since Lyx
> (v2.1.3) says it cannot find the graphic files I use for the logo. Moving
> them to the .lyx file directory doe not fix the problem, but commenting the
> \logo instruction does.
>
> The strange thing is that the same file compiles correctly on my Linux
> machine with Lyx 2.1.3  at the lab.
>
> The even stranger thing is that using File / Export / Latex (pfdLatex) on my
> Windows machine and then running "pdfLatex test.tex" works correctly!
>
> It must be a silly mistake but I cannot find it. I attached the files needed
> to replay :
>
> Test.lyx file working correctly on my Linux machine, not on my Windows one
> Test.tex generated from .lyx on my Windows machine
> Test.pdf generated from .tex
> upmc.pdf and lip6.pdf are the 2 graphics file not found when compiling from
> Lyx on my Windows machine - they must be located relatively to the lyx file
> in a subdirectory called "res"

Hi Giles,

I did not try your example because it is far from a minimal example
(see http://wiki.lyx.org/FAQ/MinimalExample). However, I see that you
use ERT. In this case, you must give the full path to the files,
because LyX does not know about them and thus won't copy them to the
temporary directory.

Does using the full path to all files work? If not, can you please
create a minimal example as I reference above?

Best,

Scott