How can I turn something like:
\[
H = \sum_{x \in X} p_x \log p_x
\]
into an image file that can be used to place into a MS Word or OpenOffice Document?
Super User is a question and answer site for computer enthusiasts and power users. It only takes a minute to sign up.
Sign up to join this communityThere are several ways:
The conversion tools could be run in windows, but they are mostly intended to run under linux. On windows they might require some tweaking. LyX runs just fine in mac, windows & linux.
My personal "folk" solution:
goto http://meta.wikimedia.org/wiki/Sandbox, and insert your formula between <math>
and </math>
tags, then force preview and save formula image as a file.
:)
a \in A
, that would be fine, but a ∈ A
triggers an error.
There's some option (not installed by default) called the "Microsoft Equation Editor".
MathType is a related product which can do LaTeX.
OOoLatex is a set of macros designed to bring the power of LaTeX into OpenOffice.
In the recent versions of Word, you can insert a LaTeX equation, with Insert -> Symbols -> Equation -> Insert new equation
.
In the cell that appears you can write something similar to LaTeX syntax (sorry, I have the Italian edition):
pressing Enter you got:
Of course, not all the functionalities of LaTeX are supported, but it's a beginning.
Pay attention that big documents with many equations can cause problems (using LaTeX directly is always preferable... but not always possible).
Here there is a video on how to insert LaTeX equations in Word: https://support.microsoft.com/en-us/office/write-an-equation-or-formula-1d01cabc-ceb1-458d-bc70-7f9737722702.
I use Humanized Enso along with the beta latex product: http://www.google.com/interstitial?url=http://www.humanized.com/enso/beta/all/ (Currently this site seems to be infested with malware, so don't go there, though the software is completely trustworthy because the creator Aza Raskin is a VERY well known person). Now select your tex/latex expression and press Caps-L and you're done. NOT perfect, but works for my basic needs, and mostly because Enso is something I can't live without, so its really no extra installation for me.
Depending on why you want the equation to end up in Microsoft Word or OpenOffice, you might be better off setting up a formula than trying to create an image and paste that in.
OpenOffice can actually do equations without any additional plug-ins. I like this tutorial for explaining how to format equations using the word processor. However, you can also use OpenOffice Math as a stand-alone program.
If you prefer a static image rather than a Formula object, you could do that too -- just take a screenshot and paste it in.
Use Alt+= to enter/exit LaTeX mode in Office products.