-
Notifications
You must be signed in to change notification settings - Fork 6
Custom export template
Marco Rossi edited this page Jan 17, 2023
·
2 revisions
By default jupyter_docx_bundler
will use the the styles and format of a reference.docx
by pandoc when exporting.
This can be an issue because it uses the paper size letter
as default. For example I prefer A4
, because I'm from Germany.
If you want to modify it you need to provide one. I will walk you through the setps:
-
Download the reference docx-file with
pandoc -o reference.docx --print-default-data-file reference.docx
-
Place it in default
--data-dir
of your os (taken from the pandoc documentation):Specify the user data directory to search for pandoc data files. If this option is not specified, the default user data directory will be used. This is, in UNIX:
$HOME/.pandoc
in Windows XP:
C:\Documents And Settings\USERNAME\Application Data\pandoc
and in Windows Vista or later:
C:\Users\USERNAME\AppData\Roaming\pandoc
-
Modify the
reference.docx
as you need it.