# Re: Export latex equation

greenux <greenux@xxxxxx> wrote:

I am searching for a good way to export latex equation in a complete
latex document to pdf files and convert them to png to use them in M\$
Word.
I found some work-around solutions, but I thought that is maybe easier
to define an environment, which is used around all equation you want
to export. It writes the equation code to a tex file (with some
predefinied header) which name is an argument of the environment.
Something like:
\begin{exportequation}{filename.tex}

c^2=a^2+b^2

\end{exportequation}
Of course it should work for eqnarray, split, ... too.

Hello,
why do you want to do this, or, better what do you need?

If you want to convert your complete document from LaTeX to Word, this
can be done by
a) TeX4ht (oolatex) -> OpenOffice file -> OpenOffice or LibreOffice ->
save as Word file
b) latex2rtf converter. This has the options to either include the
equations in Word as EQ fields or does something like you intend, i.e.
for each equation write the LaTeX source to a file, compile this file
with LaTeX, run dvips, run ImageMagick + ghostscript to convert the eps
to png, and finally insert the png into the generated rtf file which can
be opened in Word.

If you want to directly write in Word but also have LaTeX's superior
equation typesetting, then you could use a tool like
Latex in Word http://latexinword.sourceforge.net/

For a list of converters from LaTeX to Word see
http://tug.org/utilities/texconv/textopc.html

--
Wilfried Hennings
.

## Relevant Pages

• Re: including png files -- works on PC, fails on Mac
... My experiences and your replies unfortunately contradict some of the reasons that led this project toward LaTeX instead of an option like FrameMaker. ... I thought that packages were packages, and that all engines did the same thing. ... regular access to a mac), ... I have been looking, thinking that it may be easier to convert all of the png files to eps, presumably those will still work on the MiKTeX computer too. ...
(comp.text.tex)
• Re: Inserting PNG files alias image
... generate an eps file, I can only convert the png). ... We use OPI, this also enables us to use TIFF and JPEG with LaTeX. ...
(comp.text.tex)
• Re: picture in latex
... i have .bmp and .png format ... how do i convert these to .ps or.eps to include in latex. ... You can also use png and bmp images with LaTeX directly if you specify a BoundingBox and your dvi driver supports the graphics formats. ...
(comp.text.tex)
• Re: LaTeX to JPEG/PNG conversion (linux)?
... > I need some script/program etc that would take latex ... > as input and produce a PNG or JPEG on output. ...
(sci.math)
• Re: including png files -- works on PC, fails on Mac
... LaTeX returns complaints like "! ... This is not directly the cause of the problem: dvips on miktex can ... file one need as graphics rule: ... But naturally this will not enable dvips to handle the png. ...
(comp.text.tex)