How do I create DOCX templates?

Not happy with the default template for .docx exports? Just create your own!

How to create a DOCX template

Templates are normal .docx documents that you can create with programs like Microsoft Word or LibreOffice Write.

Use placeholders

DOCX templates contain a series of placeholders that later tell Frazier what information should be output and how. The placeholders can be identified by the curly brackets. For example, {document_title} will later be replaced by the name of the current document.

You can also specify, for example, how the three speeds “normal”, “fast” and “very fast” should be displayed when exporting:

{speed0}{/speed0}{speed1}s{/speed1}{speed2}s+{/speed2}

For “normal” ({speed0}) the output is empty. For “fast” ({speed1}) the output is “s” - and “very fast” ({speed2}) will be rendered as “s+”.

You can create as many templates as you want to respond to individual customer requests. Give meaningful file names such as “Template_AD_Series_XY.docx” so that you can quickly find the templates when you want to export the document.

Examples

We have prepared a few sample templates. You can use these as a starting point for your own templates.

default.docx
This is the standard template that you can find in the document export. No cover, no extras.
tables.docx
A DOCX template formatted as a table. Not to be confused with the CSV export, which you can use if you want to open your manuscript with a spreadsheet like Microsoft Excel!
demo.docx
A template that contains all available placeholders, e.g. to build a cover page or to display further information such as keywords in the text. It’s best to take a look there and copy the placeholders that you can use for your own templates.

Formatted texts

There is also the placeholder {@richText1}, which can output the rich text / your description including formatting such as bold and italics. Since implementation with simple placeholders is not possible, this is a prefabricated block consisting of dialogue information, speed and running text.

You are welcome to try out the placeholder. To do this, take one of your templates and use the following block to output the text blocks:

{#cuePoints}{start}
{@richText1}

{/cuePoints}

Tip: Is this too fiddly for you? Marit Bechtloff has developed some templates that cover many cases in German-speaking countries. Maybe there is something there for you?

Uploading a template

Once you’ve created your own template, you can upload and test it in your profile in the “DOCX templates” section. Please not: When saving, make sure that you choose the correct file format. There are still “.doc” files, a comparatively old format from Microsoft. These won’t work, you definitely need templates that end with “.docx”!

Using a template

After uploading a template, you can use it in any project. All templates that you have uploaded will be listed below the standard template “default.docx” in the “Export Document” dialog.

Note: Templates are tied to your user account. So, if you work on a project with colleagues, share finished templates with each other so that everyone can upload and use them.

Last Update: 2023/10/10