nv_custom_export

Project homepage > Index > User guide


User guide

This page refers to the latest nv_custom_export release. You can open it with Help > nv_custom_export Online help.

The plugin replaces the default templates for the Final manuscript document export with custom templates that can be provided either locally (per project), or globally (for all projects) by the user.


Important

The nv_custom_export plugin processes text files to generate code according to the OpenDocument XML file format. I highly recommend that you familiarize yourself with this XML format before creating your own templates. If you do something wrong, novelibre may generate a text document that cannot be opened by OpenOffice/LibreOffice. In an emergency, simply delete your self-generated template files or uninstall the nv_custom_export plugin via the Plugin manager.

The best way to get started is to experiment with the examples provided (see below).


Configuration

Configuration is done by providing your custom template files either globally or locally in a template folder. If there is no template folder at all, the novelibre default templates are applied.

Global templates

Optional global templates are applied to all of your novelibre projects that have no local templates (see below).

Place a subfolder named nv_custom_export in your novelibre installation directory. It contains all template files to be applied. The best way is to copy the provided sample template files (see below) and customize them with a text editor according to your needs.

Local templates

Optional local templates are used prior to global templates, if any.

Place a subfolder named nv_custom_export in your project directory. It contains all template files to be applied to this project. The best way is to copy the provided sample template files (see below) and customize them with a text editor according to your needs.

Examples

The installation includes a directory named nv_custom_export_sample containing several subdirectories with example templates for different purposes. Please refer to the included README files for documentation.


Hint

If you insert metadata such as date, time, location, or viewpoint, you best use heading page styles that are not used by novelibre by default, i.e. Heading 5, Heading 6, Heading 7, etc. To adjust the appearance and the spacing above and below the paragraphs, you might want to set a custom ODT export document template and edit the paragraph styles there.


Reference

Templates

Project level templates

Chapter level templates

Section level templates

Placeholders

Syntax

There are two options:

  1. $Placeholder - If the placeholder is followed by a character that is clearly recognizable as a separator, e.g. a blank.
  2. ${Placeholder} - If the placeholder is followed by a character that is not recognizable as a separator.

“Project template” placeholders

“Chapter template” placeholders

“Section template” placeholders


Copyright (c) 2025 by Peter Triesberger. All rights reserved.