Re: Latex error on graphics insert (LyX 1.3.7)

2006-01-28 Thread Herbert Voss

Marc D. wrote:


I still don't understand where that line came from, since
when I go to Layout-Document-Packages it says that
my Postscript driver is Default. Can I change that
to something else in my preferences or lyxrc?



replying to myself...

In testing, I've found that if I create a NEW file,
I get \graphics default.  This would explain why the new
file was working.

However, in a1.ps, even though I have set


you _cannot_ get a PostScript file when running pdflatex.
So you did something else, like viewing PostScript output.
Then LyX converts the jpegs to eps and maybe then anables
the dvips option of the PostScript driver and didn't change
this one when going back to pdflatex.

Herbert



Re: Latex error on graphics insert (LyX 1.3.7)

2006-01-28 Thread Georg Baum
Am Freitag, 27. Januar 2006 22:07 schrieb Paul A. Rubin:
 In your preferences file, I found the following:
 
 \format pdf pdf PDF (pdflatex) 
 \format pdf2 pdf PDF (ps to pdf) 
 
 Note that the labels for the pdf and pdf2 extensions are actually the 
 reverse of what the converters do (i.e., pdf is via ps, not via 
 pdflatex).  So if you're selecting View-PDF (ps to pdf), I think you're 
 actually running pdflatex, and if you're selecting View-PDF (pdflatex), 
 I think you're actually running latex, dvips and ps2pdf13.

Marc, you should really delete these lines from your preferences file and 
use the defaults that come with LyX (if not already done).

What do we learn from this lengthy debug session? Always provide minimal 
example files!


Georg



Re: Latex error on graphics insert (LyX 1.3.7)

2006-01-28 Thread Herbert Voss

Georg Baum wrote:

Am Freitag, 27. Januar 2006 22:07 schrieb Paul A. Rubin:


In your preferences file, I found the following:

\format pdf pdf PDF (pdflatex) 
\format pdf2 pdf PDF (ps to pdf) 

Note that the labels for the pdf and pdf2 extensions are actually the 
reverse of what the converters do (i.e., pdf is via ps, not via 
pdflatex).  So if you're selecting View-PDF (ps to pdf), I think you're 
actually running pdflatex, and if you're selecting View-PDF (pdflatex), 
I think you're actually running latex, dvips and ps2pdf13.



Marc, you should really delete these lines from your preferences file and 
use the defaults that come with LyX (if not already done).


these entries are nonsense, but could not be a problem,
because they have the same meaning.

Herbert



Re: Latex error on graphics insert (LyX 1.3.7)

2006-01-28 Thread Stephen Harris


- Original Message - 
From: Georg Baum [EMAIL PROTECTED]

To: lyx-users@lists.lyx.org
Sent: Saturday, January 28, 2006 3:10 AM
Subject: Re: Latex error on graphics insert (LyX 1.3.7)



Am Freitag, 27. Januar 2006 22:07 schrieb Paul A. Rubin:

In your preferences file, I found the following:

\format pdf pdf PDF (pdflatex) 
\format pdf2 pdf PDF (ps to pdf) 

Note that the labels for the pdf and pdf2 extensions are actually the
reverse of what the converters do (i.e., pdf is via ps, not via
pdflatex).  So if you're selecting View-PDF (ps to pdf), I think you're
actually running pdflatex, and if you're selecting View-PDF (pdflatex),
I think you're actually running latex, dvips and ps2pdf13.


Marc, you should really delete these lines from your preferences file and
use the defaults that come with LyX (if not already done).

What do we learn from this lengthy debug session? Always provide minimal
example files!


Georg



Hello Marc,

I came to the same conclusion about using the defaults.

I use the defaults with Windows and Lyx 1.3.7 and on Linux Fedora4
which has LyX1.3.6. On both systems I can use the DVI, all 3 pdf and
the postscript viewers, in order to view your file.

That means the image files are OK, and the doc syntax structure is OK,
once \graphics dvips is eliminated. On the Windows system the/my
Layout-Document-Packages, the graphics driver is set to default
(as yours was) and it works so it seems just \graphics dvips is
problematic and maybe your other documents have that line also.
You would still need to be careful if they contained eps images.

So I was going to recommend saving preferences somewhere safe,
just in case, but reinstalling the defaults because they work for other
people and there is a fair chance your editing of lyxrc was faulty.
And I learned a lesson about the value of providing minimal examples.

Hope your other files are easy to fix,
Stephen 





Re: Latex error on graphics insert (LyX 1.3.7)

2006-01-28 Thread Marc D.


On 28 Jan 06, at 04:10, Stephen Harris wrote:

[...]
Hello Marc,

I came to the same conclusion about using the defaults.

I use the defaults with Windows and Lyx 1.3.7 and on Linux Fedora4
which has LyX1.3.6. On both systems I can use the DVI, all 3 pdf and
the postscript viewers, in order to view your file.


The defaults do not seem to work under MacOSX, in that they specify xpdf
rather than open to view files. This is probably fine if the user
is using XWindows subsystem to run LyX, but not if the user wants
to run LyX under the MacOS GUI. The only changes I
made to the defaults were to lyxrc to change xpdf to open.
(yes, I could have just specified those two lines in lyxrc.
Instead I elected to just copy lyxrc.default and change those
2 lines. It should have resulted in the same thing.)

Everything else was as provided, as far as I can tell.
However, I will erase everything again and start over, using
just the defaults modulo the above changes, and see if it does,
in fact, work with the \graphics default entry in the test file.
Then will see if it works with my older files.






Re: Latex error on graphics insert (LyX 1.3.7)

2006-01-28 Thread Georg Baum
Am Samstag, 28. Januar 2006 17:14 schrieb Marc D.:
 The defaults do not seem to work under MacOSX, in that they specify xpdf
 rather than open to view files. This is probably fine if the user
 is using XWindows subsystem to run LyX, but not if the user wants
 to run LyX under the MacOS GUI. The only changes I
 made to the defaults were to lyxrc to change xpdf to open.
 (yes, I could have just specified those two lines in lyxrc.
 Instead I elected to just copy lyxrc.default and change those
 2 lines. It should have resulted in the same thing.)

I did not talk about the viewer settings. Of course you can set them to 
open, and it should work. I meant these two lines (found by Paul):

\format pdf pdf PDF (pdflatex) 
\format pdf2 pdf PDF (ps to pdf) 

These are wrong! Read Pauls explanation if it is not clear why.


Georg



Re: Latex error on graphics insert (LyX 1.3.7)

2006-01-28 Thread Herbert Voss

Georg Baum wrote:

Am Samstag, 28. Januar 2006 17:14 schrieb Marc D.:


The defaults do not seem to work under MacOSX, in that they specify xpdf
rather than open to view files. This is probably fine if the user
is using XWindows subsystem to run LyX, but not if the user wants
to run LyX under the MacOS GUI. The only changes I
made to the defaults were to lyxrc to change xpdf to open.
(yes, I could have just specified those two lines in lyxrc.
Instead I elected to just copy lyxrc.default and change those
2 lines. It should have resulted in the same thing.)



I did not talk about the viewer settings. Of course you can set them to 
open, and it should work. I meant these two lines (found by Paul):


\format pdf pdf PDF (pdflatex) 
\format pdf2 pdf PDF (ps to pdf) 

These are wrong! Read Pauls explanation if it is not clear why.


??? Why are these lines _wrong_?

Herbert




Re: Latex error on graphics insert (LyX 1.3.7)

2006-01-28 Thread Georg Baum
Am Samstag, 28. Januar 2006 18:07 schrieb Herbert Voss:
 Georg Baum wrote:
  \format pdf pdf PDF (pdflatex) 
  \format pdf2 pdf PDF (ps to pdf) 
  
  These are wrong! Read Pauls explanation if it is not clear why.
 
 ??? Why are these lines _wrong_?

Read it in Pauls mail. Short version: They are wrong because the comments 
(pdflatex and ps to pdf) don't match the converters. The defaults are

\Format pdf   pdf  PDF (ps2pdf)   P
\Format pdf2  pdf  PDF (pdflatex) F
\Format pdf3  pdf  PDF (dvipdfm)  m
\converter pspdf  ps2pdf13 $$i 
\converter latex pdf2 pdflatex $$i latex
\converter dvi   pdf3 dvipdfm $$i 


Georg



Re: Latex error on graphics insert (LyX 1.3.7)

2006-01-28 Thread Herbert Voss

Georg Baum wrote:

Am Samstag, 28. Januar 2006 18:07 schrieb Herbert Voss:


Georg Baum wrote:


\format pdf pdf PDF (pdflatex) 
\format pdf2 pdf PDF (ps to pdf) 

These are wrong! Read Pauls explanation if it is not clear why.


??? Why are these lines _wrong_?



Read it in Pauls mail. Short version: They are wrong because the comments 
(pdflatex and ps to pdf) don't match the converters. The defaults are


ok ok, my question was why it is _wrong_! It is wrong
in a logical way, but it should work without LyX internal
errors, right?

Herbert



\Format pdf   pdf  PDF (ps2pdf)   P
\Format pdf2  pdf  PDF (pdflatex) F
\Format pdf3  pdf  PDF (dvipdfm)  m
\converter pspdf  ps2pdf13 $$i 
\converter latex pdf2 pdflatex $$i latex
\converter dvi   pdf3 dvipdfm $$i 





Re: Latex error on graphics insert (LyX 1.3.7)

2006-01-28 Thread Marc D.


On 28 Jan 06, at 08:33, Georg Baum wrote:


Am Samstag, 28. Januar 2006 17:14 schrieb Marc D.:
The defaults do not seem to work under MacOSX, in that they  
specify xpdf

rather than open to view files. This is probably fine if the user
is using XWindows subsystem to run LyX, but not if the user wants
to run LyX under the MacOS GUI. The only changes I
made to the defaults were to lyxrc to change xpdf to open.
(yes, I could have just specified those two lines in lyxrc.
Instead I elected to just copy lyxrc.default and change those
2 lines. It should have resulted in the same thing.)


I did not talk about the viewer settings. Of course you can set  
them to

open, and it should work. I meant these two lines (found by Paul):

\format pdf pdf PDF (pdflatex) 
\format pdf2 pdf PDF (ps to pdf) 

These are wrong! Read Pauls explanation if it is not clear why.


Georg



OK, I have completed a full reinstall (I'm getting VERY good at this!)

LyX 1.3.7 on MacOSX 10.4.4.
Downloaded from http://wiki.lyx.org/LyX/LyXOnMac?from=LyX.Mac

LaTeX install from MacTeX.dmg downloaded from Tug was not touched.

OK. I have deleted LyX, deleted all the preferences
Library-Application Support-LyX (actually deleted the whole directory)
I then reinstalled LyX from a fresh download.

Opened my a1.lyx that worked before...

LyX does a whole bunch of stuff on the console, creating the
Library/Application Support/LyX directory and doing some self
configuration.

When I try View - PDF (ps to pdf) it doesn't display the images.

Under Layout-Document-Packages, Postscript driver was set to dvips.
This was AFTER resetting it in the document previously, as documented
previous in this thread.

So I manually reset dvips back to default, apply...

View - PDF (ps to pdf) now works fine and display my images.

There is now no preferences file in the Library-Application Support- 
LyX

directory. However, LyX.app/Contents/Resources/lyx
in the dmg file I just downloaded has the following:

\format pdf pdf PDF (pdflatex) 
\format pdf2 pdf PDF (ps to pdf) 

This also appears in preferences where I've installed LyX.app.

So may I suggest that if this is so wrong that the distribution
itself needs to be fixed, since I can guarantee that I had
nothing to do with these settings.

regards,
Marc



Re: Latex error on graphics insert (LyX 1.3.7)

2006-01-28 Thread Georg Baum
Am Samstag, 28. Januar 2006 19:47 schrieb Marc D.:
 There is now no preferences file in the Library-Application Support- 
  LyX
 directory. However, LyX.app/Contents/Resources/lyx
 in the dmg file I just downloaded has the following:
 
 \format pdf pdf PDF (pdflatex) 
 \format pdf2 pdf PDF (ps to pdf) 
 
 This also appears in preferences where I've installed LyX.app.
 
 So may I suggest that if this is so wrong that the distribution
 itself needs to be fixed, since I can guarantee that I had
 nothing to do with these settings.

OK finally we have found the problem. You are absolutely right, this 
should not be like that.
Bennett, could you please correct the installer?
Maybe this is also the reason for 
http://bugzilla.lyx.org/show_bug.cgi?id=2127 ?


Georg



Re: Latex error on graphics insert (LyX 1.3.7)

2006-01-28 Thread Georg Baum
Am Samstag, 28. Januar 2006 19:43 schrieb Herbert Voss:
 ok ok, my question was why it is _wrong_! It is wrong
 in a logical way, but it should work without LyX internal
 errors, right?

Yes. But it might have lead Marc to think that he is converting via 
pdflatex when he actually used ps2pdf. I think there are no more 
misunderstandings now :-)


Georg



Re: Latex error on graphics insert (LyX 1.3.7)

2006-01-28 Thread Bennett Helm

On Jan 28, 2006, at 2:04 PM, Georg Baum wrote:


Am Samstag, 28. Januar 2006 19:47 schrieb Marc D.:

There is now no preferences file in the Library-Application Support-

LyX

directory. However, LyX.app/Contents/Resources/lyx
in the dmg file I just downloaded has the following:

\format pdf pdf PDF (pdflatex) 
\format pdf2 pdf PDF (ps to pdf) 

This also appears in preferences where I've installed LyX.app.

So may I suggest that if this is so wrong that the distribution
itself needs to be fixed, since I can guarantee that I had
nothing to do with these settings.


OK finally we have found the problem. You are absolutely right, this
should not be like that.
Bennett, could you please correct the installer?
Maybe this is also the reason for
http://bugzilla.lyx.org/show_bug.cgi?id=2127 ?


Yes ... it appears to be my mistake somewhere along the line. But  
those two lines have been in the LyX/Mac default preferences for a  
while and haven't caused a problem before. Moreover, deleting those  
lines from within the LyX.app bundle -- i.e., the default LyX/Mac  
preferences -- does not affect bug 2127 substantially. (I'll post new  
comments on bugzilla so we have them there: http://bugzilla.lyx.org/ 
show_bug.cgi?id=2127.)


Bennett


--
Bennett Helm
Department of Philosophy
Franklin  Marshall College
P. O. Box 3003
Lancaster, PA 17604-3003
Voice: (717) 291-4392
Fax: (717) 291-4369
http://www.fandm.edu/Departments/Philosophy/staticpages/index.php? 
page=helm





Re: Latex error on graphics insert (LyX 1.3.7)

2006-01-28 Thread Herbert Voss

Marc D. wrote:


I still don't understand where that line came from, since
when I go to Layout-Document-Packages it says that
my Postscript driver is Default. Can I change that
to something else in my preferences or lyxrc?



replying to myself...

In testing, I've found that if I create a NEW file,
I get \graphics default.  This would explain why the new
file was working.

However, in a1.ps, even though I have set


you _cannot_ get a PostScript file when running pdflatex.
So you did something else, like viewing PostScript output.
Then LyX converts the jpegs to eps and maybe then anables
the dvips option of the PostScript driver and didn't change
this one when going back to pdflatex.

Herbert



Re: Latex error on graphics insert (LyX 1.3.7)

2006-01-28 Thread Georg Baum
Am Freitag, 27. Januar 2006 22:07 schrieb Paul A. Rubin:
 In your preferences file, I found the following:
 
 \format pdf pdf PDF (pdflatex) 
 \format pdf2 pdf PDF (ps to pdf) 
 
 Note that the labels for the pdf and pdf2 extensions are actually the 
 reverse of what the converters do (i.e., pdf is via ps, not via 
 pdflatex).  So if you're selecting View-PDF (ps to pdf), I think you're 
 actually running pdflatex, and if you're selecting View-PDF (pdflatex), 
 I think you're actually running latex, dvips and ps2pdf13.

Marc, you should really delete these lines from your preferences file and 
use the defaults that come with LyX (if not already done).

What do we learn from this lengthy debug session? Always provide minimal 
example files!


Georg



Re: Latex error on graphics insert (LyX 1.3.7)

2006-01-28 Thread Herbert Voss

Georg Baum wrote:

Am Freitag, 27. Januar 2006 22:07 schrieb Paul A. Rubin:


In your preferences file, I found the following:

\format pdf pdf PDF (pdflatex) 
\format pdf2 pdf PDF (ps to pdf) 

Note that the labels for the pdf and pdf2 extensions are actually the 
reverse of what the converters do (i.e., pdf is via ps, not via 
pdflatex).  So if you're selecting View-PDF (ps to pdf), I think you're 
actually running pdflatex, and if you're selecting View-PDF (pdflatex), 
I think you're actually running latex, dvips and ps2pdf13.



Marc, you should really delete these lines from your preferences file and 
use the defaults that come with LyX (if not already done).


these entries are nonsense, but could not be a problem,
because they have the same meaning.

Herbert



Re: Latex error on graphics insert (LyX 1.3.7)

2006-01-28 Thread Stephen Harris


- Original Message - 
From: Georg Baum [EMAIL PROTECTED]

To: lyx-users@lists.lyx.org
Sent: Saturday, January 28, 2006 3:10 AM
Subject: Re: Latex error on graphics insert (LyX 1.3.7)



Am Freitag, 27. Januar 2006 22:07 schrieb Paul A. Rubin:

In your preferences file, I found the following:

\format pdf pdf PDF (pdflatex) 
\format pdf2 pdf PDF (ps to pdf) 

Note that the labels for the pdf and pdf2 extensions are actually the
reverse of what the converters do (i.e., pdf is via ps, not via
pdflatex).  So if you're selecting View-PDF (ps to pdf), I think you're
actually running pdflatex, and if you're selecting View-PDF (pdflatex),
I think you're actually running latex, dvips and ps2pdf13.


Marc, you should really delete these lines from your preferences file and
use the defaults that come with LyX (if not already done).

What do we learn from this lengthy debug session? Always provide minimal
example files!


Georg



Hello Marc,

I came to the same conclusion about using the defaults.

I use the defaults with Windows and Lyx 1.3.7 and on Linux Fedora4
which has LyX1.3.6. On both systems I can use the DVI, all 3 pdf and
the postscript viewers, in order to view your file.

That means the image files are OK, and the doc syntax structure is OK,
once \graphics dvips is eliminated. On the Windows system the/my
Layout-Document-Packages, the graphics driver is set to default
(as yours was) and it works so it seems just \graphics dvips is
problematic and maybe your other documents have that line also.
You would still need to be careful if they contained eps images.

So I was going to recommend saving preferences somewhere safe,
just in case, but reinstalling the defaults because they work for other
people and there is a fair chance your editing of lyxrc was faulty.
And I learned a lesson about the value of providing minimal examples.

Hope your other files are easy to fix,
Stephen 





Re: Latex error on graphics insert (LyX 1.3.7)

2006-01-28 Thread Marc D.


On 28 Jan 06, at 04:10, Stephen Harris wrote:

[...]
Hello Marc,

I came to the same conclusion about using the defaults.

I use the defaults with Windows and Lyx 1.3.7 and on Linux Fedora4
which has LyX1.3.6. On both systems I can use the DVI, all 3 pdf and
the postscript viewers, in order to view your file.


The defaults do not seem to work under MacOSX, in that they specify xpdf
rather than open to view files. This is probably fine if the user
is using XWindows subsystem to run LyX, but not if the user wants
to run LyX under the MacOS GUI. The only changes I
made to the defaults were to lyxrc to change xpdf to open.
(yes, I could have just specified those two lines in lyxrc.
Instead I elected to just copy lyxrc.default and change those
2 lines. It should have resulted in the same thing.)

Everything else was as provided, as far as I can tell.
However, I will erase everything again and start over, using
just the defaults modulo the above changes, and see if it does,
in fact, work with the \graphics default entry in the test file.
Then will see if it works with my older files.






Re: Latex error on graphics insert (LyX 1.3.7)

2006-01-28 Thread Georg Baum
Am Samstag, 28. Januar 2006 17:14 schrieb Marc D.:
 The defaults do not seem to work under MacOSX, in that they specify xpdf
 rather than open to view files. This is probably fine if the user
 is using XWindows subsystem to run LyX, but not if the user wants
 to run LyX under the MacOS GUI. The only changes I
 made to the defaults were to lyxrc to change xpdf to open.
 (yes, I could have just specified those two lines in lyxrc.
 Instead I elected to just copy lyxrc.default and change those
 2 lines. It should have resulted in the same thing.)

I did not talk about the viewer settings. Of course you can set them to 
open, and it should work. I meant these two lines (found by Paul):

\format pdf pdf PDF (pdflatex) 
\format pdf2 pdf PDF (ps to pdf) 

These are wrong! Read Pauls explanation if it is not clear why.


Georg



Re: Latex error on graphics insert (LyX 1.3.7)

2006-01-28 Thread Herbert Voss

Georg Baum wrote:

Am Samstag, 28. Januar 2006 17:14 schrieb Marc D.:


The defaults do not seem to work under MacOSX, in that they specify xpdf
rather than open to view files. This is probably fine if the user
is using XWindows subsystem to run LyX, but not if the user wants
to run LyX under the MacOS GUI. The only changes I
made to the defaults were to lyxrc to change xpdf to open.
(yes, I could have just specified those two lines in lyxrc.
Instead I elected to just copy lyxrc.default and change those
2 lines. It should have resulted in the same thing.)



I did not talk about the viewer settings. Of course you can set them to 
open, and it should work. I meant these two lines (found by Paul):


\format pdf pdf PDF (pdflatex) 
\format pdf2 pdf PDF (ps to pdf) 

These are wrong! Read Pauls explanation if it is not clear why.


??? Why are these lines _wrong_?

Herbert




Re: Latex error on graphics insert (LyX 1.3.7)

2006-01-28 Thread Georg Baum
Am Samstag, 28. Januar 2006 18:07 schrieb Herbert Voss:
 Georg Baum wrote:
  \format pdf pdf PDF (pdflatex) 
  \format pdf2 pdf PDF (ps to pdf) 
  
  These are wrong! Read Pauls explanation if it is not clear why.
 
 ??? Why are these lines _wrong_?

Read it in Pauls mail. Short version: They are wrong because the comments 
(pdflatex and ps to pdf) don't match the converters. The defaults are

\Format pdf   pdf  PDF (ps2pdf)   P
\Format pdf2  pdf  PDF (pdflatex) F
\Format pdf3  pdf  PDF (dvipdfm)  m
\converter pspdf  ps2pdf13 $$i 
\converter latex pdf2 pdflatex $$i latex
\converter dvi   pdf3 dvipdfm $$i 


Georg



Re: Latex error on graphics insert (LyX 1.3.7)

2006-01-28 Thread Herbert Voss

Georg Baum wrote:

Am Samstag, 28. Januar 2006 18:07 schrieb Herbert Voss:


Georg Baum wrote:


\format pdf pdf PDF (pdflatex) 
\format pdf2 pdf PDF (ps to pdf) 

These are wrong! Read Pauls explanation if it is not clear why.


??? Why are these lines _wrong_?



Read it in Pauls mail. Short version: They are wrong because the comments 
(pdflatex and ps to pdf) don't match the converters. The defaults are


ok ok, my question was why it is _wrong_! It is wrong
in a logical way, but it should work without LyX internal
errors, right?

Herbert



\Format pdf   pdf  PDF (ps2pdf)   P
\Format pdf2  pdf  PDF (pdflatex) F
\Format pdf3  pdf  PDF (dvipdfm)  m
\converter pspdf  ps2pdf13 $$i 
\converter latex pdf2 pdflatex $$i latex
\converter dvi   pdf3 dvipdfm $$i 





Re: Latex error on graphics insert (LyX 1.3.7)

2006-01-28 Thread Marc D.


On 28 Jan 06, at 08:33, Georg Baum wrote:


Am Samstag, 28. Januar 2006 17:14 schrieb Marc D.:
The defaults do not seem to work under MacOSX, in that they  
specify xpdf

rather than open to view files. This is probably fine if the user
is using XWindows subsystem to run LyX, but not if the user wants
to run LyX under the MacOS GUI. The only changes I
made to the defaults were to lyxrc to change xpdf to open.
(yes, I could have just specified those two lines in lyxrc.
Instead I elected to just copy lyxrc.default and change those
2 lines. It should have resulted in the same thing.)


I did not talk about the viewer settings. Of course you can set  
them to

open, and it should work. I meant these two lines (found by Paul):

\format pdf pdf PDF (pdflatex) 
\format pdf2 pdf PDF (ps to pdf) 

These are wrong! Read Pauls explanation if it is not clear why.


Georg



OK, I have completed a full reinstall (I'm getting VERY good at this!)

LyX 1.3.7 on MacOSX 10.4.4.
Downloaded from http://wiki.lyx.org/LyX/LyXOnMac?from=LyX.Mac

LaTeX install from MacTeX.dmg downloaded from Tug was not touched.

OK. I have deleted LyX, deleted all the preferences
Library-Application Support-LyX (actually deleted the whole directory)
I then reinstalled LyX from a fresh download.

Opened my a1.lyx that worked before...

LyX does a whole bunch of stuff on the console, creating the
Library/Application Support/LyX directory and doing some self
configuration.

When I try View - PDF (ps to pdf) it doesn't display the images.

Under Layout-Document-Packages, Postscript driver was set to dvips.
This was AFTER resetting it in the document previously, as documented
previous in this thread.

So I manually reset dvips back to default, apply...

View - PDF (ps to pdf) now works fine and display my images.

There is now no preferences file in the Library-Application Support- 
LyX

directory. However, LyX.app/Contents/Resources/lyx
in the dmg file I just downloaded has the following:

\format pdf pdf PDF (pdflatex) 
\format pdf2 pdf PDF (ps to pdf) 

This also appears in preferences where I've installed LyX.app.

So may I suggest that if this is so wrong that the distribution
itself needs to be fixed, since I can guarantee that I had
nothing to do with these settings.

regards,
Marc



Re: Latex error on graphics insert (LyX 1.3.7)

2006-01-28 Thread Georg Baum
Am Samstag, 28. Januar 2006 19:47 schrieb Marc D.:
 There is now no preferences file in the Library-Application Support- 
  LyX
 directory. However, LyX.app/Contents/Resources/lyx
 in the dmg file I just downloaded has the following:
 
 \format pdf pdf PDF (pdflatex) 
 \format pdf2 pdf PDF (ps to pdf) 
 
 This also appears in preferences where I've installed LyX.app.
 
 So may I suggest that if this is so wrong that the distribution
 itself needs to be fixed, since I can guarantee that I had
 nothing to do with these settings.

OK finally we have found the problem. You are absolutely right, this 
should not be like that.
Bennett, could you please correct the installer?
Maybe this is also the reason for 
http://bugzilla.lyx.org/show_bug.cgi?id=2127 ?


Georg



Re: Latex error on graphics insert (LyX 1.3.7)

2006-01-28 Thread Georg Baum
Am Samstag, 28. Januar 2006 19:43 schrieb Herbert Voss:
 ok ok, my question was why it is _wrong_! It is wrong
 in a logical way, but it should work without LyX internal
 errors, right?

Yes. But it might have lead Marc to think that he is converting via 
pdflatex when he actually used ps2pdf. I think there are no more 
misunderstandings now :-)


Georg



Re: Latex error on graphics insert (LyX 1.3.7)

2006-01-28 Thread Bennett Helm

On Jan 28, 2006, at 2:04 PM, Georg Baum wrote:


Am Samstag, 28. Januar 2006 19:47 schrieb Marc D.:

There is now no preferences file in the Library-Application Support-

LyX

directory. However, LyX.app/Contents/Resources/lyx
in the dmg file I just downloaded has the following:

\format pdf pdf PDF (pdflatex) 
\format pdf2 pdf PDF (ps to pdf) 

This also appears in preferences where I've installed LyX.app.

So may I suggest that if this is so wrong that the distribution
itself needs to be fixed, since I can guarantee that I had
nothing to do with these settings.


OK finally we have found the problem. You are absolutely right, this
should not be like that.
Bennett, could you please correct the installer?
Maybe this is also the reason for
http://bugzilla.lyx.org/show_bug.cgi?id=2127 ?


Yes ... it appears to be my mistake somewhere along the line. But  
those two lines have been in the LyX/Mac default preferences for a  
while and haven't caused a problem before. Moreover, deleting those  
lines from within the LyX.app bundle -- i.e., the default LyX/Mac  
preferences -- does not affect bug 2127 substantially. (I'll post new  
comments on bugzilla so we have them there: http://bugzilla.lyx.org/ 
show_bug.cgi?id=2127.)


Bennett


--
Bennett Helm
Department of Philosophy
Franklin  Marshall College
P. O. Box 3003
Lancaster, PA 17604-3003
Voice: (717) 291-4392
Fax: (717) 291-4369
http://www.fandm.edu/Departments/Philosophy/staticpages/index.php? 
page=helm





Re: Latex error on graphics insert (LyX 1.3.7)

2006-01-28 Thread Herbert Voss

Marc D. wrote:


I still don't understand where that line came from, since
when I go to Layout->Document->Packages it says that
my Postscript driver is "Default". Can I change that
to something else in my preferences or lyxrc?



replying to myself...

In testing, I've found that if I create a NEW file,
I get \graphics default.  This would explain why the new
file was working.

However, in a1.ps, even though I have set


you _cannot_ get a PostScript file when running pdflatex.
So you did something else, like viewing PostScript output.
Then LyX converts the jpegs to eps and maybe then anables
the dvips option of the PostScript driver and didn't change
this one when going back to pdflatex.

Herbert



Re: Latex error on graphics insert (LyX 1.3.7)

2006-01-28 Thread Georg Baum
Am Freitag, 27. Januar 2006 22:07 schrieb Paul A. Rubin:
> In your preferences file, I found the following:
> 
> \format "pdf" "pdf" "PDF (pdflatex)" ""
> \format "pdf2" "pdf" "PDF (ps to pdf)" ""
> 
> Note that the labels for the pdf and pdf2 extensions are actually the 
> reverse of what the converters do (i.e., pdf is via ps, not via 
> pdflatex).  So if you're selecting View->PDF (ps to pdf), I think you're 
> actually running pdflatex, and if you're selecting View->PDF (pdflatex), 
> I think you're actually running latex, dvips and ps2pdf13.

Marc, you should really delete these lines from your preferences file and 
use the defaults that come with LyX (if not already done).

What do we learn from this lengthy debug session? Always provide minimal 
example files!


Georg



Re: Latex error on graphics insert (LyX 1.3.7)

2006-01-28 Thread Herbert Voss

Georg Baum wrote:

Am Freitag, 27. Januar 2006 22:07 schrieb Paul A. Rubin:


In your preferences file, I found the following:

\format "pdf" "pdf" "PDF (pdflatex)" ""
\format "pdf2" "pdf" "PDF (ps to pdf)" ""

Note that the labels for the pdf and pdf2 extensions are actually the 
reverse of what the converters do (i.e., pdf is via ps, not via 
pdflatex).  So if you're selecting View->PDF (ps to pdf), I think you're 
actually running pdflatex, and if you're selecting View->PDF (pdflatex), 
I think you're actually running latex, dvips and ps2pdf13.



Marc, you should really delete these lines from your preferences file and 
use the defaults that come with LyX (if not already done).


these entries are nonsense, but could not be a problem,
because they have the same meaning.

Herbert



Re: Latex error on graphics insert (LyX 1.3.7)

2006-01-28 Thread Stephen Harris


- Original Message - 
From: "Georg Baum" <[EMAIL PROTECTED]>

To: <lyx-users@lists.lyx.org>
Sent: Saturday, January 28, 2006 3:10 AM
Subject: Re: Latex error on graphics insert (LyX 1.3.7)



Am Freitag, 27. Januar 2006 22:07 schrieb Paul A. Rubin:

In your preferences file, I found the following:

\format "pdf" "pdf" "PDF (pdflatex)" ""
\format "pdf2" "pdf" "PDF (ps to pdf)" ""

Note that the labels for the pdf and pdf2 extensions are actually the
reverse of what the converters do (i.e., pdf is via ps, not via
pdflatex).  So if you're selecting View->PDF (ps to pdf), I think you're
actually running pdflatex, and if you're selecting View->PDF (pdflatex),
I think you're actually running latex, dvips and ps2pdf13.


Marc, you should really delete these lines from your preferences file and
use the defaults that come with LyX (if not already done).

What do we learn from this lengthy debug session? Always provide minimal
example files!


Georg



Hello Marc,

I came to the same conclusion about using the defaults.

I use the defaults with Windows and Lyx 1.3.7 and on Linux Fedora4
which has LyX1.3.6. On both systems I can use the DVI, all 3 pdf and
the postscript viewers, in order to view your file.

That means the image files are OK, and the doc syntax structure is OK,
once \graphics dvips is eliminated. On the Windows system the/my
Layout->Document->Packages, the graphics driver is set to "default"
(as yours was) and it works so it seems just \graphics dvips is
problematic and maybe your other documents have that line also.
You would still need to be careful if they contained eps images.

So I was going to recommend saving preferences somewhere safe,
just in case, but reinstalling the defaults because they work for other
people and there is a fair chance your editing of lyxrc was faulty.
And I learned a lesson about the value of providing minimal examples.

Hope your other files are easy to fix,
Stephen 





Re: Latex error on graphics insert (LyX 1.3.7)

2006-01-28 Thread Marc D.


On 28 Jan 06, at 04:10, Stephen Harris wrote:

[...]
Hello Marc,

I came to the same conclusion about using the defaults.

I use the defaults with Windows and Lyx 1.3.7 and on Linux Fedora4
which has LyX1.3.6. On both systems I can use the DVI, all 3 pdf and
the postscript viewers, in order to view your file.


The defaults do not seem to work under MacOSX, in that they specify xpdf
rather than "open" to view files. This is probably fine if the user
is using XWindows subsystem to run LyX, but not if the user wants
to run LyX under the MacOS GUI. The only changes I
made to the defaults were to lyxrc to change xpdf to open.
(yes, I could have just specified those two lines in lyxrc.
Instead I elected to just copy lyxrc.default and change those
2 lines. It should have resulted in the same thing.)

Everything else was "as provided", as far as I can tell.
However, I will erase everything again and start over, using
just the defaults modulo the above changes, and see if it does,
in fact, work with the "\graphics default" entry in the test file.
Then will see if it works with my older files.






Re: Latex error on graphics insert (LyX 1.3.7)

2006-01-28 Thread Georg Baum
Am Samstag, 28. Januar 2006 17:14 schrieb Marc D.:
> The defaults do not seem to work under MacOSX, in that they specify xpdf
> rather than "open" to view files. This is probably fine if the user
> is using XWindows subsystem to run LyX, but not if the user wants
> to run LyX under the MacOS GUI. The only changes I
> made to the defaults were to lyxrc to change xpdf to open.
> (yes, I could have just specified those two lines in lyxrc.
> Instead I elected to just copy lyxrc.default and change those
> 2 lines. It should have resulted in the same thing.)

I did not talk about the viewer settings. Of course you can set them to 
"open", and it should work. I meant these two lines (found by Paul):

\format "pdf" "pdf" "PDF (pdflatex)" ""
\format "pdf2" "pdf" "PDF (ps to pdf)" ""

These are wrong! Read Pauls explanation if it is not clear why.


Georg



Re: Latex error on graphics insert (LyX 1.3.7)

2006-01-28 Thread Herbert Voss

Georg Baum wrote:

Am Samstag, 28. Januar 2006 17:14 schrieb Marc D.:


The defaults do not seem to work under MacOSX, in that they specify xpdf
rather than "open" to view files. This is probably fine if the user
is using XWindows subsystem to run LyX, but not if the user wants
to run LyX under the MacOS GUI. The only changes I
made to the defaults were to lyxrc to change xpdf to open.
(yes, I could have just specified those two lines in lyxrc.
Instead I elected to just copy lyxrc.default and change those
2 lines. It should have resulted in the same thing.)



I did not talk about the viewer settings. Of course you can set them to 
"open", and it should work. I meant these two lines (found by Paul):


\format "pdf" "pdf" "PDF (pdflatex)" ""
\format "pdf2" "pdf" "PDF (ps to pdf)" ""

These are wrong! Read Pauls explanation if it is not clear why.


??? Why are these lines _wrong_?

Herbert




Re: Latex error on graphics insert (LyX 1.3.7)

2006-01-28 Thread Georg Baum
Am Samstag, 28. Januar 2006 18:07 schrieb Herbert Voss:
> Georg Baum wrote:
> > \format "pdf" "pdf" "PDF (pdflatex)" ""
> > \format "pdf2" "pdf" "PDF (ps to pdf)" ""
> > 
> > These are wrong! Read Pauls explanation if it is not clear why.
> 
> ??? Why are these lines _wrong_?

Read it in Pauls mail. Short version: They are wrong because the comments 
("pdflatex" and "ps to pdf") don't match the converters. The defaults are

\Format pdf   pdf  "PDF (ps2pdf)"   P
\Format pdf2  pdf  "PDF (pdflatex)" F
\Format pdf3  pdf  "PDF (dvipdfm)"  m
\converter pspdf  "ps2pdf13 $$i" ""
\converter latex pdf2 "pdflatex $$i" "latex"
\converter dvi   pdf3 "dvipdfm $$i" ""


Georg



Re: Latex error on graphics insert (LyX 1.3.7)

2006-01-28 Thread Herbert Voss

Georg Baum wrote:

Am Samstag, 28. Januar 2006 18:07 schrieb Herbert Voss:


Georg Baum wrote:


\format "pdf" "pdf" "PDF (pdflatex)" ""
\format "pdf2" "pdf" "PDF (ps to pdf)" ""

These are wrong! Read Pauls explanation if it is not clear why.


??? Why are these lines _wrong_?



Read it in Pauls mail. Short version: They are wrong because the comments 
("pdflatex" and "ps to pdf") don't match the converters. The defaults are


ok ok, my question was why it is _wrong_! It is wrong
in a logical way, but it should work without LyX internal
errors, right?

Herbert



\Format pdf   pdf  "PDF (ps2pdf)"   P
\Format pdf2  pdf  "PDF (pdflatex)" F
\Format pdf3  pdf  "PDF (dvipdfm)"  m
\converter pspdf  "ps2pdf13 $$i" ""
\converter latex pdf2 "pdflatex $$i" "latex"
\converter dvi   pdf3 "dvipdfm $$i" ""





Re: Latex error on graphics insert (LyX 1.3.7)

2006-01-28 Thread Marc D.


On 28 Jan 06, at 08:33, Georg Baum wrote:


Am Samstag, 28. Januar 2006 17:14 schrieb Marc D.:
The defaults do not seem to work under MacOSX, in that they  
specify xpdf

rather than "open" to view files. This is probably fine if the user
is using XWindows subsystem to run LyX, but not if the user wants
to run LyX under the MacOS GUI. The only changes I
made to the defaults were to lyxrc to change xpdf to open.
(yes, I could have just specified those two lines in lyxrc.
Instead I elected to just copy lyxrc.default and change those
2 lines. It should have resulted in the same thing.)


I did not talk about the viewer settings. Of course you can set  
them to

"open", and it should work. I meant these two lines (found by Paul):

\format "pdf" "pdf" "PDF (pdflatex)" ""
\format "pdf2" "pdf" "PDF (ps to pdf)" ""

These are wrong! Read Pauls explanation if it is not clear why.


Georg



OK, I have completed a full reinstall (I'm getting VERY good at this!)

LyX 1.3.7 on MacOSX 10.4.4.
Downloaded from http://wiki.lyx.org/LyX/LyXOnMac?from=LyX.Mac

LaTeX install from MacTeX.dmg downloaded from Tug was not touched.

OK. I have deleted LyX, deleted all the preferences
Library->Application Support->LyX (actually deleted the whole directory)
I then reinstalled LyX from a fresh download.

Opened my a1.lyx that worked before...

LyX does a whole bunch of stuff on the console, creating the
Library/Application Support/LyX directory and doing some self
configuration.

When I try View -> PDF (ps to pdf) it doesn't display the images.

Under Layout->Document->Packages, Postscript driver was set to dvips.
This was AFTER resetting it in the document previously, as documented
previous in this thread.

So I manually reset "dvips" back to default, apply...

View -> PDF (ps to pdf) now works fine and display my images.

There is now no preferences file in the Library->Application Support- 
>LyX

directory. However, LyX.app/Contents/Resources/lyx
in the dmg file I just downloaded has the following:

\format "pdf" "pdf" "PDF (pdflatex)" ""
\format "pdf2" "pdf" "PDF (ps to pdf)" ""

This also appears in preferences where I've installed LyX.app.

So may I suggest that if this is so wrong that the distribution
itself needs to be fixed, since I can guarantee that I had
nothing to do with these settings.

regards,
Marc



Re: Latex error on graphics insert (LyX 1.3.7)

2006-01-28 Thread Georg Baum
Am Samstag, 28. Januar 2006 19:47 schrieb Marc D.:
> There is now no preferences file in the Library->Application Support- 
>  >LyX
> directory. However, LyX.app/Contents/Resources/lyx
> in the dmg file I just downloaded has the following:
> 
> \format "pdf" "pdf" "PDF (pdflatex)" ""
> \format "pdf2" "pdf" "PDF (ps to pdf)" ""
> 
> This also appears in preferences where I've installed LyX.app.
> 
> So may I suggest that if this is so wrong that the distribution
> itself needs to be fixed, since I can guarantee that I had
> nothing to do with these settings.

OK finally we have found the problem. You are absolutely right, this 
should not be like that.
Bennett, could you please correct the installer?
Maybe this is also the reason for 
http://bugzilla.lyx.org/show_bug.cgi?id=2127 ?


Georg



Re: Latex error on graphics insert (LyX 1.3.7)

2006-01-28 Thread Georg Baum
Am Samstag, 28. Januar 2006 19:43 schrieb Herbert Voss:
> ok ok, my question was why it is _wrong_! It is wrong
> in a logical way, but it should work without LyX internal
> errors, right?

Yes. But it might have lead Marc to think that he is converting via 
pdflatex when he actually used ps2pdf. I think there are no more 
misunderstandings now :-)


Georg



Re: Latex error on graphics insert (LyX 1.3.7)

2006-01-28 Thread Bennett Helm

On Jan 28, 2006, at 2:04 PM, Georg Baum wrote:


Am Samstag, 28. Januar 2006 19:47 schrieb Marc D.:

There is now no preferences file in the Library->Application Support-

LyX

directory. However, LyX.app/Contents/Resources/lyx
in the dmg file I just downloaded has the following:

\format "pdf" "pdf" "PDF (pdflatex)" ""
\format "pdf2" "pdf" "PDF (ps to pdf)" ""

This also appears in preferences where I've installed LyX.app.

So may I suggest that if this is so wrong that the distribution
itself needs to be fixed, since I can guarantee that I had
nothing to do with these settings.


OK finally we have found the problem. You are absolutely right, this
should not be like that.
Bennett, could you please correct the installer?
Maybe this is also the reason for
http://bugzilla.lyx.org/show_bug.cgi?id=2127 ?


Yes ... it appears to be my mistake somewhere along the line. But  
those two lines have been in the LyX/Mac default preferences for a  
while and haven't caused a problem before. Moreover, deleting those  
lines from within the LyX.app bundle -- i.e., the default LyX/Mac  
preferences -- does not affect bug 2127 substantially. (I'll post new  
comments on bugzilla so we have them there: .)


Bennett


--
Bennett Helm
Department of Philosophy
Franklin & Marshall College
P. O. Box 3003
Lancaster, PA 17604-3003
Voice: (717) 291-4392
Fax: (717) 291-4369






Re: Latex error on graphics insert (LyX 1.3.7)

2006-01-27 Thread Stephen Harris


- Original Message - 
From: Herbert Voss [EMAIL PROTECTED]

To: lyx-users@lists.lyx.org
Sent: Thursday, January 26, 2006 11:46 AM
Subject: Re: Latex error on graphics insert (LyX 1.3.7)



Marc D. wrote:

I have a file that processes fine using PDF (ps to pdf)
option.

When I insert a graphic, it then gives me a single error:

LaTeX Error: Cannot determine size of graphic in /tmp/ 
lyx_tmpdir7937ASk7yo/ly

...van_courses_current_320_assign_a1-3b.jpg}


you can not use ps2pdf and a jpeg file! ps2pdf converts a
PostScript file:

ps/eps   : latex -dvips - ps2pdf
jpeg/png/pdf : pdflatex

you have to use pdflatex

Herbert



It seems my idea about converting the .eps file to .jpg format
was not the best way to proceed, but instead to use epstopdf.

http://mintaka.sdsu.edu/GF/bibliog/latex/LaTeXtoPDF.html

pdflatex method (details)

1. Convert all the figures to non-EPS form.

As  pdflatex  doesn't use EPS figures, we have to convert 
them all to either JPEG, PNG, or PDF form. It makes no sense 
to convert EPS to PNG, because that changes scalable graphics 
to bulky rasterised form. JPEG would be even worse, because 
of its lossy compression. 

The way to go is to convert EPS to PDF:  
epstopdf image.eps
which creates a file named  image.pdf  by default. (This has the 
happy side-effect of compressing the actual PostScript text of 
the original EPS file; if that file were longer than about 2 kB, the 
compression would more than offset the added PDF headers, 
and the PDF file could be smaller than its EPS parent.) 


2. Tell LaTeX what to expect.

The preamble to the LaTeX source file now looks much like 
the one used in the traditional method: 


\documentclass[pdftex,...]{article}  % the pdftex is essential
\usepackage[dvips]{graphicx} % to include images
\usepackage{pslatex}  % to use PostScript fonts

   % redefine float-placement parameters here 
\begin{document}


Note that the package name to put in the argument list 
is pdftex, not pdflatex. 


3. Include the figures in the *.tex file.

Just as in the traditional method, we can omit the filename suffix: 


\begin{figure}[htp]
\resizebox{\textwidth}{!}{
 \includegraphics[width=\textwidth]{circle1}
 }
\caption{circle1}
\end{figure}

But now, what's automatically found is the 
file circle1.pdf, not circle1.eps. 


Regards,
Stephen






Re: Latex error on graphics insert (LyX 1.3.7)

2006-01-27 Thread Herbert Voss

Stephen Harris wrote:


It seems my idea about converting the .eps file to .jpg format
was not the best way to proceed, but instead to use epstopdf.


eps to jpg is the wrong way, convert them _always_ to pdf with epstopdf.

The preamble to the LaTeX source file now looks much like the one used 
in the traditional method:

\documentclass[pdftex,...]{article}  % the pdftex is essential
\usepackage[dvips]{graphicx} % to include images
\usepackage{pslatex}  % to use PostScript fonts


using options pdftex _and_ dvips makes no sense, use
only one of it.


Just as in the traditional method, we can omit the filename suffix:


only when you use the right driver!

But now, what's automatically found is the file circle1.pdf, not 
circle1.eps.


pdflatex is run in dvi mode. _all_ new distributions
use pdftex as engine.

Herbert



Re: Latex error on graphics insert (LyX 1.3.7)

2006-01-27 Thread Marc D.


On 27 Jan 06, at 07:12, Herbert Voss wrote:


Stephen Harris wrote:


It seems my idea about converting the .eps file to .jpg format
was not the best way to proceed, but instead to use epstopdf.


eps to jpg is the wrong way, convert them _always_ to pdf with  
epstopdf.


The preamble to the LaTeX source file now looks much like the one  
used in the traditional method:

\documentclass[pdftex,...]{article}  % the pdftex is essential
\usepackage[dvips]{graphicx} % to include images
\usepackage{pslatex}  % to use PostScript fonts


using options pdftex _and_ dvips makes no sense, use
only one of it.


I'm back. Sleep is good!!

Any suggestions on how I can go about changing the behaviour
of lyx? I was unaware that I had control over the LaTeX that
LyX outputs.  I'm more than willing and able to read documentation,
but I'd appreciate being pointed to the right chapter.

I've read the available documentation under Help, but can't
recall any detailed documentation on exactly what LyX calls
to convert the LyX code to LaTeX and then to PDF. Once I understand
that process, I'll be able to see what might be broken on
my system, maybe even contribute a general-purpose script
(I'm very good at scripts) if necessary.

Thanks,
Marc



Re: Latex error on graphics insert (LyX 1.3.7)

2006-01-27 Thread Stephen Harris


- Original Message - 
From: Marc D. [EMAIL PROTECTED]

To: lyx-users@lists.lyx.org
Sent: Friday, January 27, 2006 7:40 AM
Subject: Re: Latex error on graphics insert (LyX 1.3.7)




On 27 Jan 06, at 07:12, Herbert Voss wrote:


Stephen Harris wrote:


It seems my idea about converting the .eps file to .jpg format
was not the best way to proceed, but instead to use epstopdf.


eps to jpg is the wrong way, convert them _always_ to pdf with  
epstopdf.




Yes, my sentence was correcting an earlier post which suggested
eps to jpg. instead meant I was suggesting epstopdf as you did.
I should have put a comma after proceed, but instead,...

The preamble to the LaTeX source file now looks much like the one  
used in the traditional method:

\documentclass[pdftex,...]{article}  % the pdftex is essential
\usepackage[dvips]{graphicx} % to include images
\usepackage{pslatex}  % to use PostScript fonts


using options pdftex _and_ dvips makes no sense, use
only one of it.


I'm back. Sleep is good!!

Any suggestions on how I can go about changing the behaviour
of lyx? I was unaware that I had control over the LaTeX that
LyX outputs.  I'm more than willing and able to read documentation,
but I'd appreciate being pointed to the right chapter.



Under LyX1.3.7, under View, there are three different .pdf viewing 
options, if your LyX is installed right. pdflatex is the recommended 
one, but it doesn't handle image files in the .eps format. Which is

why epstopdf is used to change the file format from .eps to .pdf.
pdflatex works with image files of the .png, .jpg and .pdf formats.

ps2pdf does work with .eps graphical files, but not the .jpg format 
So ps2pdf worked ok when you had one eps image within your

lyx document (and I presume within a (La)tex document). But then
you added another I think, .jpg image, which violated the boundaries 
of the ps2pdf conversion capability. 


On my system, I can view with a ghostscript viewer, gsview, or
Adobe Reader which reads .pdf files, save the file or print it out
on my printer. On Linux/Mac OS X the user .pdf viewer is xpdf
which I think you said you removed. 


Also under Lyx-File if you have a file open there is an active
choice to Export to .pdf or dvi or postscript. I know less about
that since the only time I use that is to export as Latex and that
exported file is made, but there isn't any indication of it, and I
think it is stored in a temp directory. 


Another place where the behavior of viewing files is controlled
is under LyX-Edit-Preferences, you will see File formats and
it displays the assigned Viewers for the different file formats.
Also you will see Converters which also lists three .pdf methods.


I've read the available documentation under Help, but can't
recall any detailed documentation on exactly what LyX calls
to convert the LyX code to LaTeX and then to PDF. Once I understand
that process, I'll be able to see what might be broken on
my system, maybe even contribute a general-purpose script
(I'm very good at scripts) if necessary.

Thanks,
Marc



Usually the defaults work quite well and a user never has to fiddle
with the settings. Try loading your first file which I think had just
the .eps image; the one you said works with ps2pdf. This time
use the View windows and select ps2pdf and see if it still works.
Then try dvipdfm. I am not so sure you should have removed the
xpdf viewer, see how it works. If dvipdfm works with just the
one graphic image using View, then try it with the the file that has
two images (one eps and one jpg if I undertand you). You may
have to put xpdf back in as a viewer. You said you had pdflatex
working from the command line before, which would need your
jpg file and the image.pdf file (which you converted from image.eps)
using epstopdf (from the command line). Sometimes that epstopdf
conversion needs to have some bounding box (BB) work done on 
the image.eps file depending on how it was constructed. Edit your

homework .lyx file appropriately for BBs and adding images.

Herbert is the expert in this area. If I made any mistakes in 
explaining this I hope he corrects them. Perhaps part of the

problem so far is a lack of knowledge about LyX defaults.
http://wiki.lyx.org/ provides a searchable interface for some
topics. Google also contains a lot of information about (La)TeX
providing details about the pdf viewers which LyX relies upon,
but which come with the various (La)TeX versions and platforms.
Working instances of Ghostscript and Python are also needed.

I'll leave any further advice to more experienced users, Good luck,
Stephen



Re: Latex error on graphics insert (LyX 1.3.7)

2006-01-27 Thread Herbert Voss

Marc D. wrote:


Any suggestions on how I can go about changing the behaviour
of lyx? I was unaware that I had control over the LaTeX that
LyX outputs.  I'm more than willing and able to read documentation,
but I'd appreciate being pointed to the right chapter.


what does Edit-Preferences-Output-Converters say for
the entry LaTeX-PDF?

Herbert



Re: Latex error on graphics insert (LyX 1.3.7)

2006-01-27 Thread Marc D.


On 27 Jan 06, at 10:17, Herbert Voss wrote:


Marc D. wrote:


Any suggestions on how I can go about changing the behaviour
of lyx? I was unaware that I had control over the LaTeX that
LyX outputs.  I'm more than willing and able to read documentation,
but I'd appreciate being pointed to the right chapter.


what does Edit-Preferences-Output-Converters say for
the entry LaTeX-PDF?

Herbert





I have a LaTeX - PDF (ps to pdf) option that says:

Converter: pdflatex $$i
extra flag: latex


Now that the homework has been handed in (manual cut
and paste of images) I've posted the .lyx file to
http://ryuu.ca/lyx, along with the images, in case anyone
wants to see the raw source. I've also posted my preferences
and lyxrc files in the same directory. All will vanish
once this is solved, but it might help, and it can't hurt.




Re: Latex error on graphics insert (LyX 1.3.7)

2006-01-27 Thread Herbert Voss

Marc D. wrote:


I have a LaTeX - PDF (ps to pdf) option that says:

Converter: pdflatex $$i
extra flag: latex


Now that the homework has been handed in (manual cut
and paste of images) I've posted the .lyx file to
http://ryuu.ca/lyx, along with the images, in case anyone
wants to see the raw source. I've also posted my preferences
and lyxrc files in the same directory. All will vanish
once this is solved, but it might help, and it can't hurt.


seems to be a bug in LyX, but the question is who inserts
this line ...
Delete the line

\graphics dvips

in your LyX file ( outside of LyX ) and everything should
be ok. At least for me ... ;-)
And by the way, it is a kind of crazy to convert your
automata images to jpeg. png or odf is the right format,
or what I would prefer, create them on the fly with gastex.

http://www.lsv.ens-cachan.fr/~gastin/gastex/more.html

Same for your commutated diagrams ... there are much more
better tools.

http://tug.org/PSTricks/main.cgi?file=psmatrix/cd

Herbert



Re: Latex error on graphics insert (LyX 1.3.7)

2006-01-27 Thread Herbert Voss

Herbert Voss wrote:

Marc D. wrote:


I have a LaTeX - PDF (ps to pdf) option that says:

Converter: pdflatex $$i
extra flag: latex


Now that the homework has been handed in (manual cut
and paste of images) I've posted the .lyx file to
http://ryuu.ca/lyx, along with the images, in case anyone
wants to see the raw source. I've also posted my preferences
and lyxrc files in the same directory. All will vanish
once this is solved, but it might help, and it can't hurt.



seems to be a bug in LyX, but the question is who inserts
this line ...


just found it ... It was you who enables the PostScript
driver Layout-Document-Packages-PostScript driver

it is wrong enabling dvips when using pdflatex.
This option should _always_ be the default driver.
However, this is one of the really really obsolete
options, which confuses users and doesn't help.

Herbert



Re: Latex error on graphics insert (LyX 1.3.7)

2006-01-27 Thread Paul A. Rubin

Marc D. wrote:


On 27 Jan 06, at 10:17, Herbert Voss wrote:


Marc D. wrote:


Any suggestions on how I can go about changing the behaviour
of lyx? I was unaware that I had control over the LaTeX that
LyX outputs.  I'm more than willing and able to read documentation,
but I'd appreciate being pointed to the right chapter.


what does Edit-Preferences-Output-Converters say for
the entry LaTeX-PDF?

Herbert





I have a LaTeX - PDF (ps to pdf) option that says:

Converter: pdflatex $$i
extra flag: latex


There's an inconsistency here.  I downloaded all the files from your 
directory.  The converters are defined in lyxrc, where the key lines (I 
think) are:


\Format pdf   pdf  PDF (ps2pdf) P
\Format pdf2  pdf  PDF (pdflatex)   F
\Format pdf3  pdf  PDF (dvipdfm)m
\converter latex pdf2 pdflatex $$i latex
\converter dvi pdf3 dvipdfm $$i 
\converter ps pdf ps2pdf13 $$i 

The first three lines declare three different extensions (pdf, pdf2, 
pdf3) to by used by LyX to indicate pdf files created three different 
ways (latex-dvi-ps-pdf, latex-pdf, latex-dvi-pdf respectively). 
The other three lines give the terminal conversion in each case.


In your preferences file, I found the following:

\format pdf pdf PDF (pdflatex) 
\format pdf2 pdf PDF (ps to pdf) 

Note that the labels for the pdf and pdf2 extensions are actually the 
reverse of what the converters do (i.e., pdf is via ps, not via 
pdflatex).  So if you're selecting View-PDF (ps to pdf), I think you're 
actually running pdflatex, and if you're selecting View-PDF (pdflatex), 
I think you're actually running latex, dvips and ps2pdf13.


 
Now that the homework has been handed in (manual cut

and paste of images) I've posted the .lyx file to
http://ryuu.ca/lyx, along with the images, in case anyone
wants to see the raw source. I've also posted my preferences
and lyxrc files in the same directory. All will vanish
once this is solved, but it might help, and it can't hurt.



I ran your document with LyX 1.3.7, Win XP, MiKTeX.  No matter how I 
view it, it comes out correct.  I also exported to latex and ran latex 
(twice, dvips, and ps2pdf13 in that order, and got a correct PDF file. 
I notice from your path that you're using teTeX.  Maybe a component 
needs upgrading?


/Paul



Re: Latex error on graphics insert (LyX 1.3.7)

2006-01-27 Thread Herbert Voss

Paul A. Rubin wrote:

I ran your document with LyX 1.3.7, Win XP, MiKTeX.  No matter how I 


MiKTeX comes with an own extended dvips driver, which is the reason
why it runs with an installed MiKTeX but not with _any_ other
distribution.

view it, it comes out correct.  I also exported to latex and ran latex 
(twice, dvips, and ps2pdf13 in that order, and got a correct PDF file. I 


in _general_ this cannot work, dvips understands only ps/eps images.

notice from your path that you're using teTeX.  Maybe a component needs 
upgrading?


Herbert



Re: Latex error on graphics insert (LyX 1.3.7)

2006-01-27 Thread Jean-Marc Lasgouttes
 Herbert == Herbert Voss [EMAIL PROTECTED] writes:

Herbert it is wrong enabling dvips when using pdflatex. This option
Herbert should _always_ be the default driver. However, this is one
Herbert of the really really obsolete options, which confuses users
Herbert and doesn't help.


Do you mean there is no good reason to use it? Is it true for
color.sty too? I'd be glad to get rid of it :)

JMarc


Re: Latex error on graphics insert (LyX 1.3.7)

2006-01-27 Thread Herbert Voss

Jean-Marc Lasgouttes wrote:

Herbert == Herbert Voss [EMAIL PROTECTED] writes:



Herbert it is wrong enabling dvips when using pdflatex. This option
Herbert should _always_ be the default driver. However, this is one
Herbert of the really really obsolete options, which confuses users
Herbert and doesn't help.


Do you mean there is no good reason to use it? Is it true for
color.sty too? I'd be glad to get rid of it :)


\listfiles
\documentclass{article}
\usepackage{color}
\begin{document}

\fcolorbox{red}{green}{blue}

\end{document}

the color.cfg can detect the running mode:

-- snip 
This is pdfeTeXk, Version 3.141592-1.30.4-2.2 (Web2C 7.5.5)
 %-line parsing enabled.
entering extended mode
(./demo0.tex
LaTeX2e
Babel  and hyphenation patterns for english, usenglishmax, dumylang, noh

[ ... ]

(/usr/local/texlive/2005/texmf-dist/tex/latex/base/article.cls
Document Class: article 2004/02/16 v1.4f Standard LaTeX document class
(/usr/local/texlive/2005/texmf-dist/tex/latex/base/size10.clo))
(/usr/local/texlive/2005/texmf-dist/tex/latex/graphics/color.sty
(/usr/local/texlive/2005/texmf/tex/latex/config/color.cfg)
(/usr/local/texlive/2005/texmf-dist/tex/latex/graphics/dvips.def)
(/usr/local/texlive/2005/texmf-dist/tex/latex/graphics/dvipsnam.def))
(./demo0.aux) [1] (./demo0.aux)

 *File List*
 article.cls2004/02/16 v1.4f Standard LaTeX document class
  size10.clo2004/02/16 v1.4f Standard LaTeX file (size option)
   color.sty1999/02/16 v1.0i Standard LaTeX Color (DPC)
   color.cfg2001/08/31 v1.1 color configuration of teTeX/TeXLive
   dvips.def1999/02/16 v3.0i Driver-dependant file (DPC,SPQR)
dvipsnam.def1999/02/16 v3.0i Driver-dependant file (DPC,SPQR)
-- snip 

and the same with running pdflatex:

-- snip 
[ ... ]
(/usr/local/texlive/2005/texmf-dist/tex/latex/graphics/color.sty
(/usr/local/texlive/2005/texmf/tex/latex/config/color.cfg)
(/usr/local/texlive/2005/texmf-dist/tex/latex/graphics/pdftex.def))
(./demo0.aux) 
(/usr/local/texlive/2005/texmf-dist/tex/context/base/supp-pdf.tex

 (/usr/local/texlive/2005/texmf-dist/tex/context/base/supp-mis.tex
loading : Context Support Macros / Miscellaneous (2004.10.26)
[ ... ]
-- snip 


maybe that there is a very special case for using this option, then
it is no problem to use dvips via the documentclass option field.


Herbert



Re: Latex error on graphics insert (LyX 1.3.7)

2006-01-27 Thread Marc D.


On 27 Jan 06, at 13:04, Herbert Voss wrote:


Herbert Voss wrote:

Marc D. wrote:

I have a LaTeX - PDF (ps to pdf) option that says:

Converter: pdflatex $$i
extra flag: latex


Now that the homework has been handed in (manual cut
and paste of images) I've posted the .lyx file to
http://ryuu.ca/lyx, along with the images, in case anyone
wants to see the raw source. I've also posted my preferences
and lyxrc files in the same directory. All will vanish
once this is solved, but it might help, and it can't hurt.

seems to be a bug in LyX, but the question is who inserts
this line ...


just found it ... It was you who enables the PostScript
driver Layout-Document-Packages-PostScript driver


It says default when I go there from here,
and I don't recall ever changing it. It's a
clean, recent install. I even did the lyxrc xpdf to open
changes manually in order to not copy over any other stuff
I may have done by mistake.

If it says Default in LyX, would you know the
other ways that it could have been changed?
Where does LyX store that preference?

As for other options, the lyxrc was copied only
to change xpdf to open, as I use the Mac interface
by preference. That was the only change.

LyX $ diff lyxrc lyxrc.defaults.bak
64,66c64,66
 \viewer pdf open
 \viewer pdf2 open
 \viewer pdf3 open
---
 \viewer pdf xpdf
 \viewer pdf2 xpdf
 \viewer pdf3 xpdf




Re: Latex error on graphics insert (LyX 1.3.7)

2006-01-27 Thread Marc D.


On 27 Jan 06, at 12:50, Herbert Voss wrote:


Marc D. wrote:


I have a LaTeX - PDF (ps to pdf) option that says:
Converter: pdflatex $$i
extra flag: latex
Now that the homework has been handed in (manual cut
and paste of images) I've posted the .lyx file to
http://ryuu.ca/lyx, along with the images, in case anyone
wants to see the raw source. I've also posted my preferences
and lyxrc files in the same directory. All will vanish
once this is solved, but it might help, and it can't hurt.


seems to be a bug in LyX, but the question is who inserts
this line ...
Delete the line

\graphics dvips

in your LyX file ( outside of LyX ) and everything should
be ok. At least for me ... ;-)


This works for me as well. Still doesn't work with any
of the other view options, but at least one works.

Thank you.

I still don't understand where that line came from, since
when I go to Layout-Document-Packages it says that
my Postscript driver is Default. Can I change that
to something else in my preferences or lyxrc?



And by the way, it is a kind of crazy to convert your
automata images to jpeg. png or odf is the right format,
or what I would prefer, create them on the fly with gastex.


I use jpeg because I was having trouble with other formats.
As in, LyX wouldn't even display them internally. Including png.
Since the clean install it seems to work ok, although no
better or no worse than jpg.

I'm not sure that creating something on the fly with gastex
is something I will be doing in the near future. Learning curve
seems a little high, and it doesn't seem condusive to taking
notes in class. Probably a lovely tool for writing a book or
paper. The better interface requirement is why I use LyX in
the first place! I don't want to have to type raw laTeX code.
I have in the past, and I didn't enjoy it.

I create my automata with Omnigraffle and export to jpg.
That tool also allows me to copy the professor's lectures from
the board on the fly. I'm not sure I could do that with gastex,
unless there is a better interface to it than a text editor.

regards,
Marc




Re: Latex error on graphics insert (LyX 1.3.7)

2006-01-27 Thread Marc D.


On 27 Jan 06, at 18:08, Marc D. wrote:



On 27 Jan 06, at 12:50, Herbert Voss wrote:


Marc D. wrote:


I have a LaTeX - PDF (ps to pdf) option that says:
Converter: pdflatex $$i
extra flag: latex
Now that the homework has been handed in (manual cut
and paste of images) I've posted the .lyx file to
http://ryuu.ca/lyx, along with the images, in case anyone
wants to see the raw source. I've also posted my preferences
and lyxrc files in the same directory. All will vanish
once this is solved, but it might help, and it can't hurt.


seems to be a bug in LyX, but the question is who inserts
this line ...
Delete the line

\graphics dvips

in your LyX file ( outside of LyX ) and everything should
be ok. At least for me ... ;-)


This works for me as well. Still doesn't work with any
of the other view options, but at least one works.

Thank you.

I still don't understand where that line came from, since
when I go to Layout-Document-Packages it says that
my Postscript driver is Default. Can I change that
to something else in my preferences or lyxrc?


replying to myself...

In testing, I've found that if I create a NEW file,
I get \graphics default.  This would explain why the new
file was working.

However, in a1.ps, even though I have set
the option to default, it seems to keep \graphics dvips
The file may have been created before my installation broke,
so I don't know if that was the way things were before.
Setting the options to dvips, saving, then setting them
back to default actually updated the file.

Now to try to solve the problem of it not working for any
other option, no matter what file format I use.  Prior to
my loss of /usr/local, it was working fine.  Now I open
my old files and I'm getting all sorts of errors and I can't
create pdfs from them at all, yet I could before.

I have been sent a couple more links for documentation, so
will read those before coming back with hopefully cogent
questions.

regards,
Marc



Re: Latex error on graphics insert (LyX 1.3.7)

2006-01-27 Thread Stephen Harris


- Original Message - 
From: Herbert Voss [EMAIL PROTECTED]

To: lyx-users@lists.lyx.org
Sent: Thursday, January 26, 2006 11:46 AM
Subject: Re: Latex error on graphics insert (LyX 1.3.7)



Marc D. wrote:

I have a file that processes fine using PDF (ps to pdf)
option.

When I insert a graphic, it then gives me a single error:

LaTeX Error: Cannot determine size of graphic in /tmp/ 
lyx_tmpdir7937ASk7yo/ly

...van_courses_current_320_assign_a1-3b.jpg}


you can not use ps2pdf and a jpeg file! ps2pdf converts a
PostScript file:

ps/eps   : latex -dvips - ps2pdf
jpeg/png/pdf : pdflatex

you have to use pdflatex

Herbert



It seems my idea about converting the .eps file to .jpg format
was not the best way to proceed, but instead to use epstopdf.

http://mintaka.sdsu.edu/GF/bibliog/latex/LaTeXtoPDF.html

pdflatex method (details)

1. Convert all the figures to non-EPS form.

As  pdflatex  doesn't use EPS figures, we have to convert 
them all to either JPEG, PNG, or PDF form. It makes no sense 
to convert EPS to PNG, because that changes scalable graphics 
to bulky rasterised form. JPEG would be even worse, because 
of its lossy compression. 

The way to go is to convert EPS to PDF:  
epstopdf image.eps
which creates a file named  image.pdf  by default. (This has the 
happy side-effect of compressing the actual PostScript text of 
the original EPS file; if that file were longer than about 2 kB, the 
compression would more than offset the added PDF headers, 
and the PDF file could be smaller than its EPS parent.) 


2. Tell LaTeX what to expect.

The preamble to the LaTeX source file now looks much like 
the one used in the traditional method: 


\documentclass[pdftex,...]{article}  % the pdftex is essential
\usepackage[dvips]{graphicx} % to include images
\usepackage{pslatex}  % to use PostScript fonts

   % redefine float-placement parameters here 
\begin{document}


Note that the package name to put in the argument list 
is pdftex, not pdflatex. 


3. Include the figures in the *.tex file.

Just as in the traditional method, we can omit the filename suffix: 


\begin{figure}[htp]
\resizebox{\textwidth}{!}{
 \includegraphics[width=\textwidth]{circle1}
 }
\caption{circle1}
\end{figure}

But now, what's automatically found is the 
file circle1.pdf, not circle1.eps. 


Regards,
Stephen






Re: Latex error on graphics insert (LyX 1.3.7)

2006-01-27 Thread Herbert Voss

Stephen Harris wrote:


It seems my idea about converting the .eps file to .jpg format
was not the best way to proceed, but instead to use epstopdf.


eps to jpg is the wrong way, convert them _always_ to pdf with epstopdf.

The preamble to the LaTeX source file now looks much like the one used 
in the traditional method:

\documentclass[pdftex,...]{article}  % the pdftex is essential
\usepackage[dvips]{graphicx} % to include images
\usepackage{pslatex}  % to use PostScript fonts


using options pdftex _and_ dvips makes no sense, use
only one of it.


Just as in the traditional method, we can omit the filename suffix:


only when you use the right driver!

But now, what's automatically found is the file circle1.pdf, not 
circle1.eps.


pdflatex is run in dvi mode. _all_ new distributions
use pdftex as engine.

Herbert



Re: Latex error on graphics insert (LyX 1.3.7)

2006-01-27 Thread Marc D.


On 27 Jan 06, at 07:12, Herbert Voss wrote:


Stephen Harris wrote:


It seems my idea about converting the .eps file to .jpg format
was not the best way to proceed, but instead to use epstopdf.


eps to jpg is the wrong way, convert them _always_ to pdf with  
epstopdf.


The preamble to the LaTeX source file now looks much like the one  
used in the traditional method:

\documentclass[pdftex,...]{article}  % the pdftex is essential
\usepackage[dvips]{graphicx} % to include images
\usepackage{pslatex}  % to use PostScript fonts


using options pdftex _and_ dvips makes no sense, use
only one of it.


I'm back. Sleep is good!!

Any suggestions on how I can go about changing the behaviour
of lyx? I was unaware that I had control over the LaTeX that
LyX outputs.  I'm more than willing and able to read documentation,
but I'd appreciate being pointed to the right chapter.

I've read the available documentation under Help, but can't
recall any detailed documentation on exactly what LyX calls
to convert the LyX code to LaTeX and then to PDF. Once I understand
that process, I'll be able to see what might be broken on
my system, maybe even contribute a general-purpose script
(I'm very good at scripts) if necessary.

Thanks,
Marc



Re: Latex error on graphics insert (LyX 1.3.7)

2006-01-27 Thread Stephen Harris


- Original Message - 
From: Marc D. [EMAIL PROTECTED]

To: lyx-users@lists.lyx.org
Sent: Friday, January 27, 2006 7:40 AM
Subject: Re: Latex error on graphics insert (LyX 1.3.7)




On 27 Jan 06, at 07:12, Herbert Voss wrote:


Stephen Harris wrote:


It seems my idea about converting the .eps file to .jpg format
was not the best way to proceed, but instead to use epstopdf.


eps to jpg is the wrong way, convert them _always_ to pdf with  
epstopdf.




Yes, my sentence was correcting an earlier post which suggested
eps to jpg. instead meant I was suggesting epstopdf as you did.
I should have put a comma after proceed, but instead,...

The preamble to the LaTeX source file now looks much like the one  
used in the traditional method:

\documentclass[pdftex,...]{article}  % the pdftex is essential
\usepackage[dvips]{graphicx} % to include images
\usepackage{pslatex}  % to use PostScript fonts


using options pdftex _and_ dvips makes no sense, use
only one of it.


I'm back. Sleep is good!!

Any suggestions on how I can go about changing the behaviour
of lyx? I was unaware that I had control over the LaTeX that
LyX outputs.  I'm more than willing and able to read documentation,
but I'd appreciate being pointed to the right chapter.



Under LyX1.3.7, under View, there are three different .pdf viewing 
options, if your LyX is installed right. pdflatex is the recommended 
one, but it doesn't handle image files in the .eps format. Which is

why epstopdf is used to change the file format from .eps to .pdf.
pdflatex works with image files of the .png, .jpg and .pdf formats.

ps2pdf does work with .eps graphical files, but not the .jpg format 
So ps2pdf worked ok when you had one eps image within your

lyx document (and I presume within a (La)tex document). But then
you added another I think, .jpg image, which violated the boundaries 
of the ps2pdf conversion capability. 


On my system, I can view with a ghostscript viewer, gsview, or
Adobe Reader which reads .pdf files, save the file or print it out
on my printer. On Linux/Mac OS X the user .pdf viewer is xpdf
which I think you said you removed. 


Also under Lyx-File if you have a file open there is an active
choice to Export to .pdf or dvi or postscript. I know less about
that since the only time I use that is to export as Latex and that
exported file is made, but there isn't any indication of it, and I
think it is stored in a temp directory. 


Another place where the behavior of viewing files is controlled
is under LyX-Edit-Preferences, you will see File formats and
it displays the assigned Viewers for the different file formats.
Also you will see Converters which also lists three .pdf methods.


I've read the available documentation under Help, but can't
recall any detailed documentation on exactly what LyX calls
to convert the LyX code to LaTeX and then to PDF. Once I understand
that process, I'll be able to see what might be broken on
my system, maybe even contribute a general-purpose script
(I'm very good at scripts) if necessary.

Thanks,
Marc



Usually the defaults work quite well and a user never has to fiddle
with the settings. Try loading your first file which I think had just
the .eps image; the one you said works with ps2pdf. This time
use the View windows and select ps2pdf and see if it still works.
Then try dvipdfm. I am not so sure you should have removed the
xpdf viewer, see how it works. If dvipdfm works with just the
one graphic image using View, then try it with the the file that has
two images (one eps and one jpg if I undertand you). You may
have to put xpdf back in as a viewer. You said you had pdflatex
working from the command line before, which would need your
jpg file and the image.pdf file (which you converted from image.eps)
using epstopdf (from the command line). Sometimes that epstopdf
conversion needs to have some bounding box (BB) work done on 
the image.eps file depending on how it was constructed. Edit your

homework .lyx file appropriately for BBs and adding images.

Herbert is the expert in this area. If I made any mistakes in 
explaining this I hope he corrects them. Perhaps part of the

problem so far is a lack of knowledge about LyX defaults.
http://wiki.lyx.org/ provides a searchable interface for some
topics. Google also contains a lot of information about (La)TeX
providing details about the pdf viewers which LyX relies upon,
but which come with the various (La)TeX versions and platforms.
Working instances of Ghostscript and Python are also needed.

I'll leave any further advice to more experienced users, Good luck,
Stephen



Re: Latex error on graphics insert (LyX 1.3.7)

2006-01-27 Thread Herbert Voss

Marc D. wrote:


Any suggestions on how I can go about changing the behaviour
of lyx? I was unaware that I had control over the LaTeX that
LyX outputs.  I'm more than willing and able to read documentation,
but I'd appreciate being pointed to the right chapter.


what does Edit-Preferences-Output-Converters say for
the entry LaTeX-PDF?

Herbert



Re: Latex error on graphics insert (LyX 1.3.7)

2006-01-27 Thread Marc D.


On 27 Jan 06, at 10:17, Herbert Voss wrote:


Marc D. wrote:


Any suggestions on how I can go about changing the behaviour
of lyx? I was unaware that I had control over the LaTeX that
LyX outputs.  I'm more than willing and able to read documentation,
but I'd appreciate being pointed to the right chapter.


what does Edit-Preferences-Output-Converters say for
the entry LaTeX-PDF?

Herbert





I have a LaTeX - PDF (ps to pdf) option that says:

Converter: pdflatex $$i
extra flag: latex


Now that the homework has been handed in (manual cut
and paste of images) I've posted the .lyx file to
http://ryuu.ca/lyx, along with the images, in case anyone
wants to see the raw source. I've also posted my preferences
and lyxrc files in the same directory. All will vanish
once this is solved, but it might help, and it can't hurt.




Re: Latex error on graphics insert (LyX 1.3.7)

2006-01-27 Thread Herbert Voss

Marc D. wrote:


I have a LaTeX - PDF (ps to pdf) option that says:

Converter: pdflatex $$i
extra flag: latex


Now that the homework has been handed in (manual cut
and paste of images) I've posted the .lyx file to
http://ryuu.ca/lyx, along with the images, in case anyone
wants to see the raw source. I've also posted my preferences
and lyxrc files in the same directory. All will vanish
once this is solved, but it might help, and it can't hurt.


seems to be a bug in LyX, but the question is who inserts
this line ...
Delete the line

\graphics dvips

in your LyX file ( outside of LyX ) and everything should
be ok. At least for me ... ;-)
And by the way, it is a kind of crazy to convert your
automata images to jpeg. png or odf is the right format,
or what I would prefer, create them on the fly with gastex.

http://www.lsv.ens-cachan.fr/~gastin/gastex/more.html

Same for your commutated diagrams ... there are much more
better tools.

http://tug.org/PSTricks/main.cgi?file=psmatrix/cd

Herbert



Re: Latex error on graphics insert (LyX 1.3.7)

2006-01-27 Thread Herbert Voss

Herbert Voss wrote:

Marc D. wrote:


I have a LaTeX - PDF (ps to pdf) option that says:

Converter: pdflatex $$i
extra flag: latex


Now that the homework has been handed in (manual cut
and paste of images) I've posted the .lyx file to
http://ryuu.ca/lyx, along with the images, in case anyone
wants to see the raw source. I've also posted my preferences
and lyxrc files in the same directory. All will vanish
once this is solved, but it might help, and it can't hurt.



seems to be a bug in LyX, but the question is who inserts
this line ...


just found it ... It was you who enables the PostScript
driver Layout-Document-Packages-PostScript driver

it is wrong enabling dvips when using pdflatex.
This option should _always_ be the default driver.
However, this is one of the really really obsolete
options, which confuses users and doesn't help.

Herbert



Re: Latex error on graphics insert (LyX 1.3.7)

2006-01-27 Thread Paul A. Rubin

Marc D. wrote:


On 27 Jan 06, at 10:17, Herbert Voss wrote:


Marc D. wrote:


Any suggestions on how I can go about changing the behaviour
of lyx? I was unaware that I had control over the LaTeX that
LyX outputs.  I'm more than willing and able to read documentation,
but I'd appreciate being pointed to the right chapter.


what does Edit-Preferences-Output-Converters say for
the entry LaTeX-PDF?

Herbert





I have a LaTeX - PDF (ps to pdf) option that says:

Converter: pdflatex $$i
extra flag: latex


There's an inconsistency here.  I downloaded all the files from your 
directory.  The converters are defined in lyxrc, where the key lines (I 
think) are:


\Format pdf   pdf  PDF (ps2pdf) P
\Format pdf2  pdf  PDF (pdflatex)   F
\Format pdf3  pdf  PDF (dvipdfm)m
\converter latex pdf2 pdflatex $$i latex
\converter dvi pdf3 dvipdfm $$i 
\converter ps pdf ps2pdf13 $$i 

The first three lines declare three different extensions (pdf, pdf2, 
pdf3) to by used by LyX to indicate pdf files created three different 
ways (latex-dvi-ps-pdf, latex-pdf, latex-dvi-pdf respectively). 
The other three lines give the terminal conversion in each case.


In your preferences file, I found the following:

\format pdf pdf PDF (pdflatex) 
\format pdf2 pdf PDF (ps to pdf) 

Note that the labels for the pdf and pdf2 extensions are actually the 
reverse of what the converters do (i.e., pdf is via ps, not via 
pdflatex).  So if you're selecting View-PDF (ps to pdf), I think you're 
actually running pdflatex, and if you're selecting View-PDF (pdflatex), 
I think you're actually running latex, dvips and ps2pdf13.


 
Now that the homework has been handed in (manual cut

and paste of images) I've posted the .lyx file to
http://ryuu.ca/lyx, along with the images, in case anyone
wants to see the raw source. I've also posted my preferences
and lyxrc files in the same directory. All will vanish
once this is solved, but it might help, and it can't hurt.



I ran your document with LyX 1.3.7, Win XP, MiKTeX.  No matter how I 
view it, it comes out correct.  I also exported to latex and ran latex 
(twice, dvips, and ps2pdf13 in that order, and got a correct PDF file. 
I notice from your path that you're using teTeX.  Maybe a component 
needs upgrading?


/Paul



Re: Latex error on graphics insert (LyX 1.3.7)

2006-01-27 Thread Herbert Voss

Paul A. Rubin wrote:

I ran your document with LyX 1.3.7, Win XP, MiKTeX.  No matter how I 


MiKTeX comes with an own extended dvips driver, which is the reason
why it runs with an installed MiKTeX but not with _any_ other
distribution.

view it, it comes out correct.  I also exported to latex and ran latex 
(twice, dvips, and ps2pdf13 in that order, and got a correct PDF file. I 


in _general_ this cannot work, dvips understands only ps/eps images.

notice from your path that you're using teTeX.  Maybe a component needs 
upgrading?


Herbert



Re: Latex error on graphics insert (LyX 1.3.7)

2006-01-27 Thread Jean-Marc Lasgouttes
 Herbert == Herbert Voss [EMAIL PROTECTED] writes:

Herbert it is wrong enabling dvips when using pdflatex. This option
Herbert should _always_ be the default driver. However, this is one
Herbert of the really really obsolete options, which confuses users
Herbert and doesn't help.


Do you mean there is no good reason to use it? Is it true for
color.sty too? I'd be glad to get rid of it :)

JMarc


Re: Latex error on graphics insert (LyX 1.3.7)

2006-01-27 Thread Herbert Voss

Jean-Marc Lasgouttes wrote:

Herbert == Herbert Voss [EMAIL PROTECTED] writes:



Herbert it is wrong enabling dvips when using pdflatex. This option
Herbert should _always_ be the default driver. However, this is one
Herbert of the really really obsolete options, which confuses users
Herbert and doesn't help.


Do you mean there is no good reason to use it? Is it true for
color.sty too? I'd be glad to get rid of it :)


\listfiles
\documentclass{article}
\usepackage{color}
\begin{document}

\fcolorbox{red}{green}{blue}

\end{document}

the color.cfg can detect the running mode:

-- snip 
This is pdfeTeXk, Version 3.141592-1.30.4-2.2 (Web2C 7.5.5)
 %-line parsing enabled.
entering extended mode
(./demo0.tex
LaTeX2e
Babel  and hyphenation patterns for english, usenglishmax, dumylang, noh

[ ... ]

(/usr/local/texlive/2005/texmf-dist/tex/latex/base/article.cls
Document Class: article 2004/02/16 v1.4f Standard LaTeX document class
(/usr/local/texlive/2005/texmf-dist/tex/latex/base/size10.clo))
(/usr/local/texlive/2005/texmf-dist/tex/latex/graphics/color.sty
(/usr/local/texlive/2005/texmf/tex/latex/config/color.cfg)
(/usr/local/texlive/2005/texmf-dist/tex/latex/graphics/dvips.def)
(/usr/local/texlive/2005/texmf-dist/tex/latex/graphics/dvipsnam.def))
(./demo0.aux) [1] (./demo0.aux)

 *File List*
 article.cls2004/02/16 v1.4f Standard LaTeX document class
  size10.clo2004/02/16 v1.4f Standard LaTeX file (size option)
   color.sty1999/02/16 v1.0i Standard LaTeX Color (DPC)
   color.cfg2001/08/31 v1.1 color configuration of teTeX/TeXLive
   dvips.def1999/02/16 v3.0i Driver-dependant file (DPC,SPQR)
dvipsnam.def1999/02/16 v3.0i Driver-dependant file (DPC,SPQR)
-- snip 

and the same with running pdflatex:

-- snip 
[ ... ]
(/usr/local/texlive/2005/texmf-dist/tex/latex/graphics/color.sty
(/usr/local/texlive/2005/texmf/tex/latex/config/color.cfg)
(/usr/local/texlive/2005/texmf-dist/tex/latex/graphics/pdftex.def))
(./demo0.aux) 
(/usr/local/texlive/2005/texmf-dist/tex/context/base/supp-pdf.tex

 (/usr/local/texlive/2005/texmf-dist/tex/context/base/supp-mis.tex
loading : Context Support Macros / Miscellaneous (2004.10.26)
[ ... ]
-- snip 


maybe that there is a very special case for using this option, then
it is no problem to use dvips via the documentclass option field.


Herbert



Re: Latex error on graphics insert (LyX 1.3.7)

2006-01-27 Thread Marc D.


On 27 Jan 06, at 13:04, Herbert Voss wrote:


Herbert Voss wrote:

Marc D. wrote:

I have a LaTeX - PDF (ps to pdf) option that says:

Converter: pdflatex $$i
extra flag: latex


Now that the homework has been handed in (manual cut
and paste of images) I've posted the .lyx file to
http://ryuu.ca/lyx, along with the images, in case anyone
wants to see the raw source. I've also posted my preferences
and lyxrc files in the same directory. All will vanish
once this is solved, but it might help, and it can't hurt.

seems to be a bug in LyX, but the question is who inserts
this line ...


just found it ... It was you who enables the PostScript
driver Layout-Document-Packages-PostScript driver


It says default when I go there from here,
and I don't recall ever changing it. It's a
clean, recent install. I even did the lyxrc xpdf to open
changes manually in order to not copy over any other stuff
I may have done by mistake.

If it says Default in LyX, would you know the
other ways that it could have been changed?
Where does LyX store that preference?

As for other options, the lyxrc was copied only
to change xpdf to open, as I use the Mac interface
by preference. That was the only change.

LyX $ diff lyxrc lyxrc.defaults.bak
64,66c64,66
 \viewer pdf open
 \viewer pdf2 open
 \viewer pdf3 open
---
 \viewer pdf xpdf
 \viewer pdf2 xpdf
 \viewer pdf3 xpdf




Re: Latex error on graphics insert (LyX 1.3.7)

2006-01-27 Thread Marc D.


On 27 Jan 06, at 12:50, Herbert Voss wrote:


Marc D. wrote:


I have a LaTeX - PDF (ps to pdf) option that says:
Converter: pdflatex $$i
extra flag: latex
Now that the homework has been handed in (manual cut
and paste of images) I've posted the .lyx file to
http://ryuu.ca/lyx, along with the images, in case anyone
wants to see the raw source. I've also posted my preferences
and lyxrc files in the same directory. All will vanish
once this is solved, but it might help, and it can't hurt.


seems to be a bug in LyX, but the question is who inserts
this line ...
Delete the line

\graphics dvips

in your LyX file ( outside of LyX ) and everything should
be ok. At least for me ... ;-)


This works for me as well. Still doesn't work with any
of the other view options, but at least one works.

Thank you.

I still don't understand where that line came from, since
when I go to Layout-Document-Packages it says that
my Postscript driver is Default. Can I change that
to something else in my preferences or lyxrc?



And by the way, it is a kind of crazy to convert your
automata images to jpeg. png or odf is the right format,
or what I would prefer, create them on the fly with gastex.


I use jpeg because I was having trouble with other formats.
As in, LyX wouldn't even display them internally. Including png.
Since the clean install it seems to work ok, although no
better or no worse than jpg.

I'm not sure that creating something on the fly with gastex
is something I will be doing in the near future. Learning curve
seems a little high, and it doesn't seem condusive to taking
notes in class. Probably a lovely tool for writing a book or
paper. The better interface requirement is why I use LyX in
the first place! I don't want to have to type raw laTeX code.
I have in the past, and I didn't enjoy it.

I create my automata with Omnigraffle and export to jpg.
That tool also allows me to copy the professor's lectures from
the board on the fly. I'm not sure I could do that with gastex,
unless there is a better interface to it than a text editor.

regards,
Marc




Re: Latex error on graphics insert (LyX 1.3.7)

2006-01-27 Thread Marc D.


On 27 Jan 06, at 18:08, Marc D. wrote:



On 27 Jan 06, at 12:50, Herbert Voss wrote:


Marc D. wrote:


I have a LaTeX - PDF (ps to pdf) option that says:
Converter: pdflatex $$i
extra flag: latex
Now that the homework has been handed in (manual cut
and paste of images) I've posted the .lyx file to
http://ryuu.ca/lyx, along with the images, in case anyone
wants to see the raw source. I've also posted my preferences
and lyxrc files in the same directory. All will vanish
once this is solved, but it might help, and it can't hurt.


seems to be a bug in LyX, but the question is who inserts
this line ...
Delete the line

\graphics dvips

in your LyX file ( outside of LyX ) and everything should
be ok. At least for me ... ;-)


This works for me as well. Still doesn't work with any
of the other view options, but at least one works.

Thank you.

I still don't understand where that line came from, since
when I go to Layout-Document-Packages it says that
my Postscript driver is Default. Can I change that
to something else in my preferences or lyxrc?


replying to myself...

In testing, I've found that if I create a NEW file,
I get \graphics default.  This would explain why the new
file was working.

However, in a1.ps, even though I have set
the option to default, it seems to keep \graphics dvips
The file may have been created before my installation broke,
so I don't know if that was the way things were before.
Setting the options to dvips, saving, then setting them
back to default actually updated the file.

Now to try to solve the problem of it not working for any
other option, no matter what file format I use.  Prior to
my loss of /usr/local, it was working fine.  Now I open
my old files and I'm getting all sorts of errors and I can't
create pdfs from them at all, yet I could before.

I have been sent a couple more links for documentation, so
will read those before coming back with hopefully cogent
questions.

regards,
Marc



Re: Latex error on graphics insert (LyX 1.3.7)

2006-01-27 Thread Stephen Harris


- Original Message - 
From: "Herbert Voss" <[EMAIL PROTECTED]>

To: <lyx-users@lists.lyx.org>
Sent: Thursday, January 26, 2006 11:46 AM
Subject: Re: Latex error on graphics insert (LyX 1.3.7)



Marc D. wrote:

I have a file that processes fine using "PDF (ps to pdf)"
option.

When I insert a graphic, it then gives me a single error:

LaTeX Error: Cannot determine size of graphic in /tmp/ 
lyx_tmpdir7937ASk7yo/ly

...van_courses_current_320_assign_a1-3b.jpg}


you can not use ps2pdf and a jpeg file! ps2pdf converts a
PostScript file:

ps/eps   : latex ->dvips -> ps2pdf
jpeg/png/pdf : pdflatex

you have to use pdflatex

Herbert



It seems my idea about converting the .eps file to .jpg format
was not the best way to proceed, but instead to use epstopdf.

http://mintaka.sdsu.edu/GF/bibliog/latex/LaTeXtoPDF.html

pdflatex method (details)

1. Convert all the figures to non-EPS form.

As  pdflatex  doesn't use EPS figures, we have to convert 
them all to either JPEG, PNG, or PDF form. It makes no sense 
to convert EPS to PNG, because that changes scalable graphics 
to bulky rasterised form. JPEG would be even worse, because 
of its lossy compression. 

The way to go is to convert EPS to PDF:  
epstopdf image.eps
which creates a file named  image.pdf  by default. (This has the 
happy side-effect of compressing the actual PostScript text of 
the original EPS file; if that file were longer than about 2 kB, the 
compression would more than offset the added PDF headers, 
and the PDF file could be smaller than its EPS parent.) 


2. Tell LaTeX what to expect.

The preamble to the LaTeX source file now looks much like 
the one used in the traditional method: 


\documentclass[pdftex,...]{article}  % the pdftex is essential
\usepackage[dvips]{graphicx} % to include images
\usepackage{pslatex}  % to use PostScript fonts

   % redefine float-placement parameters here 
\begin{document}


Note that the package name to put in the argument list 
is pdftex, not pdflatex. 


3. Include the figures in the *.tex file.

Just as in the traditional method, we can omit the filename suffix: 


\begin{figure}[htp]
\resizebox{\textwidth}{!}{
 \includegraphics[width=\textwidth]{circle1}
 }
\caption{circle1}
\end{figure}

But now, what's automatically found is the 
file circle1.pdf, not circle1.eps." 


Regards,
Stephen






Re: Latex error on graphics insert (LyX 1.3.7)

2006-01-27 Thread Herbert Voss

Stephen Harris wrote:


It seems my idea about converting the .eps file to .jpg format
was not the best way to proceed, but instead to use epstopdf.


eps to jpg is the wrong way, convert them _always_ to pdf with epstopdf.

The preamble to the LaTeX source file now looks much like the one used 
in the traditional method:

\documentclass[pdftex,...]{article}  % the pdftex is essential
\usepackage[dvips]{graphicx} % to include images
\usepackage{pslatex}  % to use PostScript fonts


using options pdftex _and_ dvips makes no sense, use
only one of it.


Just as in the traditional method, we can omit the filename suffix:


only when you use the right driver!

But now, what's automatically found is the file circle1.pdf, not 
circle1.eps."


pdflatex is run in dvi mode. _all_ new distributions
use pdftex as engine.

Herbert



Re: Latex error on graphics insert (LyX 1.3.7)

2006-01-27 Thread Marc D.


On 27 Jan 06, at 07:12, Herbert Voss wrote:


Stephen Harris wrote:


It seems my idea about converting the .eps file to .jpg format
was not the best way to proceed, but instead to use epstopdf.


eps to jpg is the wrong way, convert them _always_ to pdf with  
epstopdf.


The preamble to the LaTeX source file now looks much like the one  
used in the traditional method:

\documentclass[pdftex,...]{article}  % the pdftex is essential
\usepackage[dvips]{graphicx} % to include images
\usepackage{pslatex}  % to use PostScript fonts


using options pdftex _and_ dvips makes no sense, use
only one of it.


I'm back. Sleep is good!!

Any suggestions on how I can go about changing the behaviour
of lyx? I was unaware that I had control over the LaTeX that
LyX outputs.  I'm more than willing and able to read documentation,
but I'd appreciate being pointed to the right chapter.

I've read the available documentation under "Help", but can't
recall any detailed documentation on exactly what LyX calls
to convert the LyX code to LaTeX and then to PDF. Once I understand
that process, I'll be able to see what might be broken on
my system, maybe even contribute a general-purpose script
(I'm very good at scripts) if necessary.

Thanks,
Marc



Re: Latex error on graphics insert (LyX 1.3.7)

2006-01-27 Thread Stephen Harris


- Original Message - 
From: "Marc D." <[EMAIL PROTECTED]>

To: <lyx-users@lists.lyx.org>
Sent: Friday, January 27, 2006 7:40 AM
Subject: Re: Latex error on graphics insert (LyX 1.3.7)




On 27 Jan 06, at 07:12, Herbert Voss wrote:


Stephen Harris wrote:


It seems my idea about converting the .eps file to .jpg format
was not the best way to proceed, but instead to use epstopdf.


eps to jpg is the wrong way, convert them _always_ to pdf with  
epstopdf.




Yes, my sentence was correcting an earlier post which suggested
eps to jpg. "instead" meant I was suggesting epstopdf as you did.
I should have put a comma after "proceed, but instead,..."

The preamble to the LaTeX source file now looks much like the one  
used in the traditional method:

\documentclass[pdftex,...]{article}  % the pdftex is essential
\usepackage[dvips]{graphicx} % to include images
\usepackage{pslatex}  % to use PostScript fonts


using options pdftex _and_ dvips makes no sense, use
only one of it.


I'm back. Sleep is good!!

Any suggestions on how I can go about changing the behaviour
of lyx? I was unaware that I had control over the LaTeX that
LyX outputs.  I'm more than willing and able to read documentation,
but I'd appreciate being pointed to the right chapter.



Under LyX1.3.7, under View, there are three different .pdf viewing 
options, if your LyX is installed right. pdflatex is the recommended 
one, but it doesn't handle image files in the .eps format. Which is

why epstopdf is used to change the file format from .eps to .pdf.
pdflatex works with image files of the .png, .jpg and .pdf formats.

ps2pdf does work with .eps graphical files, but not the .jpg format 
So ps2pdf worked ok when you had one eps image within your

lyx document (and I presume within a (La)tex document). But then
you added another I think, .jpg image, which violated the boundaries 
of the ps2pdf conversion capability. 


On my system, I can view with a ghostscript viewer, gsview, or
Adobe Reader which reads .pdf files, save the file or print it out
on my printer. On Linux/Mac OS X the user .pdf viewer is xpdf
which I think you said you removed. 


Also under Lyx->File if you have a file open there is an active
choice to Export to .pdf or dvi or postscript. I know less about
that since the only time I use that is to export as Latex and that
exported file is made, but there isn't any indication of it, and I
think it is stored in a temp directory. 


Another place where the behavior of viewing files is controlled
is under LyX->Edit->Preferences, you will see File formats and
it displays the assigned Viewers for the different file formats.
Also you will see Converters which also lists three .pdf methods.


I've read the available documentation under "Help", but can't
recall any detailed documentation on exactly what LyX calls
to convert the LyX code to LaTeX and then to PDF. Once I understand
that process, I'll be able to see what might be broken on
my system, maybe even contribute a general-purpose script
(I'm very good at scripts) if necessary.

Thanks,
Marc



Usually the defaults work quite well and a user never has to fiddle
with the settings. Try loading your first file which I think had just
the .eps image; the one you said works with ps2pdf. This time
use the View windows and select ps2pdf and see if it still works.
Then try dvipdfm. I am not so sure you should have removed the
xpdf viewer, see how it works. If dvipdfm works with just the
one graphic image using View, then try it with the the file that has
two images (one eps and one jpg if I undertand you). You may
have to put xpdf back in as a viewer. You said you had pdflatex
working from the command line before, which would need your
jpg file and the image.pdf file (which you converted from image.eps)
using epstopdf (from the command line). Sometimes that epstopdf
conversion needs to have some bounding box (BB) work done on 
the image.eps file depending on how it was constructed. Edit your

homework .lyx file appropriately for BBs and adding images.

Herbert is the expert in this area. If I made any mistakes in 
explaining this I hope he corrects them. Perhaps part of the

problem so far is a lack of knowledge about LyX defaults.
http://wiki.lyx.org/ provides a searchable interface for some
topics. Google also contains a lot of information about (La)TeX
providing details about the pdf viewers which LyX relies upon,
but which come with the various (La)TeX versions and platforms.
Working instances of Ghostscript and Python are also needed.

I'll leave any further advice to more experienced users, Good luck,
Stephen



Re: Latex error on graphics insert (LyX 1.3.7)

2006-01-27 Thread Herbert Voss

Marc D. wrote:


Any suggestions on how I can go about changing the behaviour
of lyx? I was unaware that I had control over the LaTeX that
LyX outputs.  I'm more than willing and able to read documentation,
but I'd appreciate being pointed to the right chapter.


what does Edit->Preferences->Output->Converters say for
the entry LaTeX->PDF?

Herbert



Re: Latex error on graphics insert (LyX 1.3.7)

2006-01-27 Thread Marc D.


On 27 Jan 06, at 10:17, Herbert Voss wrote:


Marc D. wrote:


Any suggestions on how I can go about changing the behaviour
of lyx? I was unaware that I had control over the LaTeX that
LyX outputs.  I'm more than willing and able to read documentation,
but I'd appreciate being pointed to the right chapter.


what does Edit->Preferences->Output->Converters say for
the entry LaTeX->PDF?

Herbert





I have a LaTeX -> PDF (ps to pdf) option that says:

Converter: pdflatex $$i
extra flag: latex


Now that the homework has been handed in (manual cut
and paste of images) I've posted the .lyx file to
http://ryuu.ca/lyx, along with the images, in case anyone
wants to see the raw source. I've also posted my preferences
and lyxrc files in the same directory. All will vanish
once this is solved, but it might help, and it can't hurt.




Re: Latex error on graphics insert (LyX 1.3.7)

2006-01-27 Thread Herbert Voss

Marc D. wrote:


I have a LaTeX -> PDF (ps to pdf) option that says:

Converter: pdflatex $$i
extra flag: latex


Now that the homework has been handed in (manual cut
and paste of images) I've posted the .lyx file to
http://ryuu.ca/lyx, along with the images, in case anyone
wants to see the raw source. I've also posted my preferences
and lyxrc files in the same directory. All will vanish
once this is solved, but it might help, and it can't hurt.


seems to be a bug in LyX, but the question is who inserts
this line ...
Delete the line

\graphics dvips

in your LyX file ( outside of LyX ) and everything should
be ok. At least for me ... ;-)
And by the way, it is a kind of crazy to convert your
automata images to jpeg. png or odf is the right format,
or what I would prefer, create them on the fly with gastex.

http://www.lsv.ens-cachan.fr/~gastin/gastex/more.html

Same for your commutated diagrams ... there are much more
better tools.

http://tug.org/PSTricks/main.cgi?file=psmatrix/cd

Herbert



Re: Latex error on graphics insert (LyX 1.3.7)

2006-01-27 Thread Herbert Voss

Herbert Voss wrote:

Marc D. wrote:


I have a LaTeX -> PDF (ps to pdf) option that says:

Converter: pdflatex $$i
extra flag: latex


Now that the homework has been handed in (manual cut
and paste of images) I've posted the .lyx file to
http://ryuu.ca/lyx, along with the images, in case anyone
wants to see the raw source. I've also posted my preferences
and lyxrc files in the same directory. All will vanish
once this is solved, but it might help, and it can't hurt.



seems to be a bug in LyX, but the question is who inserts
this line ...


just found it ... It was you who enables the PostScript
driver Layout->Document->Packages->PostScript driver

it is wrong enabling dvips when using pdflatex.
This option should _always_ be the default driver.
However, this is one of the really really obsolete
options, which confuses users and doesn't help.

Herbert



Re: Latex error on graphics insert (LyX 1.3.7)

2006-01-27 Thread Paul A. Rubin

Marc D. wrote:


On 27 Jan 06, at 10:17, Herbert Voss wrote:


Marc D. wrote:


Any suggestions on how I can go about changing the behaviour
of lyx? I was unaware that I had control over the LaTeX that
LyX outputs.  I'm more than willing and able to read documentation,
but I'd appreciate being pointed to the right chapter.


what does Edit->Preferences->Output->Converters say for
the entry LaTeX->PDF?

Herbert





I have a LaTeX -> PDF (ps to pdf) option that says:

Converter: pdflatex $$i
extra flag: latex


There's an inconsistency here.  I downloaded all the files from your 
directory.  The converters are defined in lyxrc, where the key lines (I 
think) are:


\Format pdf   pdf  "PDF (ps2pdf)" P
\Format pdf2  pdf  "PDF (pdflatex)"   F
\Format pdf3  pdf  "PDF (dvipdfm)"m
\converter latex pdf2 "pdflatex $$i" "latex"
\converter dvi pdf3 "dvipdfm $$i" ""
\converter ps pdf "ps2pdf13 $$i" ""

The first three lines declare three different extensions (pdf, pdf2, 
pdf3) to by used by LyX to indicate pdf files created three different 
ways (latex->dvi->ps->pdf, latex->pdf, latex->dvi->pdf respectively). 
The other three lines give the terminal conversion in each case.


In your preferences file, I found the following:

\format "pdf" "pdf" "PDF (pdflatex)" ""
\format "pdf2" "pdf" "PDF (ps to pdf)" ""

Note that the labels for the pdf and pdf2 extensions are actually the 
reverse of what the converters do (i.e., pdf is via ps, not via 
pdflatex).  So if you're selecting View->PDF (ps to pdf), I think you're 
actually running pdflatex, and if you're selecting View->PDF (pdflatex), 
I think you're actually running latex, dvips and ps2pdf13.


 
Now that the homework has been handed in (manual cut

and paste of images) I've posted the .lyx file to
http://ryuu.ca/lyx, along with the images, in case anyone
wants to see the raw source. I've also posted my preferences
and lyxrc files in the same directory. All will vanish
once this is solved, but it might help, and it can't hurt.



I ran your document with LyX 1.3.7, Win XP, MiKTeX.  No matter how I 
view it, it comes out correct.  I also exported to latex and ran latex 
(twice, dvips, and ps2pdf13 in that order, and got a correct PDF file. 
I notice from your path that you're using teTeX.  Maybe a component 
needs upgrading?


/Paul



Re: Latex error on graphics insert (LyX 1.3.7)

2006-01-27 Thread Herbert Voss

Paul A. Rubin wrote:

I ran your document with LyX 1.3.7, Win XP, MiKTeX.  No matter how I 


MiKTeX comes with an own extended dvips driver, which is the reason
why it runs with an installed MiKTeX but not with _any_ other
distribution.

view it, it comes out correct.  I also exported to latex and ran latex 
(twice, dvips, and ps2pdf13 in that order, and got a correct PDF file. I 


in _general_ this cannot work, dvips understands only ps/eps images.

notice from your path that you're using teTeX.  Maybe a component needs 
upgrading?


Herbert



Re: Latex error on graphics insert (LyX 1.3.7)

2006-01-27 Thread Jean-Marc Lasgouttes
> "Herbert" == Herbert Voss <[EMAIL PROTECTED]> writes:

Herbert> it is wrong enabling dvips when using pdflatex. This option
Herbert> should _always_ be the default driver. However, this is one
Herbert> of the really really obsolete options, which confuses users
Herbert> and doesn't help.


Do you mean there is no good reason to use it? Is it true for
color.sty too? I'd be glad to get rid of it :)

JMarc


Re: Latex error on graphics insert (LyX 1.3.7)

2006-01-27 Thread Herbert Voss

Jean-Marc Lasgouttes wrote:

"Herbert" == Herbert Voss <[EMAIL PROTECTED]> writes:



Herbert> it is wrong enabling dvips when using pdflatex. This option
Herbert> should _always_ be the default driver. However, this is one
Herbert> of the really really obsolete options, which confuses users
Herbert> and doesn't help.


Do you mean there is no good reason to use it? Is it true for
color.sty too? I'd be glad to get rid of it :)


\listfiles
\documentclass{article}
\usepackage{color}
\begin{document}

\fcolorbox{red}{green}{blue}

\end{document}

the color.cfg can detect the running mode:

-- snip 
This is pdfeTeXk, Version 3.141592-1.30.4-2.2 (Web2C 7.5.5)
 %&-line parsing enabled.
entering extended mode
(./demo0.tex
LaTeX2e
Babel  and hyphenation patterns for english, usenglishmax, dumylang, noh

[ ... ]

(/usr/local/texlive/2005/texmf-dist/tex/latex/base/article.cls
Document Class: article 2004/02/16 v1.4f Standard LaTeX document class
(/usr/local/texlive/2005/texmf-dist/tex/latex/base/size10.clo))
(/usr/local/texlive/2005/texmf-dist/tex/latex/graphics/color.sty
(/usr/local/texlive/2005/texmf/tex/latex/config/color.cfg)
(/usr/local/texlive/2005/texmf-dist/tex/latex/graphics/dvips.def)
(/usr/local/texlive/2005/texmf-dist/tex/latex/graphics/dvipsnam.def))
(./demo0.aux) [1] (./demo0.aux)

 *File List*
 article.cls2004/02/16 v1.4f Standard LaTeX document class
  size10.clo2004/02/16 v1.4f Standard LaTeX file (size option)
   color.sty1999/02/16 v1.0i Standard LaTeX Color (DPC)
   color.cfg2001/08/31 v1.1 color configuration of teTeX/TeXLive
   dvips.def1999/02/16 v3.0i Driver-dependant file (DPC,SPQR)
dvipsnam.def1999/02/16 v3.0i Driver-dependant file (DPC,SPQR)
-- snip 

and the same with running pdflatex:

-- snip 
[ ... ]
(/usr/local/texlive/2005/texmf-dist/tex/latex/graphics/color.sty
(/usr/local/texlive/2005/texmf/tex/latex/config/color.cfg)
(/usr/local/texlive/2005/texmf-dist/tex/latex/graphics/pdftex.def))
(./demo0.aux) 
(/usr/local/texlive/2005/texmf-dist/tex/context/base/supp-pdf.tex

 (/usr/local/texlive/2005/texmf-dist/tex/context/base/supp-mis.tex
loading : Context Support Macros / Miscellaneous (2004.10.26)
[ ... ]
-- snip 


maybe that there is a very special case for using this option, then
it is no problem to use dvips via the documentclass option field.


Herbert



Re: Latex error on graphics insert (LyX 1.3.7)

2006-01-27 Thread Marc D.


On 27 Jan 06, at 13:04, Herbert Voss wrote:


Herbert Voss wrote:

Marc D. wrote:

I have a LaTeX -> PDF (ps to pdf) option that says:

Converter: pdflatex $$i
extra flag: latex


Now that the homework has been handed in (manual cut
and paste of images) I've posted the .lyx file to
http://ryuu.ca/lyx, along with the images, in case anyone
wants to see the raw source. I've also posted my preferences
and lyxrc files in the same directory. All will vanish
once this is solved, but it might help, and it can't hurt.

seems to be a bug in LyX, but the question is who inserts
this line ...


just found it ... It was you who enables the PostScript
driver Layout->Document->Packages->PostScript driver


It says "default" when I go there from here,
and I don't recall ever changing it. It's a
clean, recent install. I even did the lyxrc xpdf to open
changes manually in order to not copy over any other stuff
I may have done by mistake.

If it says "Default" in LyX, would you know the
other ways that it could have been changed?
Where does LyX store that preference?

As for other options, the lyxrc was copied only
to change "xpdf" to "open", as I use the Mac interface
by preference. That was the only change.

LyX $ diff lyxrc lyxrc.defaults.bak
64,66c64,66
< \viewer pdf "open"
< \viewer pdf2 "open"
< \viewer pdf3 "open"
---
> \viewer pdf "xpdf"
> \viewer pdf2 "xpdf"
> \viewer pdf3 "xpdf"




Re: Latex error on graphics insert (LyX 1.3.7)

2006-01-27 Thread Marc D.


On 27 Jan 06, at 12:50, Herbert Voss wrote:


Marc D. wrote:


I have a LaTeX -> PDF (ps to pdf) option that says:
Converter: pdflatex $$i
extra flag: latex
Now that the homework has been handed in (manual cut
and paste of images) I've posted the .lyx file to
http://ryuu.ca/lyx, along with the images, in case anyone
wants to see the raw source. I've also posted my preferences
and lyxrc files in the same directory. All will vanish
once this is solved, but it might help, and it can't hurt.


seems to be a bug in LyX, but the question is who inserts
this line ...
Delete the line

\graphics dvips

in your LyX file ( outside of LyX ) and everything should
be ok. At least for me ... ;-)


This works for me as well. Still doesn't work with any
of the other view options, but at least one works.

Thank you.

I still don't understand where that line came from, since
when I go to Layout->Document->Packages it says that
my Postscript driver is "Default". Can I change that
to something else in my preferences or lyxrc?



And by the way, it is a kind of crazy to convert your
automata images to jpeg. png or odf is the right format,
or what I would prefer, create them on the fly with gastex.


I use jpeg because I was having trouble with other formats.
As in, LyX wouldn't even display them internally. Including png.
Since the clean install it seems to work ok, although no
better or no worse than jpg.

I'm not sure that creating something "on the fly" with gastex
is something I will be doing in the near future. Learning curve
seems a little high, and it doesn't seem condusive to taking
notes in class. Probably a lovely tool for writing a book or
paper. The "better interface" requirement is why I use LyX in
the first place! I don't want to have to type raw laTeX code.
I have in the past, and I didn't enjoy it.

I create my automata with Omnigraffle and export to jpg.
That tool also allows me to copy the professor's lectures from
the board on the fly. I'm not sure I could do that with gastex,
unless there is a better interface to it than a text editor.

regards,
Marc




Re: Latex error on graphics insert (LyX 1.3.7)

2006-01-27 Thread Marc D.


On 27 Jan 06, at 18:08, Marc D. wrote:



On 27 Jan 06, at 12:50, Herbert Voss wrote:


Marc D. wrote:


I have a LaTeX -> PDF (ps to pdf) option that says:
Converter: pdflatex $$i
extra flag: latex
Now that the homework has been handed in (manual cut
and paste of images) I've posted the .lyx file to
http://ryuu.ca/lyx, along with the images, in case anyone
wants to see the raw source. I've also posted my preferences
and lyxrc files in the same directory. All will vanish
once this is solved, but it might help, and it can't hurt.


seems to be a bug in LyX, but the question is who inserts
this line ...
Delete the line

\graphics dvips

in your LyX file ( outside of LyX ) and everything should
be ok. At least for me ... ;-)


This works for me as well. Still doesn't work with any
of the other view options, but at least one works.

Thank you.

I still don't understand where that line came from, since
when I go to Layout->Document->Packages it says that
my Postscript driver is "Default". Can I change that
to something else in my preferences or lyxrc?


replying to myself...

In testing, I've found that if I create a NEW file,
I get \graphics default.  This would explain why the new
file was working.

However, in a1.ps, even though I have set
the option to "default", it seems to keep \graphics dvips
The file may have been created before my installation broke,
so I don't know if that was the way things were before.
Setting the options to dvips, saving, then setting them
back to default actually updated the file.

Now to try to solve the problem of it not working for any
other option, no matter what file format I use.  Prior to
my loss of /usr/local, it was working fine.  Now I open
my old files and I'm getting all sorts of errors and I can't
create pdfs from them at all, yet I could before.

I have been sent a couple more links for documentation, so
will read those before coming back with hopefully cogent
questions.

regards,
Marc



Re: Latex error on graphics insert (LyX 1.3.7)

2006-01-26 Thread Marc D.


On 25 Jan 06, at 14:39, Marc D. wrote:


I have a file that processes fine using PDF (ps to pdf)
option.

When I insert a graphic, it then gives me a single error:

LaTeX Error: Cannot determine size of graphic in /tmp/ 
lyx_tmpdir7937ASk7yo/ly

...van_courses_current_320_assign_a1-3b.jpg}


I'm at my wits end. Can someone please tell me at least WHAT is wrong,
in terms of why LyX isn't able to create LaTeX code that works in
this case?
What is LyX is doing (or not doing) that creates this LaTeX error?
What should either LyX or myself should be doing to correct the problem?
I have googled, read the archives, searched, scoured, and generally
beat my head on this for many hours now, and I'm no closer to a clue.

Please, can someone help?

Do I have the wrong version of teTeX? Did I load the wrong tools?
This type of thing used to work without any problems with 1.3.4, 1.3,5
and 1.3.6 prior to a system error I had last week. Now, it's not working
at all.

What are the people using MacOSX generally using as the teTeX install?
I followed the instructions for Texshop, and used the 2006 MacTex.dmg
to install the necessary teTeX files. Should I be using something else?
I vaguely recall doing something different the first time I installed
teTeX, but do you think I can find my old notes? Not a chance!

All I'm doing is inserting a graphic into a file. That is the only
change between the two files.

Here are the differences between a file that works and one
that doesn't:

=
assign $ diff a1.borked.lyx a1.works.lyx
2492,2502d2491
 \layout Standard


 \begin_inset Graphics
   filename a1-3a.jpg
   lyxscale 50
   scale 50

 \end_inset


3653,3663d3641
 \layout Standard


 \begin_inset Graphics
   filename a1-3b.jpg
   lyxscale 50
   scale 50

 \end_inset


5693,5703d5670
 \layout Standard


 \begin_inset Graphics
   filename a1-3c.jpg
   lyxscale 50
   scale 50

 \end_inset


==


And a full log from the most recent test on a1.borked.lyx

== cut  _EOF_ 
This is pdfeTeX, Version 3.141592-1.30.4-2.2 (Web2C 7.5.5)  
(format=pdflatex 2006.1.8)  26 JAN 2006 00:09

entering extended mode
**a1.tex
(./a1.tex
LaTeX2e 2003/12/01
Babel v3.8d and hyphenation patterns for american, french, german,  
ngerman, d

utch, italian, norsk, portuges, spanish, swedish, nohyphenation, loaded.

(/usr/local/teTeX/share/texmf.tetex/tex/latex/base/article.cls
Document Class: article 2004/02/16 v1.4f Standard LaTeX document class
(/usr/local/teTeX/share/texmf.tetex/tex/latex/base/size10.clo
File: size10.clo 2004/02/16 v1.4f Standard LaTeX file (size option)
)
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
\abovecaptionskip=\skip41
\belowcaptionskip=\skip42
\bibindent=\dimen102
) (/usr/local/teTeX/share/texmf.tetex/tex/latex/base/fontenc.sty
Package: fontenc 2004/02/22 v1.99f Standard LaTeX package
(/usr/local/teTeX/share/texmf.tetex/tex/latex/base/t1enc.def
File: t1enc.def 2004/02/22 v1.99f Standard LaTeX file
LaTeX Font Info:Redeclaring font encoding T1 on input line 43.
)) (/usr/local/teTeX/share/texmf.tetex/tex/latex/base/inputenc.sty
Package: inputenc 2004/02/05 v1.0d Input encoding file
(/usr/local/teTeX/share/texmf.tetex/tex/latex/base/latin1.def
File: latin1.def 2004/02/05 v1.0d Input encoding file
)) (/usr/local/teTeX/share/texmf.tetex/tex/latex/geometry/geometry.sty
Package: geometry 2002/07/08 v3.2 Page Geometry
(/usr/local/teTeX/share/texmf.tetex/tex/latex/graphics/keyval.sty
Package: keyval 1999/03/16 v1.13 key=value parser (DPC)
[EMAIL PROTECTED]@=\toks14
)
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]@tempcnt=\count89
[EMAIL PROTECTED]
[EMAIL PROTECTED]@mp=\dimen104
[EMAIL PROTECTED]@mp=\dimen105
[EMAIL PROTECTED]@mp=\dimen106
[EMAIL PROTECTED]
(/usr/local/teTeX/share/texmf.tetex/tex/latex/geometry/geometry.cfg))  
(/usr/loc

al/teTeX/share/texmf.tetex/tex/latex/amsmath/amsmath.sty
Package: amsmath 2000/07/18 v2.13 AMS math features
[EMAIL PROTECTED]
For additional information on amsmath, use the `?' option.
(/usr/local/teTeX/share/texmf.tetex/tex/latex/amsmath/amstext.sty
Package: amstext 2000/06/29 v2.01
(/usr/local/teTeX/share/texmf.tetex/tex/latex/amsmath/amsgen.sty
File: amsgen.sty 1999/11/30 v2.0
[EMAIL PROTECTED]
[EMAIL PROTECTED]
)) (/usr/local/teTeX/share/texmf.tetex/tex/latex/amsmath/amsbsy.sty
Package: amsbsy 1999/11/29 v1.2d
[EMAIL PROTECTED]
) (/usr/local/teTeX/share/texmf.tetex/tex/latex/amsmath/amsopn.sty
Package: amsopn 1999/12/14 v2.01 operator names
)
[EMAIL PROTECTED]
LaTeX Info: Redefining \frac on input line 211.
[EMAIL PROTECTED]
[EMAIL PROTECTED]
LaTeX Info: Redefining \overline on input line 307.
[EMAIL PROTECTED]
[EMAIL PROTECTED]
LaTeX Info: Redefining \ldots on input line 379.
LaTeX Info: Redefining \dots on input line 382.
LaTeX Info: Redefining \cdots on input line 467.
[EMAIL 

Re: Latex error on graphics insert (LyX 1.3.7)

2006-01-26 Thread Kevin Pfeiffer
Marc D. writes:
  LaTeX Error: Cannot determine size of graphic in /tmp/
  lyx_tmpdir7937ASk7yo/ly
  ...van_courses_current_320_assign_a1-3b.jpg}

 File: /tmp/lyx_tmpdir17654ldPLfc/ 
 lyx_tmpbuf0/0_Users_donovan_courses_current_32
 0_assign_a1-3a.jpg Graphic file (type eps)

From the Latex Companion: You did not specify an explicit image size on 
the \includegraphics command and LaTeX was unable to determine the 
image size. It usually does this automatically for EPS files by reading 
bounding box info. However... it may be unable to extract this 
information from binary bitmap images such as .jpeg files.

In my experience (1.3.5) LyX converts jpegs to an EPS automagically. And 
above it does say type eps...

You could, as a workaround, try doing this yourself (save the jpeg as an 
eps). I would also first try one of the LyX help docs (with images) to 
see if have the same problem.

-Kevin




-- 
Kevin Pfeiffer [EMAIL PROTECTED]
Tiros-Translations


Re: Latex error on graphics insert (LyX 1.3.7)

2006-01-26 Thread Georg Baum
Marc D. wrote:

 I'm at my wits end. Can someone please tell me at least WHAT is wrong,
 in terms of why LyX isn't able to create LaTeX code that works in
 this case?
 What is LyX is doing (or not doing) that creates this LaTeX error?

We don't know, but with your help we might find out. Maybe this is bug 2127
(but I doubt it, see below): http://bugzilla.lyx.org/show_bug.cgi?id=2127.

 What should either LyX or myself should be doing to correct the problem?

First we need to find out whether the error is on the LyX side or TeX side.
Export the file to LaTeX, and run it through pdflatex manually. Does that
work? If not, what are the error messages?

 == cut  _EOF_ 
 This is pdfeTeX, Version 3.141592-1.30.4-2.2 (Web2C 7.5.5)
 (format=pdflatex 2006.1.8)  26 JAN 2006 00:09

This is different to bug 2127: There LyX tries to run TeX in dvi mode, here
it does the right thing.

 ! LaTeX Error: Cannot determine size of graphic in /tmp/
 lyx_tmpdir17654ldPLfc/l
 yx_tmpbuf0/0_Users_donovan_courses_current_320_assign_a1-3a.jpg (no
 BoundingBox
 ).

This should not happen: pdflatex can use .jpg files natively. Did you check
whether the file in the temp dir does actually exist and is readable? Can
you run a simple .tex file that includes this very image through pdflatex?


Georg



Re: Latex error on graphics insert (LyX 1.3.7)

2006-01-26 Thread Marc D.


On 26 Jan 06, at 01:06, Georg Baum wrote:


Kevin Pfeiffer wrote:


In my experience (1.3.5) LyX converts jpegs to an EPS automagically.


Only for dvi output, but he runs pdflatex. LyX does not convert to  
eps in

this case.


And
above it does say type eps...


I overread this. That is very interesting. Marc. please post the  
complete
\includegraphics command of the .tex file that was created by LyX.  
Does it

create something like type=eps? If not, then either your image or your
pdflatex compiler is broken.




Thanks for getting back to me.

I have tested the 3 images in a standalone file, and the images  
display fine using the PDF (ps to pdf) option.  It looks like the 3rd  
image, specified as eps rather than jpg, is converted to pdf before  
the tex file is created.


The jpg images are all in tmpbuf.

Opening the a1.tex file found in /tmp/lyx...
using Texshop gives the same results: image does not load.

Viewing the a1.lyx file as LaTeX directly:
opens Texshop, same result (no images)

Viewing the testimg.lyx file (where all I have is 3 images):
opens Texshop, works fine.

Not being able to view images in the other two options (PDF dvipdfm  
and PDF pdflatex is apparently a known bug: see http:// 
bugzilla.lyx.org/show_bug.cgi? id=2127 and many thanks to Bennett  
Helm for pointing that out to me.



From the a1.tex file in /tmp/...
=
\includegraphics[%
  bb=1bp 1bp 0bp 0bp,
  scale=0.5]{/tmp/lyx_tmpdir182370kPLxI/ 
lyx_tmpbuf0/1_Users_donovan_courses_current_320_assign_a1-3a.jpg}

...
\includegraphics[%
  bb=1bp 1bp 836bp 321bp,
  scale=0.5]{/tmp/lyx_tmpdir182370kPLxI/ 
lyx_tmpbuf0/2_Users_donovan_courses_current_320_assign_a1-3b.jpg}

...
\includegraphics[%
  bb=1bp 1bp 994bp 367bp,
  scale=0.5]{/tmp/lyx_tmpdir182370kPLxI/ 
lyx_tmpbuf0/0_Users_donovan_courses_current_320_assign_a1-3c.pdf}

\end{document}
===

from the testimg.tex file in /tmp/lyx... (the file that works):

==
\includegraphics[%
  bb=1bp 1bp 1034bp 273bp,
  scale=0.5]{/tmp/lyx_tmpdir182370kPLxI/ 
lyx_tmpbuf1/1_Users_donovan_courses_current_320_assign_a1-3a.jpg}


\includegraphics[%
  bb=1bp 1bp 836bp 321bp,
  scale=0.5]{/tmp/lyx_tmpdir182370kPLxI/ 
lyx_tmpbuf1/2_Users_donovan_courses_current_320_assign_a1-3b.jpg}


\includegraphics[%
  bb=1bp 1bp 994bp 367bp,
  scale=0.5]{/tmp/lyx_tmpdir182370kPLxI/ 
lyx_tmpbuf1/0_Users_donovan_courses_current_320_assign_a1-3c.pdf}

\end{document}



Re: Latex error on graphics insert (LyX 1.3.7)

2006-01-26 Thread Georg Baum
Marc D. wrote:

 I have tested the 3 images in a standalone file, and the images
 display fine using the PDF (ps to pdf) option.  It looks like the 3rd
 image, specified as eps rather than jpg, is converted to pdf before
 the tex file is created.

What does specified as eps mean? If it means that this file is actually n
eps file, then this is the wanted behaviour for pdflatex export, since
pdflatex can't handle .eps images.

 Not being able to view images in the other two options (PDF dvipdfm
 and PDF pdflatex is apparently a known bug: see http://
 bugzilla.lyx.org/show_bug.cgi? id=2127 and many thanks to Bennett
 Helm for pointing that out to me.

I am not sure whether you see the same bug, see my other mail.

  From the a1.tex file in /tmp/...
 =
 \includegraphics[%
bb=1bp 1bp 0bp 0bp,

Maybe this is the reason: You are specifying an impossible bounding box
here.


Georg



Re: Latex error on graphics insert (LyX 1.3.7)

2006-01-26 Thread Stephen Harris


- Original Message - 
From: Marc D. [EMAIL PROTECTED]

To: lyx-users@lists.lyx.org
Sent: Thursday, January 26, 2006 1:39 AM
Subject: Re: Latex error on graphics insert (LyX 1.3.7)




On 26 Jan 06, at 01:06, Georg Baum wrote:


Kevin Pfeiffer wrote:


In my experience (1.3.5) LyX converts jpegs to an EPS automagically.


Only for dvi output, but he runs pdflatex. LyX does not convert to  
eps in

this case.


And
above it does say type eps...


I overread this. That is very interesting. Marc. please post the  
complete
\includegraphics command of the .tex file that was created by LyX.  
Does it

create something like type=eps? If not, then either your image or your
pdflatex compiler is broken.




Thanks for getting back to me.

I have tested the 3 images in a standalone file, and the images  
display fine using the PDF (ps to pdf) option.  It looks like the 3rd  
image, specified as eps rather than jpg, is converted to pdf before  
the tex file is created.


The jpg images are all in tmpbuf.



If the .eps image file is causing a problem, could you convert it
.jpg and reference the .jpg version rather than the .eps in LyX?
Maybe the eps conversion is faulty and if it is the file itself then
it might fail to convert to another image format, so narrow it down.

I did a search for TeXshop and error messages. 
Maybe this will be helpful, maybe not. Most of the users use 
systems other than Macs and/or Texshop so don't have answers
arising from their own experience. 


-
http://rutherglen.ics.mq.edu.au/~alpha-bugzilla/show_bug.cgi?id=1906

viewPDF with TeXShop fails if the path contains spaces,
giving an error

  Error Message: Couldn't build descriptor: OSErr -1740

This was reported by Andreas in the beginning of July(05). He also 
observed that the bug could be fixed by inserting some quotes

around referenced variables.  (This revealed some very strange
phenomena that have not yet been explained...)  


Lars and Jon pointed out that the real problem is a missing
[tclAE::build::TEXT] in the TeXShop viewPDF driver.
-

http://www.uoregon.edu/~koch/texshop/version.html [SH: unlikely]

The default TeXShop preference for the teTeX binary directory is 
/usr/local/teTeX/bin/powerpc-apple-darwin-current. But if users 
have installed Gerben Wierda's latest TeX redistribution, they 
also have Intel binaries. On Intel machines, the teTeX binary 
directory should then be 
/usr/local/teTeX/bin/i386-apple-darwin-current. TeXShop now has 
code to make this change automatically. When the program first 
starts, it calls uname -p to determine the current processor. 
If the result is i386, then TeXShop permanently changes the 
above preference to /usr/local/teTeX/bin/i386-apple-darwin-current. 
However this change is not made if the user has manually changed 
the default /usr/local/teTeX/bin/powerpc-apple-darwin-current to 
some other location. Thus if a user has the Fink teTeX distribution 
or some other distribution and has set the teTeX binary directory 
preference to point to it, the preference will not be changed.


---
http://darkwing.uoregon.edu/~koch/texshop/texshop.html
---
http://www.uoregon.edu/~koch/texshop/installing.html
-

When did you last update your system? But though that
sometimes fixes bugs, it can also introduce backward
compatibility issues. 


Good luck,
Stephen







Re: Latex error on graphics insert (LyX 1.3.7)

2006-01-26 Thread Stephen Harris


- Original Message - 
From: Georg Baum [EMAIL PROTECTED]

To: lyx-users@lists.lyx.org
Sent: Thursday, January 26, 2006 2:21 AM
Subject: Re: Latex error on graphics insert (LyX 1.3.7)



 From the a1.tex file in /tmp/...
=
\includegraphics[%
   bb=1bp 1bp 0bp 0bp,


Maybe this is the reason: You are specifying an impossible bounding 
box here.



Georg



That seems plausible since the error message he reported is
caused by an improper bounding box, or an incorrect filename.

Regards,
Stephen



Re: Latex error on graphics insert (LyX 1.3.7)

2006-01-26 Thread Stephen Harris





- Original Message - 
From: Georg Baum [EMAIL PROTECTED]

To: lyx-users@lists.lyx.org
Sent: Thursday, January 26, 2006 2:21 AM
Subject: Re: Latex error on graphics insert (LyX 1.3.7)



 From the a1.tex file in /tmp/...
=
\includegraphics[%
   bb=1bp 1bp 0bp 0bp,


Maybe this is the reason: You are specifying an impossible bounding 
box here.



Georg





SH: That seems plausible since the error message he reported is
caused by an improper bounding box, or an incorrect filename.


http://www.physionet.org/physiotools/plt/plt/html/node47.html

Margins, cropping, and bounding boxes 

Every PostScript file included in a LATEX document must have 
a defined bounding box. Normally, the bounding box is defined 
using a structured comment at the beginning of the PostScript 
file. For example, the PostScript source for the figures shown 
above begins like this: 


%!PS-Adobe-3.0
%%BoundingBox: 90 252 540 684

In some cases, you may need to redefine the bounding box, 
either to adjust the amount of white space surrounding the 
figure or to crop your figure by selecting a clipping region. 
You may do so either by editing the PostScript file or in 
the LATEX source file. Any bounding box definitions in the 
LATEX source override those in the PostScript file. For 
details, see section 11.3, Merging Text and PostScript 
Graphics, in The LATEX Companion, pp. 317-320. 

An easy way to determine the correct bounding box is to 
view your figure using ghostview. Move the mouse pointer to 
the lower left corner of the figure and note the coordinates 
(displayed by ghostview immediately above the File button); 
these are the first two numbers in the BoundingBox line. 
Now move the mouse pointer to the upper right corner of the 
figure; the coordinates displayed are the last two numbers 
in the BoundingBox line. 

(This plot does not float within the text, since it was 
not put into a figure environment; rather, it appears in the 
same place in the output as in the LATEX source file.) Note 
that the = is required in the clip= option, although no 
value follows the =. Also note that the clip= option is 
ignored by pdfLATEX (see this figure in the PDF version of 
this book). 


Regards,
Stephen




Re: Latex error on graphics insert (LyX 1.3.7)

2006-01-26 Thread Marc D.


On 26 Jan 06, at 02:21, Georg Baum wrote:


Marc D. wrote:


I have tested the 3 images in a standalone file, and the images
display fine using the PDF (ps to pdf) option.  It looks like the 3rd
image, specified as eps rather than jpg, is converted to pdf before
the tex file is created.


What does specified as eps mean? If it means that this file is  
actually n

eps file, then this is the wanted behaviour for pdflatex export, since
pdflatex can't handle .eps images.


Not being able to view images in the other two options (PDF dvipdfm
and PDF pdflatex is apparently a known bug: see http://
bugzilla.lyx.org/show_bug.cgi? id=2127 and many thanks to Bennett
Helm for pointing that out to me.


I am not sure whether you see the same bug, see my other mail.


 From the a1.tex file in /tmp/...
=
\includegraphics[%
   bb=1bp 1bp 0bp 0bp,


Maybe this is the reason: You are specifying an impossible bounding  
box

here.


I wish it was that easy.  That just happened once (so, of course,
that was the one I copied. Sigh).  It does exactly the same thing
with a correct bounding box (which is to say... nothing at all).

\includegraphics[%
  bb=1bp 1bp 1034bp 273bp,
  scale=0.5]{/tmp/lyx_tmpdir1096WTsl0f/ 
lyx_tmpbuf0/0_Users_donovan_courses_current_320_assign_a1-3a.jpg}

...
\includegraphics[%
  bb=1bp 1bp 836bp 321bp,
  scale=0.5]{/tmp/lyx_tmpdir1096WTsl0f/ 
lyx_tmpbuf0/1_Users_donovan_courses_current_320_assign_a1-3b.jpg}

...
\includegraphics[%
  bb=1bp 1bp 994bp 367bp,
  scale=0.5]{/tmp/lyx_tmpdir1096WTsl0f/ 
lyx_tmpbuf0/2_Users_donovan_courses_current_320_assign_a1-3c.jpg}

\end{document}

==
I have reinstalled my LaTeX environment from the latest MacTeX image,
I've checked to make sure that all the paths are working, and that
everything is correctly installed.

I now get the following errors in the LaTeX log:

(partial log excerpt:)

[3] [4]
File: /tmp/lyx_tmpdir1273TYiZ5F/ 
lyx_tmpbuf0/0_Users_donovan_courses_320_assign_

a1-3a.jpg Graphic file (type eps)

/tmp/lyx_tmpdir1273TYiZ5F/ 
lyx_tmpbuf0/0_Users_donovan_courses_320_assign_a1-3a

.jpg
Overfull \hbox (11.83386pt too wide) in paragraph at lines 468--469
[][]
[]

[5
Non-PDF special ignored!]
File: /tmp/lyx_tmpdir1273TYiZ5F/ 
lyx_tmpbuf0/1_Users_donovan_courses_320_assign_

a1-3b.jpg Graphic file (type eps)

/tmp/lyx_tmpdir1273TYiZ5F/ 
lyx_tmpbuf0/1_Users_donovan_courses_320_assign_a1-3b

.jpg [6
Non-PDF special ignored!]
File: /tmp/lyx_tmpdir1273TYiZ5F/ 
lyx_tmpbuf0/2_Users_donovan_courses_320_assign_

a1-3c.jpg Graphic file (type eps)

/tmp/lyx_tmpdir1273TYiZ5F/ 
lyx_tmpbuf0/2_Users_donovan_courses_320_assign_a1-3c

.jpg AED: lastpage setting LastPage [7
Non-PDF special ignored!] (./a1.aux) )

==

Why would it say type eps when it's a jpeg file? Why would it
have hbox overfull on the pathname to the file (that's line 468 in the
tex file. I tried shortening the path - same error)
I have no idea, and I'm giving up for now.

I'd like to thank all those who tried to help.

I know this can work: I had it working all last year with NO problems.
Large images, multiple include files, everything worked. Now... I can't
even print a frigging 3 page assignment with 1 small image.

It's only since installing new versions of teTeX and LyX that I have
experienced these problems.  I'm going to try to find my notes from last
year on how to install teTeX and LyX and try going back to previous
versions to see if I can get things to work again. Later. After class
and after I get some sleep.

Again, thanks to those who have tried to help.

regards,
Marc



Re: Latex error on graphics insert (LyX 1.3.7)

2006-01-26 Thread Herbert Voss

Marc D. wrote:

I have a file that processes fine using PDF (ps to pdf)
option.

When I insert a graphic, it then gives me a single error:

LaTeX Error: Cannot determine size of graphic in /tmp/ 
lyx_tmpdir7937ASk7yo/ly

...van_courses_current_320_assign_a1-3b.jpg}


you can not use ps2pdf and a jpeg file! ps2pdf converts a
PostScript file:

ps/eps   : latex -dvips - ps2pdf
jpeg/png/pdf : pdflatex

you have to use pdflatex

Herbert



Re: Latex error on graphics insert (LyX 1.3.7)

2006-01-26 Thread Marc D.


On 25 Jan 06, at 14:39, Marc D. wrote:


I have a file that processes fine using PDF (ps to pdf)
option.

When I insert a graphic, it then gives me a single error:

LaTeX Error: Cannot determine size of graphic in /tmp/ 
lyx_tmpdir7937ASk7yo/ly

...van_courses_current_320_assign_a1-3b.jpg}


I'm at my wits end. Can someone please tell me at least WHAT is wrong,
in terms of why LyX isn't able to create LaTeX code that works in
this case?
What is LyX is doing (or not doing) that creates this LaTeX error?
What should either LyX or myself should be doing to correct the problem?
I have googled, read the archives, searched, scoured, and generally
beat my head on this for many hours now, and I'm no closer to a clue.

Please, can someone help?

Do I have the wrong version of teTeX? Did I load the wrong tools?
This type of thing used to work without any problems with 1.3.4, 1.3,5
and 1.3.6 prior to a system error I had last week. Now, it's not working
at all.

What are the people using MacOSX generally using as the teTeX install?
I followed the instructions for Texshop, and used the 2006 MacTex.dmg
to install the necessary teTeX files. Should I be using something else?
I vaguely recall doing something different the first time I installed
teTeX, but do you think I can find my old notes? Not a chance!

All I'm doing is inserting a graphic into a file. That is the only
change between the two files.

Here are the differences between a file that works and one
that doesn't:

=
assign $ diff a1.borked.lyx a1.works.lyx
2492,2502d2491
 \layout Standard


 \begin_inset Graphics
   filename a1-3a.jpg
   lyxscale 50
   scale 50

 \end_inset


3653,3663d3641
 \layout Standard


 \begin_inset Graphics
   filename a1-3b.jpg
   lyxscale 50
   scale 50

 \end_inset


5693,5703d5670
 \layout Standard


 \begin_inset Graphics
   filename a1-3c.jpg
   lyxscale 50
   scale 50

 \end_inset


==


And a full log from the most recent test on a1.borked.lyx

== cut  _EOF_ 
This is pdfeTeX, Version 3.141592-1.30.4-2.2 (Web2C 7.5.5)  
(format=pdflatex 2006.1.8)  26 JAN 2006 00:09

entering extended mode
**a1.tex
(./a1.tex
LaTeX2e 2003/12/01
Babel v3.8d and hyphenation patterns for american, french, german,  
ngerman, d

utch, italian, norsk, portuges, spanish, swedish, nohyphenation, loaded.

(/usr/local/teTeX/share/texmf.tetex/tex/latex/base/article.cls
Document Class: article 2004/02/16 v1.4f Standard LaTeX document class
(/usr/local/teTeX/share/texmf.tetex/tex/latex/base/size10.clo
File: size10.clo 2004/02/16 v1.4f Standard LaTeX file (size option)
)
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
\abovecaptionskip=\skip41
\belowcaptionskip=\skip42
\bibindent=\dimen102
) (/usr/local/teTeX/share/texmf.tetex/tex/latex/base/fontenc.sty
Package: fontenc 2004/02/22 v1.99f Standard LaTeX package
(/usr/local/teTeX/share/texmf.tetex/tex/latex/base/t1enc.def
File: t1enc.def 2004/02/22 v1.99f Standard LaTeX file
LaTeX Font Info:Redeclaring font encoding T1 on input line 43.
)) (/usr/local/teTeX/share/texmf.tetex/tex/latex/base/inputenc.sty
Package: inputenc 2004/02/05 v1.0d Input encoding file
(/usr/local/teTeX/share/texmf.tetex/tex/latex/base/latin1.def
File: latin1.def 2004/02/05 v1.0d Input encoding file
)) (/usr/local/teTeX/share/texmf.tetex/tex/latex/geometry/geometry.sty
Package: geometry 2002/07/08 v3.2 Page Geometry
(/usr/local/teTeX/share/texmf.tetex/tex/latex/graphics/keyval.sty
Package: keyval 1999/03/16 v1.13 key=value parser (DPC)
[EMAIL PROTECTED]@=\toks14
)
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]@tempcnt=\count89
[EMAIL PROTECTED]
[EMAIL PROTECTED]@mp=\dimen104
[EMAIL PROTECTED]@mp=\dimen105
[EMAIL PROTECTED]@mp=\dimen106
[EMAIL PROTECTED]
(/usr/local/teTeX/share/texmf.tetex/tex/latex/geometry/geometry.cfg))  
(/usr/loc

al/teTeX/share/texmf.tetex/tex/latex/amsmath/amsmath.sty
Package: amsmath 2000/07/18 v2.13 AMS math features
[EMAIL PROTECTED]
For additional information on amsmath, use the `?' option.
(/usr/local/teTeX/share/texmf.tetex/tex/latex/amsmath/amstext.sty
Package: amstext 2000/06/29 v2.01
(/usr/local/teTeX/share/texmf.tetex/tex/latex/amsmath/amsgen.sty
File: amsgen.sty 1999/11/30 v2.0
[EMAIL PROTECTED]
[EMAIL PROTECTED]
)) (/usr/local/teTeX/share/texmf.tetex/tex/latex/amsmath/amsbsy.sty
Package: amsbsy 1999/11/29 v1.2d
[EMAIL PROTECTED]
) (/usr/local/teTeX/share/texmf.tetex/tex/latex/amsmath/amsopn.sty
Package: amsopn 1999/12/14 v2.01 operator names
)
[EMAIL PROTECTED]
LaTeX Info: Redefining \frac on input line 211.
[EMAIL PROTECTED]
[EMAIL PROTECTED]
LaTeX Info: Redefining \overline on input line 307.
[EMAIL PROTECTED]
[EMAIL PROTECTED]
LaTeX Info: Redefining \ldots on input line 379.
LaTeX Info: Redefining \dots on input line 382.
LaTeX Info: Redefining \cdots on input line 467.
[EMAIL 

Re: Latex error on graphics insert (LyX 1.3.7)

2006-01-26 Thread Kevin Pfeiffer
Marc D. writes:
  LaTeX Error: Cannot determine size of graphic in /tmp/
  lyx_tmpdir7937ASk7yo/ly
  ...van_courses_current_320_assign_a1-3b.jpg}

 File: /tmp/lyx_tmpdir17654ldPLfc/ 
 lyx_tmpbuf0/0_Users_donovan_courses_current_32
 0_assign_a1-3a.jpg Graphic file (type eps)

From the Latex Companion: You did not specify an explicit image size on 
the \includegraphics command and LaTeX was unable to determine the 
image size. It usually does this automatically for EPS files by reading 
bounding box info. However... it may be unable to extract this 
information from binary bitmap images such as .jpeg files.

In my experience (1.3.5) LyX converts jpegs to an EPS automagically. And 
above it does say type eps...

You could, as a workaround, try doing this yourself (save the jpeg as an 
eps). I would also first try one of the LyX help docs (with images) to 
see if have the same problem.

-Kevin




-- 
Kevin Pfeiffer [EMAIL PROTECTED]
Tiros-Translations


Re: Latex error on graphics insert (LyX 1.3.7)

2006-01-26 Thread Georg Baum
Marc D. wrote:

 I'm at my wits end. Can someone please tell me at least WHAT is wrong,
 in terms of why LyX isn't able to create LaTeX code that works in
 this case?
 What is LyX is doing (or not doing) that creates this LaTeX error?

We don't know, but with your help we might find out. Maybe this is bug 2127
(but I doubt it, see below): http://bugzilla.lyx.org/show_bug.cgi?id=2127.

 What should either LyX or myself should be doing to correct the problem?

First we need to find out whether the error is on the LyX side or TeX side.
Export the file to LaTeX, and run it through pdflatex manually. Does that
work? If not, what are the error messages?

 == cut  _EOF_ 
 This is pdfeTeX, Version 3.141592-1.30.4-2.2 (Web2C 7.5.5)
 (format=pdflatex 2006.1.8)  26 JAN 2006 00:09

This is different to bug 2127: There LyX tries to run TeX in dvi mode, here
it does the right thing.

 ! LaTeX Error: Cannot determine size of graphic in /tmp/
 lyx_tmpdir17654ldPLfc/l
 yx_tmpbuf0/0_Users_donovan_courses_current_320_assign_a1-3a.jpg (no
 BoundingBox
 ).

This should not happen: pdflatex can use .jpg files natively. Did you check
whether the file in the temp dir does actually exist and is readable? Can
you run a simple .tex file that includes this very image through pdflatex?


Georg



Re: Latex error on graphics insert (LyX 1.3.7)

2006-01-26 Thread Marc D.


On 26 Jan 06, at 01:06, Georg Baum wrote:


Kevin Pfeiffer wrote:


In my experience (1.3.5) LyX converts jpegs to an EPS automagically.


Only for dvi output, but he runs pdflatex. LyX does not convert to  
eps in

this case.


And
above it does say type eps...


I overread this. That is very interesting. Marc. please post the  
complete
\includegraphics command of the .tex file that was created by LyX.  
Does it

create something like type=eps? If not, then either your image or your
pdflatex compiler is broken.




Thanks for getting back to me.

I have tested the 3 images in a standalone file, and the images  
display fine using the PDF (ps to pdf) option.  It looks like the 3rd  
image, specified as eps rather than jpg, is converted to pdf before  
the tex file is created.


The jpg images are all in tmpbuf.

Opening the a1.tex file found in /tmp/lyx...
using Texshop gives the same results: image does not load.

Viewing the a1.lyx file as LaTeX directly:
opens Texshop, same result (no images)

Viewing the testimg.lyx file (where all I have is 3 images):
opens Texshop, works fine.

Not being able to view images in the other two options (PDF dvipdfm  
and PDF pdflatex is apparently a known bug: see http:// 
bugzilla.lyx.org/show_bug.cgi? id=2127 and many thanks to Bennett  
Helm for pointing that out to me.



From the a1.tex file in /tmp/...
=
\includegraphics[%
  bb=1bp 1bp 0bp 0bp,
  scale=0.5]{/tmp/lyx_tmpdir182370kPLxI/ 
lyx_tmpbuf0/1_Users_donovan_courses_current_320_assign_a1-3a.jpg}

...
\includegraphics[%
  bb=1bp 1bp 836bp 321bp,
  scale=0.5]{/tmp/lyx_tmpdir182370kPLxI/ 
lyx_tmpbuf0/2_Users_donovan_courses_current_320_assign_a1-3b.jpg}

...
\includegraphics[%
  bb=1bp 1bp 994bp 367bp,
  scale=0.5]{/tmp/lyx_tmpdir182370kPLxI/ 
lyx_tmpbuf0/0_Users_donovan_courses_current_320_assign_a1-3c.pdf}

\end{document}
===

from the testimg.tex file in /tmp/lyx... (the file that works):

==
\includegraphics[%
  bb=1bp 1bp 1034bp 273bp,
  scale=0.5]{/tmp/lyx_tmpdir182370kPLxI/ 
lyx_tmpbuf1/1_Users_donovan_courses_current_320_assign_a1-3a.jpg}


\includegraphics[%
  bb=1bp 1bp 836bp 321bp,
  scale=0.5]{/tmp/lyx_tmpdir182370kPLxI/ 
lyx_tmpbuf1/2_Users_donovan_courses_current_320_assign_a1-3b.jpg}


\includegraphics[%
  bb=1bp 1bp 994bp 367bp,
  scale=0.5]{/tmp/lyx_tmpdir182370kPLxI/ 
lyx_tmpbuf1/0_Users_donovan_courses_current_320_assign_a1-3c.pdf}

\end{document}



Re: Latex error on graphics insert (LyX 1.3.7)

2006-01-26 Thread Georg Baum
Marc D. wrote:

 I have tested the 3 images in a standalone file, and the images
 display fine using the PDF (ps to pdf) option.  It looks like the 3rd
 image, specified as eps rather than jpg, is converted to pdf before
 the tex file is created.

What does specified as eps mean? If it means that this file is actually n
eps file, then this is the wanted behaviour for pdflatex export, since
pdflatex can't handle .eps images.

 Not being able to view images in the other two options (PDF dvipdfm
 and PDF pdflatex is apparently a known bug: see http://
 bugzilla.lyx.org/show_bug.cgi? id=2127 and many thanks to Bennett
 Helm for pointing that out to me.

I am not sure whether you see the same bug, see my other mail.

  From the a1.tex file in /tmp/...
 =
 \includegraphics[%
bb=1bp 1bp 0bp 0bp,

Maybe this is the reason: You are specifying an impossible bounding box
here.


Georg



Re: Latex error on graphics insert (LyX 1.3.7)

2006-01-26 Thread Stephen Harris


- Original Message - 
From: Marc D. [EMAIL PROTECTED]

To: lyx-users@lists.lyx.org
Sent: Thursday, January 26, 2006 1:39 AM
Subject: Re: Latex error on graphics insert (LyX 1.3.7)




On 26 Jan 06, at 01:06, Georg Baum wrote:


Kevin Pfeiffer wrote:


In my experience (1.3.5) LyX converts jpegs to an EPS automagically.


Only for dvi output, but he runs pdflatex. LyX does not convert to  
eps in

this case.


And
above it does say type eps...


I overread this. That is very interesting. Marc. please post the  
complete
\includegraphics command of the .tex file that was created by LyX.  
Does it

create something like type=eps? If not, then either your image or your
pdflatex compiler is broken.




Thanks for getting back to me.

I have tested the 3 images in a standalone file, and the images  
display fine using the PDF (ps to pdf) option.  It looks like the 3rd  
image, specified as eps rather than jpg, is converted to pdf before  
the tex file is created.


The jpg images are all in tmpbuf.



If the .eps image file is causing a problem, could you convert it
.jpg and reference the .jpg version rather than the .eps in LyX?
Maybe the eps conversion is faulty and if it is the file itself then
it might fail to convert to another image format, so narrow it down.

I did a search for TeXshop and error messages. 
Maybe this will be helpful, maybe not. Most of the users use 
systems other than Macs and/or Texshop so don't have answers
arising from their own experience. 


-
http://rutherglen.ics.mq.edu.au/~alpha-bugzilla/show_bug.cgi?id=1906

viewPDF with TeXShop fails if the path contains spaces,
giving an error

  Error Message: Couldn't build descriptor: OSErr -1740

This was reported by Andreas in the beginning of July(05). He also 
observed that the bug could be fixed by inserting some quotes

around referenced variables.  (This revealed some very strange
phenomena that have not yet been explained...)  


Lars and Jon pointed out that the real problem is a missing
[tclAE::build::TEXT] in the TeXShop viewPDF driver.
-

http://www.uoregon.edu/~koch/texshop/version.html [SH: unlikely]

The default TeXShop preference for the teTeX binary directory is 
/usr/local/teTeX/bin/powerpc-apple-darwin-current. But if users 
have installed Gerben Wierda's latest TeX redistribution, they 
also have Intel binaries. On Intel machines, the teTeX binary 
directory should then be 
/usr/local/teTeX/bin/i386-apple-darwin-current. TeXShop now has 
code to make this change automatically. When the program first 
starts, it calls uname -p to determine the current processor. 
If the result is i386, then TeXShop permanently changes the 
above preference to /usr/local/teTeX/bin/i386-apple-darwin-current. 
However this change is not made if the user has manually changed 
the default /usr/local/teTeX/bin/powerpc-apple-darwin-current to 
some other location. Thus if a user has the Fink teTeX distribution 
or some other distribution and has set the teTeX binary directory 
preference to point to it, the preference will not be changed.


---
http://darkwing.uoregon.edu/~koch/texshop/texshop.html
---
http://www.uoregon.edu/~koch/texshop/installing.html
-

When did you last update your system? But though that
sometimes fixes bugs, it can also introduce backward
compatibility issues. 


Good luck,
Stephen







  1   2   >