Home

Contents

1 Introduction

2 Using the export filters

3 Using the command line utility

4 Configuration

4.1 Writer2LaTeX configuration

4.2 Writer2xhtml and Calc2xhtml configuration

4.3 Using LibreOffice to create XHTML documents

5 Special features for the EPUB export

6 The LaTeX package ooomath.sty

7 Using Writer2LaTeX from another application

8 Troubleshooting

    

4 Configuration

4.3 Using LibreOffice to create XHTML documents

The configuration file cleanxhtml.xml that is distributed with Writer2LaTeX, can be used to create semantically rich XHTML content, which can be formatted with your own stylesheet (you should edit the file to add the URL to the stylesheet you want to use).

A subset of the built-in styles in Writer are mapped to XHTML elements (note that the style names are localized, so this is for the english version of LibreOffice):

LO Writer style

LO Writer style family

XHTML element

Text body

paragraph style

p

Sender

paragraph style

address

Quotations

paragraph style

blockquote

Preformatted Text

paragraph style

pre

List Heading

paragraph style

dt (in dl)

List Contents

paragraph style

dd (in dl)

Horizontal Rule

paragraph style

hr

Citation

text style

cite

Definition

text style

dfn

Emphasis

text style

em

Example

text style

samp

Source Text

text style

code

Strong Emphasis

text style

strong

Teletype

text style

tt

User entry

text style

kbd

Variable

text style

var

bold

hard formatting attribute

b

italics

hard formatting attribute

i

fixed pitch font

hard formatting attribute

tt

superscript

hard formatting attribute

sup

subscript

hard formatting attribute

sub

So by using these styles only, you will create well-structured XHTML documents. See the document sample-xhtml.sxw for an example of how to use this.

Links

LO does not support all kind of XHTML link attributes, for example you cannot set title or rel. Writer2xhtml provides a solution for thus using the name attribute: You can define values for all attributes by providing a semicolon separated list of names and values, eg.

title=My title;rel=next

will create an XHTML link like

<a href="..." title="My title" rel="next">

If the name attributes does not contain such a list, the value is used for the name and title attribute:

My name

will create an XHTML link like

<a href="..." name="My name" title="My name">