Re: Problems including bitmap figures pdflatex (solved)

2002-04-15 Thread Jan Warnking


This is a reply to my own mail, and a little more on topic this time.
Below you'll find a description of how I finally got the exact figure I
needed. I'm sure there are better ways. But this was the first that worked
for me.

What I wanted to do:
Integrate a figure created with XFig and containing LaTeX math code AND
bitmap images into a PDF document using pdftex. So export as bitmap is not
an option.

How I did it:
- Get compile and install a new version of pdftex
  
(ftp://www.ctan.org/tex-archive/systems/pdftex/snapshots/20010417/pdftex-20010417.tgz)
- Recreate pdftex format files with:
   fmtutil --byfmt pdftex
   fmtutil --byfmt pdflatex
  (I don't know what this does exactly, but pdftex won't work without)
- Scale the figure in XFig to the size it should be in the final output
- Export the figure from xfig to combined ps and latex. This gives two
  files: foo.pstex and foo.pstex_t
- convert the postscript part to PDF:
  epstopdf foo.pstex
- Copy foo.pstex_t to foo.pdf_t and edit foo.pdf_t to delete extension
  .pstex of the referenced file and to contain the path where foo.pdf
  can be relative to the main lyx file.
- Include the foo.pdf_t in a figure float in Lyx:
  Insert  Include File, select foo.pdf_t, check use input
- Center the figure:
  Select the Input:foo.pdf_t-box, Layout  Paragraph  center
- Compile using pdflatex
- To get a DVI or PS, include foo.pstex_t instead.

And no, tex2pdf didn't work for me (problably not set up right here, but I
don't have time to look into that now). Also, tex2pdf generates
sytematically PDF files from my EPS's, even though some of them are
bitmaps and I have the JPEG's in place (and pdflatex finds them).
Sometimes the PDF's are smaller than the JPEG's (which quite surprised
me), but most of the times they are bigger. Using the PDF's instead of
JPEG's increased the total size of my file quite a bit.

Jan

The old message for reference:
 Ok, this thread is a bit old and I'm being off-topic, but I do have a
 question to add. I just ran into the same problem as Víctor did, and would
 like to avoid using bitmap files. In my case, I have a mix of
 vector/bitmap graphic put together with xfig, and bitmapping the vector
 stuff doesn't look nice (plus file size explodes).
 
 Dekel Tsur wrote:
  Also, the problem you had with the bitmap image when you converted them
  to PDF was due to your broken version of pdftex (probably 0.13d).
  Of course, even without bugs, the correct way to is not to convert to
  PDF, but to convert to png/jpeg.
 
 I checked and sure enough that's the version of pdftex I have installed.
 So I tried to install a newer version but got stuck. Both the precompiled
 Solaris version and the one I compiled from the sources give the
 following error:
 
   This is pdfTeX, Version 3.14159-14h-released-20010417 (Web2C 7.3.3.1)
   (Fatal format file error; I'm stymied)
 
 When I run it as pdfinitex I get:
   This is pdfTeX, Version 3.14159-14h-released-20010417 (Web2C 7.3.3.1) (INITEX)
   (./pdfproblem.tex
   ! Undefined control sequence.
   l.3 \documentclass
 [french]{article}
 
 I think I did everything the way I should. Installed by replacing pdftex
 and pdftex.pool by the new ones... I'm on Solaris 2.7, using gcc 2.95.3
 and gnu make etc.
 
 What format file is it complaining about? Any clues what I'm missing?
 
 Jan
 
 




Re: Problems including bitmap figures pdflatex (solved)

2002-04-15 Thread Jan Warnking


This is a reply to my own mail, and a little more on topic this time.
Below you'll find a description of how I finally got the exact figure I
needed. I'm sure there are better ways. But this was the first that worked
for me.

What I wanted to do:
Integrate a figure created with XFig and containing LaTeX math code AND
bitmap images into a PDF document using pdftex. So export as bitmap is not
an option.

How I did it:
- Get compile and install a new version of pdftex
  
(ftp://www.ctan.org/tex-archive/systems/pdftex/snapshots/20010417/pdftex-20010417.tgz)
- Recreate pdftex format files with:
   fmtutil --byfmt pdftex
   fmtutil --byfmt pdflatex
  (I don't know what this does exactly, but pdftex won't work without)
- Scale the figure in XFig to the size it should be in the final output
- Export the figure from xfig to combined ps and latex. This gives two
  files: foo.pstex and foo.pstex_t
- convert the postscript part to PDF:
  epstopdf foo.pstex
- Copy foo.pstex_t to foo.pdf_t and edit foo.pdf_t to delete extension
  .pstex of the referenced file and to contain the path where foo.pdf
  can be relative to the main lyx file.
- Include the foo.pdf_t in a figure float in Lyx:
  Insert  Include File, select foo.pdf_t, check use input
- Center the figure:
  Select the Input:foo.pdf_t-box, Layout  Paragraph  center
- Compile using pdflatex
- To get a DVI or PS, include foo.pstex_t instead.

And no, tex2pdf didn't work for me (problably not set up right here, but I
don't have time to look into that now). Also, tex2pdf generates
sytematically PDF files from my EPS's, even though some of them are
bitmaps and I have the JPEG's in place (and pdflatex finds them).
Sometimes the PDF's are smaller than the JPEG's (which quite surprised
me), but most of the times they are bigger. Using the PDF's instead of
JPEG's increased the total size of my file quite a bit.

Jan

The old message for reference:
 Ok, this thread is a bit old and I'm being off-topic, but I do have a
 question to add. I just ran into the same problem as Víctor did, and would
 like to avoid using bitmap files. In my case, I have a mix of
 vector/bitmap graphic put together with xfig, and bitmapping the vector
 stuff doesn't look nice (plus file size explodes).
 
 Dekel Tsur wrote:
  Also, the problem you had with the bitmap image when you converted them
  to PDF was due to your broken version of pdftex (probably 0.13d).
  Of course, even without bugs, the correct way to is not to convert to
  PDF, but to convert to png/jpeg.
 
 I checked and sure enough that's the version of pdftex I have installed.
 So I tried to install a newer version but got stuck. Both the precompiled
 Solaris version and the one I compiled from the sources give the
 following error:
 
   This is pdfTeX, Version 3.14159-14h-released-20010417 (Web2C 7.3.3.1)
   (Fatal format file error; I'm stymied)
 
 When I run it as pdfinitex I get:
   This is pdfTeX, Version 3.14159-14h-released-20010417 (Web2C 7.3.3.1) (INITEX)
   (./pdfproblem.tex
   ! Undefined control sequence.
   l.3 \documentclass
 [french]{article}
 
 I think I did everything the way I should. Installed by replacing pdftex
 and pdftex.pool by the new ones... I'm on Solaris 2.7, using gcc 2.95.3
 and gnu make etc.
 
 What format file is it complaining about? Any clues what I'm missing?
 
 Jan
 
 




Re: Problems including bitmap figures & pdflatex (solved)

2002-04-15 Thread Jan Warnking


This is a reply to my own mail, and a little more on topic this time.
Below you'll find a description of how I finally got the exact figure I
needed. I'm sure there are better ways. But this was the first that worked
for me.

What I wanted to do:
Integrate a figure created with XFig and containing LaTeX math code AND
bitmap images into a PDF document using pdftex. So export as bitmap is not
an option.

How I did it:
- Get compile and install a new version of pdftex
  
(ftp://www.ctan.org/tex-archive/systems/pdftex/snapshots/20010417/pdftex-20010417.tgz)
- Recreate pdftex format files with:
   fmtutil --byfmt pdftex
   fmtutil --byfmt pdflatex
  (I don't know what this does exactly, but pdftex won't work without)
- Scale the figure in XFig to the size it should be in the final output
- Export the figure from xfig to combined ps and latex. This gives two
  files: foo.pstex and foo.pstex_t
- convert the postscript part to PDF:
  epstopdf foo.pstex
- Copy foo.pstex_t to foo.pdf_t and edit foo.pdf_t to delete extension
  ".pstex" of the referenced file and to contain the path where foo.pdf
  can be relative to the main lyx file.
- Include the foo.pdf_t in a figure float in Lyx:
  Insert > Include File, select foo.pdf_t, check "use input"
- Center the figure:
  Select the "Input:foo.pdf_t"-box, Layout > Paragraph > center
- Compile using pdflatex
- To get a DVI or PS, include foo.pstex_t instead.

And no, tex2pdf didn't work for me (problably not set up right here, but I
don't have time to look into that now). Also, tex2pdf generates
sytematically PDF files from my EPS's, even though some of them are
bitmaps and I have the JPEG's in place (and pdflatex finds them).
Sometimes the PDF's are smaller than the JPEG's (which quite surprised
me), but most of the times they are bigger. Using the PDF's instead of
JPEG's increased the total size of my file quite a bit.

Jan

The old message for reference:
> Ok, this thread is a bit old and I'm being off-topic, but I do have a
> question to add. I just ran into the same problem as Víctor did, and would
> like to avoid using bitmap files. In my case, I have a mix of
> vector/bitmap graphic put together with xfig, and bitmapping the vector
> stuff doesn't look nice (plus file size explodes).
> 
> Dekel Tsur wrote:
> > Also, the problem you had with the bitmap image when you converted them
> > to PDF was due to your broken version of pdftex (probably 0.13d).
> > Of course, even without bugs, the correct way to is not to convert to
> > PDF, but to convert to png/jpeg.
> 
> I checked and sure enough that's the version of pdftex I have installed.
> So I tried to install a newer version but got stuck. Both the precompiled
> Solaris version and the one I compiled from the sources give the
> following error:
> 
>   This is pdfTeX, Version 3.14159-14h-released-20010417 (Web2C 7.3.3.1)
>   (Fatal format file error; I'm stymied)
> 
> When I run it as "pdfinitex" I get:
>   This is pdfTeX, Version 3.14159-14h-released-20010417 (Web2C 7.3.3.1) (INITEX)
>   (./pdfproblem.tex
>   ! Undefined control sequence.
>   l.3 \documentclass
> [french]{article}
> 
> I think I did everything the way I should. Installed by replacing pdftex
> and pdftex.pool by the new ones... I'm on Solaris 2.7, using gcc 2.95.3
> and gnu make etc.
> 
> What format file is it complaining about? Any clues what I'm missing?
> 
> Jan
> 
> 




OT Re: Problems including bitmap figures pdflatex

2002-04-13 Thread Jan Warnking


Ok, this thread is a bit old and I'm being off-topic, but I do have a
question to add. I just ran into the same problem as Víctor did, and would
like to avoid using bitmap files. In my case, I have a mix of
vector/bitmap graphic put together with xfig, and bitmapping the vector
stuff doesn't look nice (plus file size explodes).

Dekel Tsur wrote:
 Also, the problem you had with the bitmap image when you converted them
 to PDF was due to your broken version of pdftex (probably 0.13d).
 Of course, even without bugs, the correct way to is not to convert to
 PDF, but to convert to png/jpeg.

I checked and sure enough that's the version of pdftex I have installed.
So I tried to install a newer version but got stuck. Both the precompiled
Solaris version and the one I compiled from the sources give the
following error:

  This is pdfTeX, Version 3.14159-14h-released-20010417 (Web2C 7.3.3.1)
  (Fatal format file error; I'm stymied)

When I run it as pdfinitex I get:
  This is pdfTeX, Version 3.14159-14h-released-20010417 (Web2C 7.3.3.1) (INITEX)
  (./pdfproblem.tex
  ! Undefined control sequence.
  l.3 \documentclass
[french]{article}

I think I did everything the way I should. Installed by replacing pdftex
and pdftex.pool by the new ones... I'm on Solaris 2.7, using gcc 2.95.3
and gnu make etc.

What format file is it complaining about? Any clues what I'm missing?

Jan




OT Re: Problems including bitmap figures pdflatex

2002-04-13 Thread Jan Warnking


Ok, this thread is a bit old and I'm being off-topic, but I do have a
question to add. I just ran into the same problem as Víctor did, and would
like to avoid using bitmap files. In my case, I have a mix of
vector/bitmap graphic put together with xfig, and bitmapping the vector
stuff doesn't look nice (plus file size explodes).

Dekel Tsur wrote:
 Also, the problem you had with the bitmap image when you converted them
 to PDF was due to your broken version of pdftex (probably 0.13d).
 Of course, even without bugs, the correct way to is not to convert to
 PDF, but to convert to png/jpeg.

I checked and sure enough that's the version of pdftex I have installed.
So I tried to install a newer version but got stuck. Both the precompiled
Solaris version and the one I compiled from the sources give the
following error:

  This is pdfTeX, Version 3.14159-14h-released-20010417 (Web2C 7.3.3.1)
  (Fatal format file error; I'm stymied)

When I run it as pdfinitex I get:
  This is pdfTeX, Version 3.14159-14h-released-20010417 (Web2C 7.3.3.1) (INITEX)
  (./pdfproblem.tex
  ! Undefined control sequence.
  l.3 \documentclass
[french]{article}

I think I did everything the way I should. Installed by replacing pdftex
and pdftex.pool by the new ones... I'm on Solaris 2.7, using gcc 2.95.3
and gnu make etc.

What format file is it complaining about? Any clues what I'm missing?

Jan




OT Re: Problems including bitmap figures & pdflatex

2002-04-13 Thread Jan Warnking


Ok, this thread is a bit old and I'm being off-topic, but I do have a
question to add. I just ran into the same problem as Víctor did, and would
like to avoid using bitmap files. In my case, I have a mix of
vector/bitmap graphic put together with xfig, and bitmapping the vector
stuff doesn't look nice (plus file size explodes).

Dekel Tsur wrote:
> Also, the problem you had with the bitmap image when you converted them
> to PDF was due to your broken version of pdftex (probably 0.13d).
> Of course, even without bugs, the correct way to is not to convert to
> PDF, but to convert to png/jpeg.

I checked and sure enough that's the version of pdftex I have installed.
So I tried to install a newer version but got stuck. Both the precompiled
Solaris version and the one I compiled from the sources give the
following error:

  This is pdfTeX, Version 3.14159-14h-released-20010417 (Web2C 7.3.3.1)
  (Fatal format file error; I'm stymied)

When I run it as "pdfinitex" I get:
  This is pdfTeX, Version 3.14159-14h-released-20010417 (Web2C 7.3.3.1) (INITEX)
  (./pdfproblem.tex
  ! Undefined control sequence.
  l.3 \documentclass
[french]{article}

I think I did everything the way I should. Installed by replacing pdftex
and pdftex.pool by the new ones... I'm on Solaris 2.7, using gcc 2.95.3
and gnu make etc.

What format file is it complaining about? Any clues what I'm missing?

Jan




Re: Problems including bitmap figures pdflatex

2002-03-18 Thread Dekel Tsur

On Mon, Mar 18, 2002 at 08:37:29AM +0100, Víctor Martínez Moll wrote:
 Thank you Wayan!
 
 I tried png files and everything is OK now. It works even for the table 
 issue!
 Reffering to the use of pdflatex, I prefer to use it because  I have 
 problems with some fonts (especially in matematical mode) with ps2pdf.

Read section 3.3.6 on Extended.lyx in order to learn how to have good fonts
when using ps2pdf.

Also, the problem you had with the bitmap image when you converted them to
PDF was due to your broken version of pdftex (probably 0.13d).
Of course, even without bugs, the correct way to is not to convert to PDF,
but to convert to png/jpeg.



Re: Problems including bitmap figures pdflatex

2002-03-18 Thread Dekel Tsur

On Mon, Mar 18, 2002 at 08:37:29AM +0100, Víctor Martínez Moll wrote:
 Thank you Wayan!
 
 I tried png files and everything is OK now. It works even for the table 
 issue!
 Reffering to the use of pdflatex, I prefer to use it because  I have 
 problems with some fonts (especially in matematical mode) with ps2pdf.

Read section 3.3.6 on Extended.lyx in order to learn how to have good fonts
when using ps2pdf.

Also, the problem you had with the bitmap image when you converted them to
PDF was due to your broken version of pdftex (probably 0.13d).
Of course, even without bugs, the correct way to is not to convert to PDF,
but to convert to png/jpeg.



Re: Problems including bitmap figures & pdflatex

2002-03-18 Thread Dekel Tsur

On Mon, Mar 18, 2002 at 08:37:29AM +0100, Víctor Martínez Moll wrote:
> Thank you Wayan!
> 
> I tried png files and everything is OK now. It works even for the table 
> issue!
> Reffering to the use of pdflatex, I prefer to use it because  I have 
> problems with some fonts (especially in matematical mode) with ps2pdf.

Read section 3.3.6 on Extended.lyx in order to learn how to have "good fonts"
when using ps2pdf.

Also, the problem you had with the bitmap image when you converted them to
PDF was due to your broken version of pdftex (probably 0.13d).
Of course, even without bugs, the correct way to is not to convert to PDF,
but to convert to png/jpeg.



Re: Problems including bitmap figures pdflatex

2002-03-17 Thread Víctor Martínez Moll

Thank you Wayan!

I tried png files and everything is OK now. It works even for the table 
issue!
Reffering to the use of pdflatex, I prefer to use it because  I have 
problems with some fonts (especially in matematical mode) with ps2pdf.

Best wishes!

Víctor

Wayan wrote:

On Fri, 15 Mar 2002, [ISO-8859-1] Víctor Martínez Moll wrote:

Therefore, I export every figure to pdf and then compile using PDFLATEX.
Almost everything is fine except two points:

a) I can not include bitmap pictures. Here is the procedure I follow:
 * I convert the pictures to EPS with The Gimp.  -- Nice
output. I've viewed the result with GV.


An EPS figures are very well with gv, but can be compiled only with
latex through ps2pdf or dvipdfm if you want to have a pdf files (not
pdflatex).

 * I convert the picture to PDF with epstopdf.   -- Again the
result is fine (I've opened it with acroread)


yes, do you open just a figure (not with pdf resulted from pdflatex?)

 * I Include the PDF file into a figure float in Lyx -- I get a
completely distorted and color-inverted image when I open it with
acroread or even worse: acroread is simply not able to display it 


In my experience the raster images in pdf format are very bad if it was
compiled with pdflatex. You can use jpeg or png format for this raster
image if you stick to use pdflatex. My experience summary are (for
pdflatex):

vector images -- pdf (from epstopdf)
raster images -- jpeg or png (you can make with gimp or imageMagick)
   do not convert this raster to pdf...

b) I wanted to include a table from a pdf document, and again, if I
create a file out of the table and I include the file into a figure


I have no experience to include a pdf document... maybe you can use
pdfpages package for this purposes. Sorry.

Wayan


-- 
Víctor Martínez Moll   | Universitat de les Illes Balears
Departament de Física  | Edifici Mateu Orfila
Área d'Enginyeria Mecànica | E-07071, Palma de Mallorca, SPAIN
e-mail: [EMAIL PROTECTED] | Fax: 34 - 971173426






Re: Problems including bitmap figures pdflatex

2002-03-17 Thread Víctor Martínez Moll

Thank you Wayan!

I tried png files and everything is OK now. It works even for the table 
issue!
Reffering to the use of pdflatex, I prefer to use it because  I have 
problems with some fonts (especially in matematical mode) with ps2pdf.

Best wishes!

Víctor

Wayan wrote:

On Fri, 15 Mar 2002, [ISO-8859-1] Víctor Martínez Moll wrote:

Therefore, I export every figure to pdf and then compile using PDFLATEX.
Almost everything is fine except two points:

a) I can not include bitmap pictures. Here is the procedure I follow:
 * I convert the pictures to EPS with The Gimp.  -- Nice
output. I've viewed the result with GV.


An EPS figures are very well with gv, but can be compiled only with
latex through ps2pdf or dvipdfm if you want to have a pdf files (not
pdflatex).

 * I convert the picture to PDF with epstopdf.   -- Again the
result is fine (I've opened it with acroread)


yes, do you open just a figure (not with pdf resulted from pdflatex?)

 * I Include the PDF file into a figure float in Lyx -- I get a
completely distorted and color-inverted image when I open it with
acroread or even worse: acroread is simply not able to display it 


In my experience the raster images in pdf format are very bad if it was
compiled with pdflatex. You can use jpeg or png format for this raster
image if you stick to use pdflatex. My experience summary are (for
pdflatex):

vector images -- pdf (from epstopdf)
raster images -- jpeg or png (you can make with gimp or imageMagick)
   do not convert this raster to pdf...

b) I wanted to include a table from a pdf document, and again, if I
create a file out of the table and I include the file into a figure


I have no experience to include a pdf document... maybe you can use
pdfpages package for this purposes. Sorry.

Wayan


-- 
Víctor Martínez Moll   | Universitat de les Illes Balears
Departament de Física  | Edifici Mateu Orfila
Área d'Enginyeria Mecànica | E-07071, Palma de Mallorca, SPAIN
e-mail: [EMAIL PROTECTED] | Fax: 34 - 971173426






Re: Problems including bitmap figures & pdflatex

2002-03-17 Thread Víctor Martínez Moll

Thank you Wayan!

I tried png files and everything is OK now. It works even for the table 
issue!
Reffering to the use of pdflatex, I prefer to use it because  I have 
problems with some fonts (especially in matematical mode) with ps2pdf.

Best wishes!

Víctor

Wayan wrote:

>On Fri, 15 Mar 2002, [ISO-8859-1] Víctor Martínez Moll wrote:
>
>>Therefore, I export every figure to pdf and then compile using PDFLATEX.
>>Almost everything is fine except two points:
>>
>>a) I can not include bitmap pictures. Here is the procedure I follow:
>> * I convert the pictures to EPS with The Gimp.  --> Nice
>>output. I've viewed the result with GV.
>>
>
>An EPS figures are very well with gv, but can be compiled only with
>latex through ps2pdf or dvipdfm if you want to have a pdf files (not
>pdflatex).
>
>> * I convert the picture to PDF with epstopdf.   --> Again the
>>result is fine (I've opened it with acroread)
>>
>
>yes, do you open just a figure (not with pdf resulted from pdflatex?)
>
>> * I Include the PDF file into a figure float in Lyx --> I get a
>>completely distorted and color-inverted image when I open it with
>>acroread or even worse: acroread is simply not able to display it 
>>
>
>In my experience the raster images in pdf format are very bad if it was
>compiled with pdflatex. You can use jpeg or png format for this raster
>image if you stick to use pdflatex. My experience summary are (for
>pdflatex):
>
>vector images --> pdf (from epstopdf)
>raster images --> jpeg or png (you can make with gimp or imageMagick)
>   do not convert this raster to pdf...
>
>>b) I wanted to include a table from a pdf document, and again, if I
>>create a file out of the table and I include the file into a figure
>>
>
>I have no experience to include a pdf document... maybe you can use
>pdfpages package for this purposes. Sorry.
>
>Wayan
>

-- 
Víctor Martínez Moll   | Universitat de les Illes Balears
Departament de Física  | Edifici Mateu Orfila
Área d'Enginyeria Mecànica | E-07071, Palma de Mallorca, SPAIN
e-mail: [EMAIL PROTECTED] | Fax: 34 - 971173426






Re: Problems including bitmap figures pdflatex

2002-03-16 Thread Wayan


On Fri, 15 Mar 2002, [ISO-8859-1] Víctor Martínez Moll wrote:

 Therefore, I export every figure to pdf and then compile using PDFLATEX.
 Almost everything is fine except two points:

 a) I can not include bitmap pictures. Here is the procedure I follow:
  * I convert the pictures to EPS with The Gimp.  -- Nice
 output. I've viewed the result with GV.

An EPS figures are very well with gv, but can be compiled only with
latex through ps2pdf or dvipdfm if you want to have a pdf files (not
pdflatex).

  * I convert the picture to PDF with epstopdf.   -- Again the
 result is fine (I've opened it with acroread)

yes, do you open just a figure (not with pdf resulted from pdflatex?)

  * I Include the PDF file into a figure float in Lyx -- I get a
 completely distorted and color-inverted image when I open it with
 acroread or even worse: acroread is simply not able to display it 

In my experience the raster images in pdf format are very bad if it was
compiled with pdflatex. You can use jpeg or png format for this raster
image if you stick to use pdflatex. My experience summary are (for
pdflatex):

vector images -- pdf (from epstopdf)
raster images -- jpeg or png (you can make with gimp or imageMagick)
   do not convert this raster to pdf...

 b) I wanted to include a table from a pdf document, and again, if I
 create a file out of the table and I include the file into a figure

I have no experience to include a pdf document... maybe you can use
pdfpages package for this purposes. Sorry.

Wayan




Re: Problems including bitmap figures pdflatex

2002-03-16 Thread Wayan


On Fri, 15 Mar 2002, [ISO-8859-1] Víctor Martínez Moll wrote:

 Therefore, I export every figure to pdf and then compile using PDFLATEX.
 Almost everything is fine except two points:

 a) I can not include bitmap pictures. Here is the procedure I follow:
  * I convert the pictures to EPS with The Gimp.  -- Nice
 output. I've viewed the result with GV.

An EPS figures are very well with gv, but can be compiled only with
latex through ps2pdf or dvipdfm if you want to have a pdf files (not
pdflatex).

  * I convert the picture to PDF with epstopdf.   -- Again the
 result is fine (I've opened it with acroread)

yes, do you open just a figure (not with pdf resulted from pdflatex?)

  * I Include the PDF file into a figure float in Lyx -- I get a
 completely distorted and color-inverted image when I open it with
 acroread or even worse: acroread is simply not able to display it 

In my experience the raster images in pdf format are very bad if it was
compiled with pdflatex. You can use jpeg or png format for this raster
image if you stick to use pdflatex. My experience summary are (for
pdflatex):

vector images -- pdf (from epstopdf)
raster images -- jpeg or png (you can make with gimp or imageMagick)
   do not convert this raster to pdf...

 b) I wanted to include a table from a pdf document, and again, if I
 create a file out of the table and I include the file into a figure

I have no experience to include a pdf document... maybe you can use
pdfpages package for this purposes. Sorry.

Wayan




Re: Problems including bitmap figures & pdflatex

2002-03-16 Thread Wayan


On Fri, 15 Mar 2002, [ISO-8859-1] Víctor Martínez Moll wrote:

> Therefore, I export every figure to pdf and then compile using PDFLATEX.
> Almost everything is fine except two points:
>
> a) I can not include bitmap pictures. Here is the procedure I follow:
>  * I convert the pictures to EPS with The Gimp.  --> Nice
> output. I've viewed the result with GV.

An EPS figures are very well with gv, but can be compiled only with
latex through ps2pdf or dvipdfm if you want to have a pdf files (not
pdflatex).

>  * I convert the picture to PDF with epstopdf.   --> Again the
> result is fine (I've opened it with acroread)

yes, do you open just a figure (not with pdf resulted from pdflatex?)

>  * I Include the PDF file into a figure float in Lyx --> I get a
> completely distorted and color-inverted image when I open it with
> acroread or even worse: acroread is simply not able to display it 

In my experience the raster images in pdf format are very bad if it was
compiled with pdflatex. You can use jpeg or png format for this raster
image if you stick to use pdflatex. My experience summary are (for
pdflatex):

vector images --> pdf (from epstopdf)
raster images --> jpeg or png (you can make with gimp or imageMagick)
   do not convert this raster to pdf...

> b) I wanted to include a table from a pdf document, and again, if I
> create a file out of the table and I include the file into a figure

I have no experience to include a pdf document... maybe you can use
pdfpages package for this purposes. Sorry.

Wayan