The preferred method of installation is no more a deb package but rather via the OpenOffice extension manager
The preferred method of installation is no more a deb package but rather via the OpenOffice extension manager. This has the advantage to be platform independent (Win, Mac, Linux,...); to be cleaner than the deb package which has to modify some configuration files (subjected to change from one version to another); ... However, the disadvantage is that there is no more automatic update. But if it works for you, why update? If you experience some problems, then go back to the website to check!
Install Mathematical Fonts:
sudo apt-get install texlive imagemagick epstool
The last step may take a while before finishing
sudo mv OOoLatexFonts /usr/share/fonts/truetype/.
sudo fc-cache -f /usr/share/fonts/truetype
(Optionnal) Install binaries for EMF
If you want to use emf format (i.e. scalable pictures of the equations ==> I recommend), you need one more dependency: the latex2emf program.The easiest way to install it is to grab the binaries directly from the OOoLatex website: http://sourceforge.net/project/showf...roup_id=150801
If you have Ubuntu i386 or 64bits choose latex2emf_Linux_i386_binary.tar.gz
If you have Ubuntu PPC choose latex2emf_Linux_PPC_binary.tar.gz
If you have something else, you'll need to compile from source (grab OOoLatexEmf_noarch_src.tar.gz)
Once downloaded, go to the directory where you've downloaded:
tar -xzvf latex2emf_Linux_i386_binary.tar.gz
And finally, you can now install the extension!! Remarks that if you're just upgrading the extension, you need only this final step! But first download the extension here:
At the time of writing this post, the latest one was 4.0.0-beta2 --> file OOoLatex-4.0.0-beta-2-linux.oxt
There are two types of installation. The administrator one is useful when installing for a lot of users but each user is not allowed to modify the configuration (most notably the shortcuts), only root can do that. Therefore I recommend, for normal user, to install the single-user type. For each type ther are two ways to make the install:
- Terminal :
/usr/lib/openoffice/program/unopkg.bin add OOoLatex-4.0.0-beta-2-linux.oxt
sudo /usr/lib/openoffice/program/unopkg.bin add --shared OOoLatex-4.0.0-beta-2-linux.oxt
- Graphical :
Open OpenOffice (writer or impress). Tools > Package Manager > Add > Select the oxt file you've downloaded
Not recommended, see terminal method
Note that you'll have to accept the licence.
After installation, try <Control>+M and <Control>+K (the default shortcuts). You can also add the OOoLatex Toolbar: View > Toolbars > OOoLatex
The module Equation transform a LaTeX code into an image. Two formats are proposed: .png and .emf. You probably know PNG, this is a kind of "normal" image. If you rescale it, you'll see pixel. A way to circumvent this problem is to increase the resolution (dpi) but you'll get larger files! Or to use the EMF format which is a scalable image: the equation is vectorised and don't loose resolution when you rescale it! This is probably the better choice but you need then some binaries (see above). Selecting an equation and opening the equation dialog box allows editing of the equation.
The module Expand was first called Inline in the first versions of OOoLatex. Basically, it transforms (expands) the LaTeX special characters into ones that are usable by OpenOffice. This is done (partly) via the STIX general fonts. The interests of Expand is to include LaTeX characters directly in a sentence without requiring the insertion of an image (as in Equation). Evidently, not all LaTeX code can be expanded (e.g. a fraction bar with something above and under is not a character!), that's why a list is offered in the dialog box.
In summary: use Equation for ... equations and Expand for some in-text characters
Remove the extension:
Single User mode:
/usr/lib/openoffice/program/unopkg.bin remove net.sourceforge.ooolatex
sudo /usr/lib/openoffice/program/unopkg.bin remove --shared net.sourceforge.ooolatex