Skip to content

Latest commit

 

History

History
79 lines (57 loc) · 1.34 KB

README.md

File metadata and controls

79 lines (57 loc) · 1.34 KB

Pandocxtyle

simple formatter for docx file which is generated by pandoc.

Notice

this software is still a work in progress.

Help

  $ pandocxtyle --h
  $ pandocxtyle --help

Show word/document.xml

  $ pandocxtyle document show_xml -i input.docx

Insert Index

  $ pandocxtyle document add_index -i input.docx -o output.docx

Insert PageBreak Before Heading1

  $ pandocxtyle document pagebreak_h1 -i input.docx -o output.docx

Show All Table Styles

  $ pandocxtyle table show_style -i input.docx
  - style_id: a2
    name:     Normal Table
    based_on:
  - style_id: af6
    name:     Table Grid
    based_on: a2
  - style_id: 8
    name:     Table Grid 8
    based_on: a2
  - style_id: 40
    name:     Medium Shading 1 Accent 4
    based_on: a2
  ...

Substitute Table Style

  $ pandocxtyle table sub_style -i input.docx -o output.docx \
    --target 'TableNormal' --with 'YourTableStyle'

Add Sequential Number Field To Table Caption

  $ pandocxtyle table seq_caption -i input.docx -o output.docx \
    --label 'Table.'

Add Sequential Number Field To Image Caption

  $ pandocxtyle drawing seq_caption -i input.docx -o output.docx \
    --label 'Fig.'

License

This software is released under the MIT License, see LICENSE.txt.