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

Can I paste latex equations directly into formula fields?

 
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Impress
View previous topic :: View next topic  
Author Message
garold4
Newbie
Newbie


Joined: 25 May 2003
Posts: 1

PostPosted: Sun May 25, 2003 2:22 pm    Post subject: Can I paste latex equations directly into formula fields? Reply with quote

I use latex on unix/linux all the time for publications. I have used MS PowerPoint in the past for presentations and converted latex equations with TexPoint (very nice!) but have now fully jettisoned MS in favor of linux and for presentations would like to use OpenOffice Impress (or StarOffice--by the way, is there any difference or advantage to using StarOffice?).

However, Impress's OO Math does not seem to use the same language as latex. I really would like to paste my latex formulas directly into Impress. Is there any way to configure Impress to allow this? If not, is there an add-on program (analogous to TexPoint) which will alow me to do this?

Thank you for your help/comments!
Back to top
View user's profile Send private message
Rhoda
Guest





PostPosted: Mon Jun 14, 2004 12:43 am    Post subject: Open Office Impress and Texpoint Reply with quote

I too have the same problem. It seems tragic that Impress supposed to be specially for us linux users is worse than powerpoint for using latex with it! Does anyone out there know the solution? Or do you all write latex slides from scratch without using open office at all?

Thanks!
Back to top
ftack
Moderator
Moderator


Joined: 27 Jan 2003
Posts: 3102
Location: Belgium

PostPosted: Mon Jun 14, 2004 1:10 pm    Post subject: Reply with quote

That is a matter of history. Do not forget that the origins of OpenOffice/Staroffice are as a proprietary application that wanted to compete on the desktop market just like any other proprietary office suite. Now Sun, who bought StarOffice from German based "Star Division" (hope I got this name correct) still wants to compete obviously, but to do so switched to a radically different model, that presumably *is* making a difference. If open source developpers were to design it from scratch, they presumably would have choosen to have Math talk Latex. Youĺl have to wait and see if some nice developpers start to create some Math compatible "texpoint" (TexMath"?). What also could help is that you file issue requests on www.openoffice.org.

Quote:
(or StarOffice--by the way, is there any difference or advantage to using StarOffice?).

Staroffice is the "shrink-wrapped" commercial implementation of OOo. It is based on OOo with proprietary extensions. In core functionality, they are fully equivalent (pretty much the same programs because based on the same code). StarOffice has the 'official ' support from the vendor, but you may find that the free support is'n always that bad either Wink Staroffice is quite a lot cheaper than other suites, and for roll-outs in companies, I would definitely recommend Staroffice. As a private user, you may like the extra's such as clip art and templates or the database component that comes with Staroffice. It comes as CD's nicely wrapped in a box and probably with a printed manual to get you started, but in terms of core Office productivity in Writer, Calc, Impress, Draw or Calc, you are perfectly equally armed with OOo than with Staroffice.
Back to top
View user's profile Send private message
Cybb20
Super User
Super User


Joined: 02 Mar 2004
Posts: 1569
Location: Frankfurt, Germany

PostPosted: Mon Jun 14, 2004 1:39 pm    Post subject: Reply with quote

ftack is it correct to say that OOo's API and UNO components are better than in Starbasic?
I know that there is no big difference, but I think developers improved these components for OOo by adding new features to it and fixing bugs, didn't they?
_________________
- Knowledge is Power -
Back to top
View user's profile Send private message Send e-mail
ftack
Moderator
Moderator


Joined: 27 Jan 2003
Posts: 3102
Location: Belgium

PostPosted: Tue Jun 15, 2004 12:34 pm    Post subject: Reply with quote

Sorry, Cybb20, I can't help you in this as I am not a developper myself and I have yet to write my first OOo macro - recording is the furthest I ever ventured). There are however amazing macro and API experts wandering this forum and they will be much better placed to comment on your question.
Back to top
View user's profile Send private message
RonanLeHy
Guest





PostPosted: Thu Jul 08, 2004 3:04 pm    Post subject: Re Can I paste latex equations directly into formula fields? Reply with quote

I made a small program (called eqe) to do just that: write the formula in LaTeX, click a button, and just drag the image to Impress (or anywhere else). You can find it at http://rlehy.free.fr .

HTH

--
Ronan
Back to top
occasional guest
Guest





PostPosted: Thu Jul 22, 2004 8:01 am    Post subject: Re: Can I paste latex equations directly into formula fields Reply with quote

well ...
eqe could become an openoffice component and thus solve the problem alltogether

think about it
Back to top
avn
Newbie
Newbie


Joined: 06 Sep 2004
Posts: 1

PostPosted: Mon Sep 06, 2004 10:51 am    Post subject: Re: Re Can I paste latex equations directly into formula fie Reply with quote

RonanLeHy wrote:
I made a small program (called eqe) to do just that: write the formula in LaTeX, click a button, and just drag the image to Impress (or anywhere else). You can find it at http://rlehy.free.fr .

HTH

--
Ronan


After a while (I had to install the perl modules + the gtk2-perl, which takes some time to figure out), eqe was up and running. It is a VERY GOOD way of putting LaTeX equations into Impress!

I agree: at some point, OpenOffice should switch from the underachieving equation editor they have to some implementation of eqe, or at least provide the option (in a smooth way!).

Thanks, Ronan!!!
Back to top
View user's profile Send private message AIM Address
jmfv
General User
General User


Joined: 06 Jun 2005
Posts: 15
Location: Portugal

PostPosted: Mon Jun 06, 2005 1:50 pm    Post subject: Reply with quote

After some search on Google (not easy, though) I found this macro to write Latex in OpenOffice. Tried it and works!

OOOLatexMacro
http://www.fyma.ucl.ac.be/wiki/~piroux/OOo+macro

It would be fine if it became official...
Back to top
View user's profile Send private message
PiratePi
Newbie
Newbie


Joined: 24 Oct 2007
Posts: 2

PostPosted: Wed Oct 24, 2007 12:23 pm    Post subject: Reply with quote

Here'a a somewhat elaborate Makefile snippet to create png files of LaTeX formulas that are properly antialiased:

Code:

%.svg: %.tex
   latex $<
   dvips -q -f -E -D 600 -y 5000 -o $*.eps $*.dvi
   pstoedit -f sk -dt -ssp $*.eps $*.sk
   LANG=C skconvert $*.sk $@
   rm -f $*.eps $*.sk

%.png: %.svg
   inkscape -e $@ -y 0.0 -d 200 $<


Usage
Make a LaTeX file with a formula, e.g. equation.tex:
Code:

\documentclass{minimal}
\begin{document}
\begin{displaymath}
 \int f(x) dx
\end{displaymath}
\end{document}

then type
$ make equation.png
and insert that equation per drag'n'drop into Your presentation. Now make the formula png half the size and it should produce a nicely antialiased formula. If You link the png You can edit the tex file and rerun `make' without further steps, the new formula will then be present in Your presentation after a reload. Resizing to a smaller image in Impress is necessary for proper antialiasing, I was not satisfied with formula images that already had the final presentation size.

This code snippet converts the eps to svg and then to png via Inkscape. You need to have LaTeX, pstoedit, skconvert and Inkscape installed.

I like to keep my formulae in separate LaTeX files for editing with my favourite editor rather than editing them inline in some other program, but I was to lazy to adjust the tex2im script mentioned above with this code...

Pros:
- uses antialiased png formulae with transparent background, makes the presentation portable
- can render anything LaTeX produces, even weird/rare mathematical symbols (at least I think so)

Cons:
- each inserted formula needs a manual resize step once
- needs some additional tools to be installed

Hope someone finds it useful though Embarassed
Back to top
View user's profile Send private message
Ulrich Scholz
General User
General User


Joined: 14 Sep 2007
Posts: 12

PostPosted: Thu Oct 25, 2007 4:10 am    Post subject: Reply with quote

nice idea. But I get errors. Any idea what happened?

I downloaded the tools today.

Linux monster 2.6.16 #3 SMP Tue May 9 15:36:55 CEST 2006 i686 GNU/Linux


dvips -q -f -E -D 600 -y 5000 -o equation.eps equation.dvi
pstoedit -f sk -dt -ssp equation.eps equation.sk
pstoedit: version 3.44 / DLL interface 108 (build Mar 11 2007 - release build - g++ 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)) : Copyright (C) 1993 - 2006 Wolfgang Glunz
LANG=C skconvert equation.sk equation.svg
Error reading line 'bs(1142.42,501.997,0)\n'
Error reading line 'bc(1144.01,502.097,1145,503.193,1145,504.438,0)\n'
Error reading line 'bc(1145,506.082,1143.68,507,1142.47,507,0)\n'
Error reading line 'bc(1141.27,507,1140,506.217,1140,504.388,0)\n'
Back to top
View user's profile Send private message
PiratePi
Newbie
Newbie


Joined: 24 Oct 2007
Posts: 2

PostPosted: Tue Nov 06, 2007 9:58 am    Post subject: Easier creation of LaTeX .png files with Inkscape Reply with quote

I must confess I stole the last snippet I posted earlier from a colleague. Meanwhile I found out that Inkcsape is able to create a nicely antialiased .png directly from the .eps file:

Code:

$ inkscape -e equation.png -i svg2 -d 200 equation.eps


The option `-i svg2' helps Inkscape exporting the relevant area of the visible formula (i.e. the bounding box of the .eps). This method also preserves the shape of the LaTeX letters, while pstoedit distorted them slightly.

With
Code:

$ inkscape -l equation.svg equation.eps

one could convert the .eps into a plain .svg file directly, but as long as .svg import is not readily available in OOo, I am afraid one has to resort to this workaround with .png files...

The resizing of the imported .png in OOoImpress has still to be done as explained in my last posting.

Still buggy Sad
I just encountered that in this solution Inkscape has problems with fraction bars in formulae (does not recognize it in the eps file). Converting the formula with pstoedit into .sk format does the job...

*#$%, why has it be so hard to get .eps into another vector format? Evil or Very Mad
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 Impress 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