用于docx输出的pandoc筛选器,可随意插入pagebreak
pandoc-docx-pagebreak的Python项目详细描述
pandoc docx pagebreak py
pandoc filter在docx文件中插入分页符或分节符
\总有机碳
安装
pip3 install git+https://github.com/pandocker/pandoc-docx-pagebreak-py
使用量
- 在首选插入分页符的位置添加
\newpage
- 期望像乳胶输出的本地pandoc行为一样工作
- 在首选插入目录(目录)的位置添加
\toc
- 无法与
--toc
一起使用,否则TOC也会出现在文档头上
- 无法与
# Try the filter with this file like this: pandoc -f markdown -t docx -o docx.docx --filter=pandoc-docx-pagebreakpy README.md
样本
Contents before pagebreak \newpage Contents after _Page Break_ Contents after **Section Break**
分页符前的内容
\新页
分页符后的内容
section break之后的内容