| View previous topic :: View next topic |
| Author |
Message |
helen Guest
|
Posted: Mon Oct 06, 2003 6:59 am Post subject: eps export and LaTeX psfrag |
|
|
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
|
Posted: Mon Jan 19, 2004 2:19 am Post subject: Re: eps export and LaTeX's psfrag |
|
|
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


Joined: 02 Apr 2003 Posts: 3991 Location: Lawrence, Kansas, USA
|
Posted: Mon Jan 19, 2004 9:04 am Post subject: Re: eps export and LaTeX psfrag |
|
|
| 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 |
|
 |
mayhew Newbie

Joined: 12 May 2009 Posts: 1
|
Posted: Tue May 12, 2009 3:16 pm Post subject: Solution - EPS export filter |
|
|
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 |
|
 |
jlperla Newbie

Joined: 21 Mar 2011 Posts: 3
|
Posted: Mon Mar 21, 2011 6:08 am Post subject: eps export and LaTeX psfrag with OpenOffice 3 |
|
|
| 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 |
|
 |
jlperla Newbie

Joined: 21 Mar 2011 Posts: 3
|
Posted: Tue Mar 22, 2011 5:42 am Post subject: |
|
|
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 |
|
 |
BMN General User

Joined: 07 Mar 2008 Posts: 24
|
Posted: Fri Apr 29, 2011 3:48 pm Post subject: EPS Export in OODraw |
|
|
| 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 |
|
 |
cawhittle Newbie

Joined: 15 Feb 2012 Posts: 1
|
Posted: Wed Feb 15, 2012 1:56 pm Post subject: To what "textfragment" are you referring? |
|
|
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 |
|
 |
|