Skip to main content

pandoc-docx-pagebreak-py

Pandoc filter to insert page break or section break in docx file

\toc

install

pip3 install git+https://github.com/pandocker/pandoc-docx-pagebreak-py

Usage

  • Add \newpage where preferred to insert a page break
    • Expecting to work like native pandoc behavior for latex output
  • Add \toc where preferred to insert TOC(Table of Contents)
    • unable to use with --toc otherwise TOC appears on head of document also
# Try the filter with this file like this:
pandoc -f markdown -t docx -o docx.docx --filter=pandoc-docx-pagebreakpy README.md

Sample

Contents before pagebreak

\newpage
Contents after _Page Break_

Contents after **Section Break**

Contents before pagebreak

\newpage

Contents after Page Break

Contents after Section Break

Metadata

Release files for pandoc-docx-pagebreak 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pandoc-docx-pagebreak 0.0.2
File Size Uploaded
pandoc-docx-pagebreak-0.0.2.tar.gz 6.5 kB Details

Release files / pandoc-docx-pagebreak-0.0.2.tar.gz

Download URL pandoc-docx-pagebreak-0.0.2.tar.gz
Size 6.5 kB
Tags Source
SHA-256 checksum
How to use checksums
e41de014186296e6e3a6ee5af9e8c20c23d8ee2b62aced6d844f0f506f13ca46
BLAKE2b-256 checksum
How to use checksums
511ab1a0da8e2b3fc3a41626575162056c8d63d45740c6f96669dbe4be3ef5eb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.5

Release history Release notifications | RSS feed

This release

0.0.2 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page