-
Notifications
You must be signed in to change notification settings - Fork 0
1.3 Guide for Using Word Templates
ClioDeck supports using custom Word templates (.dotx files) for document export. This feature allows you to apply your own formatting, styles, and structure to your Word exports.
Which export path you actually get depends on your project. Word export in ClioDeck goes through one of two mechanisms:
-
Pandoc + your template as a reference document — used only when a
bibliography is attached to your project, Pandoc is installed, and
ClioDeck's own citation engine is not explicitly requested. Your
.dotxsupplies Word style names (Heading 1,Title,Quote, …) that Pandoc's output adopts — the{placeholder}syntax below does not apply here; there's nothing to fill in, Pandoc converts your Markdown directly using your template's styles. -
Native docx +
docxtemplaterplaceholders — used in every other case: no bibliography attached, or a bibliography with ClioDeck's own citation engine requested instead of Pandoc's (so Word-native footnotes can be produced), or a bibliography present but Pandoc not found. Whenever a.dotxtemplate exists and you're on this path, the{title}/{author}/{content}/ … placeholders documented below get filled in — the citation engine question only affects how footnotes are produced, not which template mechanism applies.
If your export doesn't seem to respect your placeholders, check whether a bibliography is attached and Pandoc is found and the citation engine is off — only that exact combination skips placeholders in favor of named Word styles.
To use a Word template, simply place a .dotx file in your ClioDeck project folder:
my_project/
├── .cliodeck/
├── document.md
├── bibliography.bib
└── my_template.dotx ← Your Word template
ClioDeck will automatically detect the template and inform you during export.
When exporting to Word:
- Open the Project panel
- Click Export Word (.docx)
- If a template is detected, you'll see a message: Word template detected: my_template.dotx
- Fill in the information (title, author)
- Click Export
The generated document will use the styles and formatting from your template.
This section applies only when your project has no bibliography attached
(route 3 above) — that's when ClioDeck uses docxtemplater to merge your
content with the template via placeholders. If you have a bibliography, skip
to Styles and Formatting instead: your template
supplies Word style names, not placeholders.
| Placeholder | Description | Example |
|---|---|---|
{title} |
Document title | "My Scientific Article" |
{author} |
Document author | "John Smith" |
{date} |
Export date | "01/11/2026" |
{content} |
Converted Markdown content | Your entire document (article: document.md; book: chapters assembled in order — see Books and Chapters) |
{abstract} |
Abstract (if abstract.md file exists) | Your summary |
Create a Word document and insert these placeholders:
═══════════════════════════════════════════════════
{title}
By {author}
{date}
═══════════════════════════════════════════════════
ABSTRACT
{abstract}
CONTENT
{content}
Save this document as .dotx format (File → Save As → Word Template).
If your template contains named styles, ClioDeck will automatically apply them:
-
Heading 1 →
Heading1orTitre 1 -
Heading 2 →
Heading2orTitre 2 -
Heading 3 →
Heading3orTitre 3 - Normal → Default paragraph style
- Quote → Citations and blockquotes
Your template can include:
- Custom headers
- Custom footers
- Page numbering
- Institutional logo or image
Note: If your template doesn't have headers/footers, ClioDeck will use defaults (title in header, page number in footer).
If the template cannot be loaded (corrupted file, incorrect placeholders, etc.), ClioDeck will:
- Display a warning in logs
- Automatically fall back to standard generation
- Still create your document (without applying the template)
You'll never lose your export!
Create a template with:
- Institutional title page
- Declaration of honor
- Table of contents (generated by Word)
- Heading styles conforming to requirements
Use a template respecting:
- Specific journal format (APA, Vancouver, etc.)
- Required margins and spacing
- Header with running title
Include in your template:
- Company logo
- Brand guidelines
- Footer with legal information
If you have multiple .dotx files in your project, ClioDeck will use the first found (alphabetical order).
Recommendation: Use only one template per project.
ClioDeck's own project types are article, book, and presentation
(presentations export to RevealJS, not Word). Nothing in the code ties a
specific .dotx file to a project type automatically — this is purely a
convention you can adopt yourself:
templates/
├── article_template.dotx
└── book_template.dotx
Copy the appropriate template into your project folder before export.
- Verify the file has
.dotxextension (not.docx) - Make sure the file is in the project root folder (not in
.cliodeck/) - Restart ClioDeck if necessary
If using placeholders:
- Check spelling:
{content}not{contenu} - Use single braces, not double
- No spaces:
{title}not{ title }
- Verify your Word styles are properly named (Heading 1, Heading 2, etc.)
- Test the template by manually creating a Word document
- Make sure the template isn't corrupted
If you encounter issues:
- Check ClioDeck logs (Journal Panel)
- Verify your template opens correctly in Word
- Try exporting without a template to confirm the issue is with the template
Version: 1.0.0-rc.3