Pandoc filter for docx output to insert pagebreak at will
Project description
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
- unable to use with
# 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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for pandoc-docx-pagebreak-0.0.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e41de014186296e6e3a6ee5af9e8c20c23d8ee2b62aced6d844f0f506f13ca46 |
|
MD5 | 0c4e83d8efd692c9fea9694f22219e80 |
|
BLAKE2b-256 | 511ab1a0da8e2b3fc3a41626575162056c8d63d45740c6f96669dbe4be3ef5eb |