OpenOffice.org Forum at OOoForum.orgThe OpenOffice.org Forum
 
 [Home]   [FAQ]   [Search]   [Memberlist]   [Usergroups]   [Register
 [Profile]   [Log in to check your private messages]   [Log in

eps export and LaTeX psfrag

 
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Draw
View previous topic :: View next topic  
Author Message
helen
Guest





PostPosted: Mon Oct 06, 2003 6:59 am    Post subject: eps export and LaTeX psfrag Reply with quote

Hello,

I'm trying to use openoffice.org draw to draw figures, export them as eps, and then put them into a LaTeX document. I want to use psfrag to replace some of the words in the figures with LaTeX symbols, but it's not working. For example, I want to replace the word "alpha" in the figure, with the LaTeX symbol $\alpha$.

I don't know much about eps, but it appears that OOo is not exporting the word "alpha" anywhere in the resulting eps file (which doesn't explain to me how the word "alpha" shows up in the figure, but anyway). I tried using one letter tags for psfrag, incase OOo breaks up the letters of a word when it exports to eps. But that doesn't work either.

Has anyone done this successfully? Can anyone suggest a solution?

Thanks,

helen
Back to top
Cobalt
Guest





PostPosted: Mon Jan 19, 2004 2:19 am    Post subject: Re: eps export and LaTeX's psfrag Reply with quote

I have the same problem with OpenOffice 1.1. The .eps files produced by OOo apparently do not work with LaTex's psfrag (in contrast to the .eps files produced by the Xfig drawing program).

I feel very comfortable with OOo Draw. Since it is under active development, (unlike Xfig, it seems), hopefully the problem will be fixed.

Also the pdf export option of OOo Draw does not crop the image, even though the eps export option does. So instead of it I had to use epstopdf.
Back to top
DannyB
Moderator
Moderator


Joined: 02 Apr 2003
Posts: 3991
Location: Lawrence, Kansas, USA

PostPosted: Mon Jan 19, 2004 9:04 am    Post subject: Re: eps export and LaTeX psfrag Reply with quote

helen wrote:
I don't know much about eps, but it appears that OOo is not exporting the word "alpha" anywhere in the resulting eps file (which doesn't explain to me how the word "alpha" shows up in the figure, but anyway).


Eps and ps, as well as pdf, are "markup" languages. That is, the language describes how to put black (or color) marks onto white paper.

The language has sophisticated capabilities to make complex marks, such as bezier curves and many other geometric shapes.

The word "alpha" does not need to appear in the text in order to draw shapes onto the paper that look like the letter "a", and the letter "l", and then "p", "h", "a", to make the word "alpha".

It could be that OOo Draw simply writes different eps code that results in the same marks being made on the paper. It is unfortunate that it does it in such a way that you can't trivially replace text like you want to do.
_________________
Want to make OOo Drawings like the colored flower design to the left?
Back to top
View user's profile Send private message
mayhew
Newbie
Newbie


Joined: 12 May 2009
Posts: 1

PostPosted: Tue May 12, 2009 3:16 pm    Post subject: Solution - EPS export filter Reply with quote

I seem to have found a solution to this problem here:
http://www.mail-archive.com/users@openoffice.org/msg66714.html

From what I gather, OpenOffice used to have an option on the EPS export window of how the user would like the text to be rendered - as text or curves. Now, it appears that this option has disappeared; however, one only needs to edit the EPS export filter in the following way:

Just look for
"C:\Documents and Settings\USER
NAME\Applicationdata\OpenOffice.org2\user\registry\data\org\openoffice\Office\Common.xcu"
and change the following lines

<node oor:name="Filter">
<node oor:name="Graphic">
<node oor:name="Export">
<node oor:name="EPS">
<prop oor:name="ColorFormat" oor:type="xs:int">
<value>1</value>
</prop>
<prop oor:name="Version" oor:type="xs:int">
<value>2</value>
</node>
</node>
</node>
</node>

to make it look like this

<node oor:name="Filter">
<node oor:name="Graphic">
<node oor:name="Export">
<node oor:name="EPS">
<prop oor:name="ColorFormat" oor:type="xs:int">
<value>1</value>
</prop>
<prop oor:name="Version" oor:type="xs:int">
<value>2</value>
</prop>
<prop oor:name="TextMode" oor:type="xs:int">
<value>2</value>
</prop>
</node>
</node>
</node>
</node>

You will need to completely restart OpenOffice for the changes to take effect. I have tested this with success. Don't forget to backup the old Common.xcu in case you make a mistake editing!
Back to top
View user's profile Send private message
jlperla
Newbie
Newbie


Joined: 21 Mar 2011
Posts: 3

PostPosted: Mon Mar 21, 2011 6:08 am    Post subject: eps export and LaTeX psfrag with OpenOffice 3 Reply with quote

It seems that the latest version of OpenOffice has a different method for handling the setup files. Does anyone know how to do this EPS workaround with the new version?
Back to top
View user's profile Send private message
jlperla
Newbie
Newbie


Joined: 21 Mar 2011
Posts: 3

PostPosted: Tue Mar 22, 2011 5:42 am    Post subject: Reply with quote

I found something that seemed to work in LibreOffice 3.3 but not in OpenOffice 3.3.

I may have solved my own problem and found the new setting.  Try the following:

* Open the file "C:\Program Files (x86)\LibreOffice 3\Basis\share\registry\main.xcd" in a text editor
* Use the Find and Replace feature in your editor.
Find:

EPS"><prop oor:name="Preview" oor:type="xs:int"><value>0</value></prop><prop oor:name="Version" oor:type="xs:int"><value>2</value></prop><prop oor:name="ColorFormat" oor:type="xs:int"><value>2</value></prop><prop oor:name="CompressionMode" oor:type="xs:int"><value>2</value></prop><prop oor:name="TextMode" oor:type="xs:int"><value>0

Replace with:

EPS"><prop oor:name="Preview" oor:type="xs:int"><value>0</value></prop><prop oor:name="Version" oor:type="xs:int"><value>2</value></prop><prop oor:name="ColorFormat" oor:type="xs:int"><value>2</value></prop><prop oor:name="CompressionMode" oor:type="xs:int"><value>2</value></prop><prop oor:name="TextMode" oor:type="xs:int"><value>2

* Restart LibreOffice


... I think I may be changing over to LibreOffice.
Back to top
View user's profile Send private message
BMN
General User
General User


Joined: 07 Mar 2008
Posts: 24

PostPosted: Fri Apr 29, 2011 3:48 pm    Post subject: EPS Export in OODraw Reply with quote

jlperla wrote:
I found something that seemed to work in LibreOffice 3.3 but not in OpenOffice 3.3.

I may have solved my own problem and found the new setting.  Try the following:

* Open the file "C:\Program Files (x86)\LibreOffice 3\Basis\share\registry\main.xcd" in a text editor
* Use the Find and Replace feature in your editor.
Find:

EPS"><prop oor:name="Preview" oor:type="xs:int"><value>0</value></prop><prop oor:name="Version" oor:type="xs:int"><value>2</value></prop><prop oor:name="ColorFormat" oor:type="xs:int"><value>2</value></prop><prop oor:name="CompressionMode" oor:type="xs:int"><value>2</value></prop><prop oor:name="TextMode" oor:type="xs:int"><value>0

Replace with:

EPS"><prop oor:name="Preview" oor:type="xs:int"><value>0</value></prop><prop oor:name="Version" oor:type="xs:int"><value>2</value></prop><prop oor:name="ColorFormat" oor:type="xs:int"><value>2</value></prop><prop oor:name="CompressionMode" oor:type="xs:int"><value>2</value></prop><prop oor:name="TextMode" oor:type="xs:int"><value>2

* Restart LibreOffice


... I think I may be changing over to LibreOffice.


Try this:
1.) Start Open Office Draw, then close all Open Office applications:
Use the taskmanager and kill these processes: sdraw.exe, soffice.exe and soffice.bin

2.) Open C:\Users\YOUR_USER_NAME\AppData\Roaming\OpenOffice.org\3\user\registrymodifications.xcu and add the following code before such a textfragment: <item

Code:
<item oor:path="/org.openoffice.Office.Common/Filter/Graphic/Export/EPS"><prop oor:name="TextMode" oor:op="fuse"><value>2</value></prop></item>


3.) Save the file. Open OODraw, export a figure as EPS-file and do your psfrag tasks.
4.) Enjoy!

Here is an example in the attachment:
http://de.openoffice.info/viewtopic.php?t=11780#p176040
Back to top
View user's profile Send private message Visit poster's website
cawhittle
Newbie
Newbie


Joined: 15 Feb 2012
Posts: 1

PostPosted: Wed Feb 15, 2012 1:56 pm    Post subject: To what "textfragment" are you referring? Reply with quote

The last person to reply wrote, "2.) Open C:\Users\YOUR_USER_NAME\AppData\Roaming\OpenOffice.org\3\user\registrymodifications.xcu and add the following code before such a textfragment: <item ...."

What "textfragment"? I tried this, and it didn't work, but I wasn't sure where to put it in the registrymodifications.xcu file. And I tried just pasting the part after "Code", and then when that didn't work, typing "</item>" before the pasted text and "</node>" after the pasted text. I'm frustrated.

Thank you for your help!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Draw All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group