Writer2Latex

From Apache OpenOffice Wiki
Revision as of 14:17, 16 August 2007 by Jans (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

This page contains several QA regarding writer2latex for advanced users. Work is in progress...

Q: How to let text flow around (small) images?

A: Text flow around a figure is problematic in LaTeX (that's why I don't try to export this with w2l). I would recommended the pacakge floatflt.sty for this.

This requires some manual editing of the LaTeX file:

Add the package to the preamble: \usepackage{floatflt}

Replace the relevant \begin{figure} .... \end{figure}

with

\begin{floatingfigure}{5cm} .... \end{floatingfigure}

(replacing 5cm with the actual width of the figure)

However: For this to work well there has to be a certain amount of text around the figure, and there must be no lists or headings immediately after the figure. Thus there's a chance that 12 small images and not a lot of text will give you trouble.

Q: How to left justify all captions?

A: W2l currently use a version called caption2, which is obsolete and replaced with a version called caption (this is actually version3). w2l will be fixed to use the never version of caption.sty soon.

Configure:

<option name="use_caption2" value="true" />

Then you should add to your custom preamble:

<custom-preamble> \captionsetup[table]{justification=raggedright,singlelinecheck=false} </custom-preamble>

But you also need to edit the LaTeX file and replace

\usepackage{caption2}

with

\usepackage{caption}

Personal tools