Home

Contents

1 Introduction

2 Using the export filters

3 Using the command line utility

4 Configuration

5 Special features for the EPUB export

6 The LaTeX package ooomath.sty

7 Using Writer2LaTeX from another application

8 Troubleshooting

    

8 Troubleshooting

Writer2LaTeX can convert quite large files. But if you have a very large document, you could get the following error message :

Exception in thread "main" java.lang.OutOfMemoryError: Java heap space

In that case, you need to manually increase the memory available to the java virtual machine, for example using the following command to convert your document:

java -Xmx512M -jar writer2latex.jar bigFile.sxw out.tex

In the example, the heap size is set to 512 Megabyte of RAM. If you still get the “heap space” error,  try setting the available memory even higher (assuming that your computer has enough physical RAM).

If you are using Writer2LaTeX as an export filter in OOo/LO, this problem will result in a generic error message saying that that document could not be written. To increase the heap size in this case, choose Tools – Options – LibreOffice – Advanced. Click Parameters, and add the parameter -Xmx512M (or higher).