Skip to main content

pandoc-docx-pagebreak-py

Pandoc filter to insert page break or table-of-contents in docx file

install

pip3 install git+https://github.com/pmamico/pandoc-docx-helper.git

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

Table of contents appears after this line

\toc

Contents before pagebreak

\newpage

Contents after _Page Break_

Table of contents appears after this line

\toc

Contents before pagebreak

\newpage

Contents after Page Break

Metadata

Release files for pandoc-docx-helper 0.0.1

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-helper 0.0.1
File Size Uploaded
pandoc-docx-helper-0.0.1.tar.gz 6.9 kB Details

Release files / pandoc-docx-helper-0.0.1.tar.gz

Download URL pandoc-docx-helper-0.0.1.tar.gz
Size 6.9 kB
Tags Source
SHA-256 checksum
How to use checksums
72deda2e4db0914860e314fb5b6d18fa53069d223c8a2583bafcd5c30ec50a4b
BLAKE2b-256 checksum
How to use checksums
d080045e903d28a5677631fd7b512a8afe29fdb920baef936f2206a628735e25
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.4

Release history Release notifications | RSS feed

This release

0.0.1 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