Skip to main content

A Sphinx extension for Word (.docx) file output

Project description

sphinxpapyrus-docxbuilder is a Sphinx extension for Word (.docx) file output.


  • Docx file as style template
  • Inline Markup
  • Headings
  • Bullet / Enumerated Multilevel List
  • Definition List
  • Field List / Option List as 2 collumn table
  • Blocks
  • Simple Table / Grid Table (surpport sppaning, nesting)
  • Transitions
  • Image / Figure
  • Footnotes as normal paragraph


  • Sphinx>=1.3
  • python-docx==0.8.6


Run the following command:

pip install sphinxpapyrus-docxbuilder


Add the extension module name into in your Sphinx document:

extentions = ['sphinxpapyrus.docxbuilder']

Optionally, you can set style file:

docx_style = 'mystyle.docx'

You can also set docx core properties:

docx_coreproperties = {
    'title': 'Jelly Island Murders',
    'author': 'Arashiyama Hotori',

For more properties, see python-docx ducument .

Other docx options:

# Grouping the document tree into Docx files. List of tuples
# (source start file, target name, {coreproperties}).
docx_documents = [
    (master_doc, project, {
        'title': 'Document Title',
        'author': 'Author',
docx_pagebreak_level = 2  # insert page break before each heading 1, 2 and title
docx_imagetable_align = 'center'  # 'left', 'center', or 'right'

Finaly, output docx with following command:

make docx

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for sphinxpapyrus-docxbuilder, version 0.1.1
Filename, size File type Python version Upload date Hashes
Filename, size sphinxpapyrus_docxbuilder-0.1.1-py2-none-any.whl (55.0 kB) File type Wheel Python version py2 Upload date Hashes View
Filename, size sphinxpapyrus-docxbuilder-0.1.1.tar.gz (56.2 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page