2.2 How to install Writer2LaTeX as an export filter

Writer2LaTeX can work as an export filter for OOo Writer. This requires OpenOffice.org 1.1 or StarOffice 7. It does not work with OpenOffice.org 1.0 or StarOffice 6.0.

The following instructions covers all operating systems.

Uninstalling previous versions of Writer2LaTeX

If you have installed a previous version of Writer2LaTeX you will have to undo the changes you made to the file TypeDetection.xcu:

When you restart OOo, the filters should have disappeared.

Installation

Note: If you have made a -net (multiuser) installation of OOo, you will probably need to log in as root/administrator to install Writer2LaTeX.

Before you start, you need an installation of OOo where

Then the installation proceeds as follows:

  1. Copy writer2latex.jar, xmergefix.jar and writer2latex.xml into the classes directory

    <OOo install>/program/classes/

  2. Rename the existing xmerge.jar to oldxmerge.jar (or whatever you like; this is only to have a backup of the old version).

  3. Rename xmergefix.jar to xmerge.jar.

  4. Copy w2lfilter.zip into the directory

    <OOo install>/share/uno_packages

  5. Make sure that no OOo processes are running: Close all document windows and (under MS Windows) the Quick Starter.

  6. From a command shell navigate to the directory

    <OOo install>/program

    and type

    pkgchk --shared

    This will register Writer2LaTeX as a filter in OOo. If it works, there will be no messages on the screen.

  7. Now restart OOo.

To use the LaTeX files generated by Writer2LaTeX, you will need the LaTeX package writer.sty, see section 3.1.