[First] [Previous] [Next] [Last] [Contents]

# 2 Installation

## 2.1 How to install Writer2LaTeX for command line usage

Writer2LaTeX can work as a standalone command line utility (that is without OOo).

### Installation for Microsoft Windows

To install Writer2LaTeX under Microsoft Windows follow these instructions:

1. Unzip writer2latex05.zip into some directory. This will create a subdirectory writer2latex05.

2. Add this directory to your PATH environment variable.

3. Open the file w2l.bat with a text editor and replace the path at the top of the file with the full path to Writer2LaTeX, for example

   set W2LPATH="c:\writer2latex05"

   (If you have extracted to the root of drive C, you don't have to edit this line.)

   At a command line type java -version to verify that the Java executable is in your path. If this is not the case or you have several Java versions installed you should edit the next line to contain the full path to the Java executable, eg.

   set JAVAEXE="C:\j2sdk1.4.0_01\bin\java”

### Installation for Unix and friends

1. Unzip writer2latex05.zip into some directory. This will create a subdirectory writer2latex05.

2. Add this directory to your PATH environment variable or create a symbolic link to the file w2l from some directory in yout PATH.

3. Open the fle w2l with a text editor and replace the path at the top of the file with the full path to Writer2LaTeX, eg.

1. W2LPATH="/home/username/writer2latex05"

   (If you have extracted into your home directory, you don't have to edit this line.)

   Open a command shell and type java -version to verify that the Java executable is in your path. If this is not the case or you have several Java versions installed you should edit the next line to contain the full path to the Java executable, ie.

   set JAVAEXE="/path/to/java/executable/”

2. Add execute permissions to w2l as follows:

   chmod +x w2l

## 2.2 How to install Writer2LaTeX as an export filter

Writer2LaTeX can work as an export filter for OOo Writer. This requires OpenOffice.org 2.x, StarOffice 8 or NeoOffice 2.0.

Note: OOo 2.0.4 includes Writer2LaTeX version 0.4 (LaTeX and BibTeX export only). I you install version 0.5, the built-in version will be disabled. If you uninstall version 0.5, the original version will reappear.

The following instructions covers all operating systems.

Important: Before you install Writer2LaTeX, you need to set up OOo to use Java. You can configure this in OOo under Tools – Options. Of course this requires that you have installed Java on your system.

### Install Writer2LaTeX for a single user

1. Start OOo and chose Tools – Extension Manager. (Tools – Package Manager in versions prior to OOo 2.1).

2. Select My packages and select writer2latex.uno.pkg using the Add button.

3. You should now be able to see writer2latex.uno.pkg if you expand the list using the plus-icon:

4. Finally restart OOo.

### Install Writer2LaTeX for all users

Note: If you want to install Writer2LaTeX for all users, you will normally need to log in as root/administrator.

Then the installation proceeds as follows:

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

2. From a command shell, navigate to the directory

   <OOo install>/program

   and type

   unopkg gui

   On unix-like systems you may have to type

   ./unopkg gui

3. Select OpenOffice.org packages and select writer2latex.uno.pkg using the Add button

4. You should now be able to see writer2latex.uno.pkg if you expand the list using the plus-icon, as above.

## 2.3 Uninstall Writer2LaTeX

To remove the Writer2LaTeX filters from your OOo installation, you should open the Extension Manager as described above, select writer2latex.uno.pkg and click Remove.