Re: LyX142 DVI

2006-07-19 Thread Jean-Pierre Chretien

>>Date: Tue, 18 Jul 2006 16:47:54 -0700
>>To: LyX User 
>>Subject: Re: LyX142 DVI
>>From: Steve Harris <[EMAIL PROTECTED]>
[...]
>>
>>The dvi.png looks much better than what I first saw.
>>But the cropping seems to be off when compared to
>>the graphic that LyX produces with pdflatex.
>>I attach a comparison picture, the pdf.png.

Here conversion to eps is provided by convertDefault.sh, that is IM convert.
In a shell
convert  fig_chapman.pdf  fig_chapman.eps
does not crop, in spite of the CropBox line within  fig_chapman.pdf :

/MediaBox [0 0 595 842]
/CropBox [5.24043 11.9664 161.905 188.911]

I suspect that convert uses MediaBox rather than CropBox,
while pdflatex uses CropBox.
If somebody on the list can confirm this...

Sun Solaris 5.8, ImageMagick 6.2.6 01/27/06 Q16

-- 
Jean-Pierre





Re: LyX142 DVI

2006-07-18 Thread Steve Harris

Paul A. Rubin wrote:

Steve Harris wrote:

Paul A. Rubin wrote:

Mukhtar Ullah wrote:

Paul wrote


No, that was Jean-Pierre.

I loaded your sample document here (LyX 1.4.2 on Windows XP), cropped 
the image enough to verify that it is cropped, and ran View->DVI.  It 
worked correctly.  I'm attaching the modified document (when I loaded 
it there was no cropping, so I made some changes) and a screen-shot 
of the resulting DVI.  Try View->DVI on the modified document.  If 
it's cropped, check the changes I made in the image dialog; if not, 
let us know, and we can try to track down whether your graphics 
conversions are set up incorrectly.


/Paul





The dvi.png looks much better than what I first saw.
But the cropping seems to be off when compared to
the graphic that LyX produces with pdflatex.
I attach a comparison picture, the pdf.png.



Was pdf.png generated from a different source document (different crop 
settings)?  Because when I run View->PDF (pdflatex) on the version of 
the document that I edited and uploaded, I get the same output that 
View->DVI produces.  (Note that I deliberately cropped out most of the 
image, to make it clear that cropping was working.)


/Paul




Mukhtar Ullah provided fig_chapman.pdf and dvi_problem.lyx
a couple of days ago. I put them into the same directory,
opened LyX and then the dvi_problem.lyx. The image file
did not display but there was a blank rectangle that was
labelled. I then ran pdflatex to get a seemingly nice image.

I didn't do anything to it. Then I viewed it with Postscript,
DVI and dvipdfm and saw nothing but pieces of the image and
I think they were spread out over more than one page.

When I saw your image, I suspected you hadn't seen the image
in its best pdf light. Because although your image was a big
improvement, your improvements are usually nearly perfect
and I didn't think you would be happy enough with the result.
So just in case I sent what I saw. I took an interest because
I don't know how to fix these, not because I'm good at it. I
don't even know how to make a pdf file that broken; all my
conversions go well because I have good computer karma. :-)

Regards,
Stephen








Re: LyX142 DVI

2006-07-18 Thread Paul A. Rubin

Steve Harris wrote:

Paul A. Rubin wrote:

Mukhtar Ullah wrote:

Paul wrote


No, that was Jean-Pierre.

I loaded your sample document here (LyX 1.4.2 on Windows XP), cropped 
the image enough to verify that it is cropped, and ran View->DVI.  It 
worked correctly.  I'm attaching the modified document (when I loaded 
it there was no cropping, so I made some changes) and a screen-shot of 
the resulting DVI.  Try View->DVI on the modified document.  If it's 
cropped, check the changes I made in the image dialog; if not, let us 
know, and we can try to track down whether your graphics conversions 
are set up incorrectly.


/Paul





The dvi.png looks much better than what I first saw.
But the cropping seems to be off when compared to
the graphic that LyX produces with pdflatex.
I attach a comparison picture, the pdf.png.



Was pdf.png generated from a different source document (different crop 
settings)?  Because when I run View->PDF (pdflatex) on the version of 
the document that I edited and uploaded, I get the same output that 
View->DVI produces.  (Note that I deliberately cropped out most of the 
image, to make it clear that cropping was working.)


/Paul



Re: LyX142 DVI

2006-07-18 Thread Steve Harris

Paul A. Rubin wrote:

Mukhtar Ullah wrote:

Paul wrote


No, that was Jean-Pierre.

I loaded your sample document here (LyX 1.4.2 on Windows XP), cropped 
the image enough to verify that it is cropped, and ran View->DVI.  It 
worked correctly.  I'm attaching the modified document (when I loaded it 
there was no cropping, so I made some changes) and a screen-shot of the 
resulting DVI.  Try View->DVI on the modified document.  If it's 
cropped, check the changes I made in the image dialog; if not, let us 
know, and we can try to track down whether your graphics conversions are 
set up incorrectly.


/Paul





The dvi.png looks much better than what I first saw.
But the cropping seems to be off when compared to
the graphic that LyX produces with pdflatex.
I attach a comparison picture, the pdf.png.




Re: LyX142 DVI

2006-07-18 Thread Paul A. Rubin

Mukhtar Ullah wrote:

Paul wrote


No, that was Jean-Pierre.

I loaded your sample document here (LyX 1.4.2 on Windows XP), cropped 
the image enough to verify that it is cropped, and ran View->DVI.  It 
worked correctly.  I'm attaching the modified document (when I loaded it 
there was no cropping, so I made some changes) and a screen-shot of the 
resulting DVI.  Try View->DVI on the modified document.  If it's 
cropped, check the changes I made in the image dialog; if not, let us 
know, and we can try to track down whether your graphics conversions are 
set up incorrectly.


/Paul


dvi_problem.lyx
Description: application/lyx



Re: LyX142 DVI

2006-07-18 Thread Mukhtar Ullah
> Paul wrote

> First, setting the width of the document to 80% of the page width shows
> that the converted pdf is not properly cropped (a small drawing at the bottom
> of the page).
> 
> pdf2ps fig_chapman.pdf; ps2eps fig_chapman.ps 
> creates a properly cropped eps file to be used with dvi.
> 
> If you're on Windows, pdf2ps is done by "Print to file" in acroread, ps2eps is
here:
> http://www.tm.uka.de/~bless/ps2eps
> 


Paul, thank you for your guidance. I wanted to use pdflatex. Now I have to use
eps always, which can be created directly by many programs.

Thank you all again

Mukhtar



Re: LyX142 DVI

2006-07-18 Thread Jean-Pierre Chretien

>>Old-Delivered-To: [EMAIL PROTECTED]
>>Date: Tue, 18 Jul 2006 11:57:05 +0200
>>From: Mukhtar Ullah <[EMAIL PROTECTED]>
>>To: lyx-users@lists.lyx.org, [EMAIL PROTECTED]
>>Subject: Re: LyX142 DVI
>>
>>Dear Stephen,
>>Thank you so much for your help. What I did not know was the email 
>>address  "lyx-users@lists.lyx.org". I only check the list and post thing 
>>there.
>>
>>Dear Paul,
>>I have attached the two files: a LyX example and a graphic file. When I 
>>use pdflatex, everything goes fine. The problem is when I use DVI.

First, setting the width of the document to 80% of the page width shows
that the converted pdf is not properly cropped (a small drawing at the bottom
of the page).

pdf2ps fig_chapman.pdf; ps2eps fig_chapman.ps 
creates a properly cropped eps file to be used with dvi.

If you're on Windows, pdf2ps is done by "Print to file" in acroread, ps2eps is 
here:
http://www.tm.uka.de/~bless/ps2eps


-- 
Jean-Pierre




Re: LyX142 DVI

2006-07-18 Thread Mukhtar Ullah

Dear Stephen,
Thank you so much for your help. What I did not know was the email 
address  "lyx-users@lists.lyx.org". I only check the list and post thing 
there.


Dear Paul,
I have attached the two files: a LyX example and a graphic file. When I 
use pdflatex, everything goes fine. The problem is when I use DVI.


Thanks

Mukhtar


fig_chapman.pdf
Description: Adobe PDF document


dvi_problem.lyx
Description: application/lyx


Re: LyX142 DVI

2006-07-18 Thread Steve Harris

Mukhtar Ullah wrote:

Dear Paul,

Thank you for your response. I can post a minimal example,
but I don't know how
to attach a (graphic) file to this post? Can anyone give me a hint!

Mukhtar





Use you email client to attach your minimal example file.
Then use your email client to attach the graphic file,
the one named in your minimal example file. The list
will receive two attachements, the file and its graphic.
Not sure this works on Usenet, so send to the mailing list.

Help -> Attachments (keyword search under email help)
Stephen

--

Stephen
"Once you eliminate the impossible, whatever remains, no matter
how improbable, must be the truth." SH: Sherlock Holmes (Doyle)


Re: LyX142 DVI

2006-07-18 Thread Mukhtar Ullah
Dear Paul,

Thank you for your response. I can post a minimal example,
but I don't know how
to attach a (graphic) file to this post? Can anyone give me a hint!

Mukhtar




Re: LyX142 DVI

2006-07-17 Thread Paul A. Rubin

Mukhtar Ullah wrote:

Hi everyone,
I have installed LyX142 and have a strange problem. When I include a graphics
into my document, the DVI output shows the whole page of the graphics (pdf file)
while it should clip to the bounding box. This was working correctly in Lyx141.
Now with  LyX142, I have to run pdflatex in order to see the correct graphics,
clipped to the bouning box. This is frustrating.

Looking forward to hear something

Mukhtar




Clipping works for me in 1.4.2 (Windows XP).  Can you post a minimal 
example document (plus the graphic file)?


/Paul



LyX142 DVI

2006-07-17 Thread Mukhtar Ullah
Hi everyone,
I have installed LyX142 and have a strange problem. When I include a graphics
into my document, the DVI output shows the whole page of the graphics (pdf file)
while it should clip to the bounding box. This was working correctly in Lyx141.
Now with  LyX142, I have to run pdflatex in order to see the correct graphics,
clipped to the bouning box. This is frustrating.

Looking forward to hear something

Mukhtar