latex2rtf

Comprises the executables latex2rtf, latex2png.

Compilation (V1.9.xx)

The build process needs perl.
  1. adapt the Makefile, e.g.:
    CFLAGS=...
    PREFIX=$(PREFIX_DRIVE)/tmp/latex2rtf-1.9.16a
    
  2. compile:
    make clean
    make
    make install
    

Compilation (V2.1.0/V2.3.2)

V2.3.2: The install process needs man2html.
Appears to be straightforward otherwise.
Adapt the Makefile, e.g. the entries:
CC=cc             # native C compiler 
TAR=tar           # native tar
RM=rm -f
MKDIR=mkdir -p
RMDIR=rm -rf
PKGMANDIR=man
                  # put PLATFORM before CFLAGS
PLATFORM=-DUNIX   # Mac OS X, Linux, BSD

CFLAGS=-O2 -D_LARGE_FILES $(PLATFORM) # AIX >= 4.2

# CFLAGS:=$(CFLAGS) $(PLATFORM) # not recognized by every make

PREFIX=/tmp/latex2rtf-2.1.0

CFG_INSTALL_COMPILE=$$RTFPATH  # and modify -D... accordingly
In addition, some source files may require the inline attribute to be removed from the function definitions.
Then
make clean
make
make install

Configuration

latex2rtf looks for configuration files with the following priority:
  1. path per command line option:
    latex2rtf -P <path>/cfg
    
  2. path per environment variable definition, e.g.:
    export RTFPATH=/bio/local/share/latex2rtf/cfg
    
  3. as defined at compile time in the Makefile, e.g. /bio/local/latex2rtf-1.9.16a/share/latex2rtf/cfg

Last update: 22-Feb-2013, M.Kraemer