LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-19-2009, 09:31 AM   #1
saray
LQ Newbie
 
Registered: May 2009
Posts: 17

Rep: Reputation: 0
transferring .eps file


Hi,

I have produced a .eps file in gnuplot. I want to insert this file to "Microsoft Word" for the paper I am preparing but I have two problems with it:

1. The quality reduces drastically
2. The symbols I have in my graph changes. Like, I have Angstrom in its symbolic type in .eps file in linux but when I insert it in word it changes to J?!?!?!?!?!

Please let me know how to solve this problem
 
Old 05-20-2009, 01:53 AM   #2
pcardout
Member
 
Registered: Jun 2003
Location: Socorro, New Mexico
Distribution: Debian ("jessie", "squeeze"), Linux Mint (Serena), XUbuntu
Posts: 221

Rep: Reputation: 24
Use LaTeX

Hi -- I'm a physics prof. and I do a lot of scientific writing.
I don't use Word -- because it's just not very good for scientific writing. I use LaTeX. I know that is a snooty response, so let me answer
your question in a more practical way.

I have observed myself that Linux really likes the .eps format
and Windows in general does a bad job with it in all areas
(not just Word). I don't know
why, but if I have to work in Windows I always make a .jpeg instead.
Using GIMP (or any of several other tools) you can convert
your .eps into a .jpeg and THEN embed it in your paper.

It will probably fix both your problems.
 
Old 05-20-2009, 02:26 AM   #3
saray
LQ Newbie
 
Registered: May 2009
Posts: 17

Original Poster
Rep: Reputation: 0
It is an honor to receive your reply. I have to say that my major is physics too.

I am really interested to submit the paper in LATEX, but the thing is that the little time I have for the submission of my paper, leaves me no time to learn LATEX (

I have tried to convert the files, still their quality goes to the worse shape !!!!
 
Old 05-20-2009, 02:42 AM   #4
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
What about trying to produce PDFs from Gnuplot?
 
Old 05-20-2009, 02:43 AM   #5
pcardout
Member
 
Registered: Jun 2003
Location: Socorro, New Mexico
Distribution: Debian ("jessie", "squeeze"), Linux Mint (Serena), XUbuntu
Posts: 221

Rep: Reputation: 24
I am sorry to hear this about the file quality, but I think the .jpeg should embed the proper symbols
(Angstroms, for example) does it?

It often matters whether you do cut and paste or
"insert picture". Usually "insert picture" gives higher quality. Also, if you cut and paste, there is
paste and "paste special". If you do not know about this, you should try the several options. One of them
is likely to be significantly better than the others.

ALSO -- the quality that appears on the screen and the print quality are not identical. Do you know this?
I always zoomed the screen way in to see what the actual figure would look like.

Good luck -- those are all the ideas I have. Good choice of major!!! Come study with us in New Mexico for
grad. school!
 
Old 05-20-2009, 02:46 AM   #6
pcardout
Member
 
Registered: Jun 2003
Location: Socorro, New Mexico
Distribution: Debian ("jessie", "squeeze"), Linux Mint (Serena), XUbuntu
Posts: 221

Rep: Reputation: 24
One more thing -- Convert the .eps to .jpeg in LINUX. The Windows converters generally do not work well.
This is my observation. I do not know why it is true.
 
Old 05-20-2009, 03:38 AM   #7
saray
LQ Newbie
 
Registered: May 2009
Posts: 17

Original Poster
Rep: Reputation: 0
Dear Prof.

I changed the terminal of gnuplot to jpeg and it seems that I am getting better results.

It would be an honor to study with you. Please pray for my paper acceptance.

Regards,
Sara
 
Old 05-20-2009, 03:49 AM   #8
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
As you probably know, an eps file is a ps file with reduced command set and a bounding box. So programs that work with postscript should work for eps files as well.

Could you try the "pstoimg" program with the scale option. Then crop the result to what you need and rescale and export as needed in gimp (or use a better scale to begin with). Using different options could result in what you want right away, but testing it I must have got them wrong.

I did test it with "pstoimg -scale 5 -out rose.png rose.eps" and got a scaled picture without jaggies. It was framed badly (the entire page was scaled to a very large graphic, but cutting & pasting from my viewer "showfoto" to gimp would work fine. Loading it directly into gimp, cropping and exporting would work fine.
---

PS. The program will add a border at the bounding box. In gimp, first apply autocrop. Then crop out the border is you don't want it.
If you have a number of eps files in a directory, you can batch process them with:
pstoimg -scale <#> -out png *.eps

---
PPS. When I tried scaling in the gimp, it didn't look very good. Either adjust the scaling value of ps2img, or try the `convert' program with -antialias enabled. Also be careful with the compression settings you use when exporting the jpeg. (I don't know if word supports png. You could use `-o bmp' or `-o jpeg' instead if that is what word wants. You can also use inkscape to scale the eps file as well. It will even let you move components of the eps file around. This might be desirable, for example, to replace the labels or label fonts, or to arrange labels or touch up your tick marks in your graph.


snotty remark: How well does MS Word support metapost?

Last edited by jschiwal; 05-20-2009 at 04:23 AM.
 
Old 05-20-2009, 04:30 AM   #9
saray
LQ Newbie
 
Registered: May 2009
Posts: 17

Original Poster
Rep: Reputation: 0
I had a very short excursion on "pstoimg" in google after reading your kind post. I didn't find a link to be able to get it. Please let me know a related link if it can be downloaded.
 
Old 05-20-2009, 08:15 AM   #10
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
On my system (openSUSE) is is supplied by the "latex2html" package. It probably is used by latex2html to convert eps graphics to graphics on the fly. So it may be a standard package that your distro has as well.

Last edited by jschiwal; 05-20-2009 at 09:18 AM.
 
Old 05-21-2009, 03:04 AM   #11
saray
LQ Newbie
 
Registered: May 2009
Posts: 17

Original Poster
Rep: Reputation: 0
Dear all,

I gave up!!!! Whatever I do the quality of the images are awful in MS Word. I decided to keep to my opensuse 11.0 and use latex.

Please let me know what I should install on opensuse to start latex writing?!

I searched the softwares but I didn't find the tex package.

Regards,
 
Old 05-21-2009, 07:06 AM   #12
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
I'm not sure what the relevant packages are under SUSE, but look for tetex and install it. Also, you can find a LaTeX tutorial here.
 
Old 05-21-2009, 08:09 PM   #13
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
You might also want to install Kile which is an IDE for LaTeX.

If you run "zypper se latex" you should see packages of LaTeX documentation. Search for "texlive" in yast2 for the programs. Don't be surprised if it is already installed, because another package needed it.

Last edited by jschiwal; 05-21-2009 at 08:12 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Transferring file through ssh dstar101 Linux - Newbie 4 01-19-2008 05:08 AM
Transferring file problem satimis Linux - Networking 12 09-14-2007 11:29 AM
ODS-2 file reader (file transferring from VAXstation3100 to linux) the_ube Linux - Software 1 07-19-2007 04:22 PM
how to add text to eps file? markhod Linux - General 1 07-05-2005 11:49 PM
what for file transferring solution. yenonn Linux - Networking 1 07-02-2004 11:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:48 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration